Mykola Golub
e6c709b3a8
rbd-mirror: fixup to get/list mirror image status API
...
- embed name and rbd_mirror_image_info_t into rbd_mirror_image_status_t;
- index image status list by image id to make 'start' work correctly;
- provide rbd_mirror_image_status_list_cleanup function.
Fixes : #15771
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-05-10 15:04:14 +03:00
Yehuda Sadeh
c49c8bdf17
Merge pull request #8918 from ceph/wip-rgw-leak-3
...
rgw: fix memory leaks
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 15:15:11 -07:00
Ali Maredia
2d5bb928d5
Merge pull request #9012 from cbodley/wip-cmake-freelist
...
cmake: add missing FreelistManager sources
2016-05-09 18:09:10 -04:00
Yehuda Sadeh
91f61d68bf
rgw: RGWHTTPClient requests can unregister themselves early
...
No need to wait for req_state to complete anymore.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:38:22 -07:00
Yehuda Sadeh
fa9566825c
Merge pull request #9013 from cbodley/wip-rgw-test-mtime
...
test/rgw: enable mtime comparison in check_object_eq()
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:37:48 -07:00
Yehuda Sadeh
3d8442effc
rgw: move around sync_env.init()
...
call sync_env.init() even if we're initalized in RGWRemoteDataLog::init()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:41 -07:00
Yehuda Sadeh
1c876eb387
rgw: rados crs, explicit cleanup
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
7ada4df124
rgw: RGWHTTPManager, avoid referring to req_data->client when completing
...
this is past calling req_data->finish(), client can be destroyed by now
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
2ca38dab07
rgw: civetweb_callback() refer to store inside lock
...
pe->store might change when reconfiguring
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
98433e589f
rgw: RGWPeriodPusher, stop http manager explicitly
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
bdce81a2ae
rgw: RGWHTTPManager, can call stop() more than once
...
destructor calls stop(), but it can be also called explicitly, if caller
wants to ensure requests are not being handled anymore.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
d1ec31def7
rgw: RGWReadRESTResourceCR, fix refcounting
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
95162a4c1b
rgw: RGWReadRemoteDataLogShardCR fix destructor
...
was missing destructor, constructor was broken
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
14cd44e084
rgw: RGWDataSyncStatusManager, cleanup if failing init
...
init can be called more than once, ended up with leaking some resources
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
a3a3f4f588
rgw: rest crs, explicitly call cleanup
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:40 -07:00
Yehuda Sadeh
cb797d4fd7
rgw: more leaks fixes
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:39 -07:00
Yehuda Sadeh
4442d1c19a
rgw: drop a reference to http op
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:36:39 -07:00
Yehuda Sadeh
e1463adb8b
Merge pull request #8766 from yehudasa/wip-15597
...
rgw: upgrade default zonegroup and set correct zone[group] id
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-05-09 14:23:50 -07:00
Yehuda Sadeh
d53ffbfe65
rgw: code cleanup
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-05-09 14:23:03 -07:00
Yehuda Sadeh
8ab94f39e3
Merge pull request #8772 from yehudasa/wip-15625
...
rgw: sync fixes
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 14:13:11 -07:00
Casey Bodley
9d996c567d
test/rgw: enable mtime comparison in check_object_eq()
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 17:06:12 -04:00
Yehuda Sadeh
4a156662f8
Merge pull request #8880 from cbodley/wip-rgw-zonegroup-remove
...
radosgw-admin: add missing 'zonegroup remove'
Reviewed-by: Yehuda Sadeh <yehudasa@gmail.com>
2016-05-09 14:05:53 -07:00
Casey Bodley
5ba1b7b642
cmake: add missing FreelistManager sources
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 17:01:15 -04:00
Casey Bodley
c431924742
Merge pull request #8166 from kmroz/wip-rgw-rest-conn-use-vector
...
rgw: rest and http client code to use param vectors
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 14:11:05 -04:00
Yuri Weinstein
0f003ffbe7
common/ShardedOpWQ: make timeout when calling WaitInterval configurabletest run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
...
common/ShardedOpWQ: make timeout when calling WaitInterval configurable
test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:10:01 -07:00
Yuri Weinstein
e4fa44cd48
Merge pull request #8810 from xiexingguo/xxg-wip-fixgotfullmap
...
osd: fix problematic got_full_map() logic
test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:09:26 -07:00
Yuri Weinstein
22dc9696b6
Merge pull request #8857 from liewegas/wip-15678
...
osd: handle boot racing with NOUP set
test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:09:13 -07:00
Yuri Weinstein
347a04b9cd
Merge pull request #8881 from liewegas/wip-14952
...
osd: fix pg stuck messages while PGs are being created
test run http://pulpito.ceph.com/yuriw-2016-05-07_09:11:04-rados-wip-yuri-testing---basic-smithi/
2016-05-09 09:08:39 -07:00
Yuri Weinstein
5670e2749e
Merge pull request #8798 from majianpeng/buffer
...
common/buffer: clean up alignment checks
test run http://pulpito.ceph.com/yuriw-2016-05-08_08:12:51-rados-wip-yuri-testing2---basic-smithi/
2016-05-09 09:07:19 -07:00
Yuri Weinstein
b6525a064f
Merge pull request #8953 from xiexingguo/xxg-wip-prettydump
...
mon/PGMap: pretty output for "pg dump osds" command
2016-05-09 09:06:31 -07:00
Sage Weil
16a0c4f147
Merge pull request #8986 from stiopaa1/osd_prepublishmap_move
...
osd/OSD.h: move shared_ptr instead of copying it
Reviewed-by: Adam Emerson <aemerson@redhat.com
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 11:53:05 -04:00
Casey Bodley
25eced4c65
Merge pull request #8981 from ceph/wip-rgw-test-fix
...
test/rgw: fix bucket checkpoint
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-09 11:25:32 -04:00
Kefu Chai
f7331fdc3f
Merge pull request #8786 from tchaikov/wip-btrfs-sudo
...
test: sudo to rm btrfs subvol
Reviewed-by: Erwan Velu <erwan@redhat.com>
2016-05-09 22:38:07 +08:00
Orit Wasserman
367bd0aec9
Merge pull request #8994 from theanalyst/fix/15776
...
rgw: log name instead of id for SystemMetaObj on failure
2016-05-09 16:36:43 +02:00
Sage Weil
c27c684b16
Merge pull request #8919 from stiopaa1/log_moveToPrivateOsdService
...
osd/OSD.h: change some data members to private
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:51:19 -04:00
Sage Weil
162b4fb7d0
Merge pull request #8989 from flyd1005/wip-fix-python-warnings
...
cleanup: python: remove warnings of 'trailing whitespace' and 'new blank line at EOF'
2016-05-09 09:50:46 -04:00
Sage Weil
bd4a3b1b3e
Merge pull request #8992 from runsisi/wip-fix-dup-keygen
...
cls_journal: remove duplicated key generation
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:49:54 -04:00
Sage Weil
453852642a
Merge pull request #8991 from emenguy/doc_test-reweight-by-utilization
...
doc: adding test-reweight-by-utilization documentation
2016-05-09 09:48:52 -04:00
Sage Weil
1712dd5fd8
Merge pull request #8984 from stiopaa1/osd_removeUnorderedSet
...
osd/OSD.h: remove unneeded include file
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:38:12 -04:00
Sage Weil
09f572064c
Merge pull request #8097 from aclamk/crushtool-pool-id
...
crushtool: add ability of precise testing of placement group calculation.
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:15:24 -04:00
Sage Weil
810a8ca2a3
Merge pull request #8832 from stiopaa1/log_graylogmove
...
common/Graylog.cc: use std move to avoid copy
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-09 09:14:55 -04:00
Sage Weil
c88a931212
Merge pull request #8920 from XinzeChi/wip-race-shutdown
...
osd: fix deadlock in OSD::_committed_osd_maps
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 09:14:10 -04:00
Sage Weil
4d10cb86bd
Merge pull request #8922 from runsisi/wip-fix-lockdep-assert
...
lockdep: fix assertion expression if ran out of lock ids
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-09 09:13:26 -04:00
Sage Weil
c68357f0cf
Merge pull request #8967 from liewegas/wip-15760
...
osdc/Objecter: upper bound watch_check result
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-05-09 09:12:49 -04:00
Sage Weil
a28b71e3c9
Merge pull request #8357 from liewegas/wip-osd-prestart
...
osd: update crush_location from ceph-osd on startup
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-09 08:59:05 -04:00
Sage Weil
0a6d0c61d7
Merge pull request #8194 from tanghaodong25/fix_4
...
os/bluestore/KernelDevice.cc: small fix in buffer flush
Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-05-09 08:58:33 -04:00
Sage Weil
bfa5461265
Merge pull request #8349 from Aran85/prepare_entry_cleanup
...
os/filestore: prepare entry cleanup
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-09 08:57:51 -04:00
Sage Weil
d2cab3a898
osd: create osd id if it does not exist
...
Most tools create the osd id before trying to start ceph-osd. Notably,
teuthology does not. We could fix that, but we would be changing behavior,
as the osd boot will happily create the osd id on the fly for us. Other
provisioning tools might rely on that behavior. Instead, just allocate
the id sooner in the process (if necessary).
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:55:00 -04:00
Sage Weil
cf4ec5a8aa
osd: change osd_crush_initial_weight = 0 to mean weight to 0
...
Negative now means auto-weight, 0 means weight to 0. Change the
default accordingly.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:55:00 -04:00
Sage Weil
573c349245
osd: update crush_location on startup from ceph-osd
...
Update the crush location from ceph-osd instead of relying on
kludgey bash in ceph-osd-prestart.sh. Among other things, this
lets us get accurate statfs information from the ObjectStore
implementation instead of relying on 'df'.
Fixes: http://tracker.ceph.com/issues/15213
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-09 08:54:44 -04:00