]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agocommon/address_helper: drop entity_addr_from_sockaddr 8974/head
Sage Weil [Wed, 11 May 2016 16:40:18 +0000 (12:40 -0400)]
common/address_helper: drop entity_addr_from_sockaddr

entity_addr_t::set_sockaddr() does this.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/xio: use set_sockaddr
Sage Weil [Wed, 11 May 2016 16:39:48 +0000 (12:39 -0400)]
msg/xio: use set_sockaddr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocommon/address_helper: use set_sockaddr
Sage Weil [Wed, 11 May 2016 16:39:42 +0000 (12:39 -0400)]
common/address_helper: use set_sockaddr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: drop sockaddr_storage from entity_addr_t
Sage Weil [Fri, 6 May 2016 15:37:10 +0000 (11:37 -0400)]
msg/msg_types: drop sockaddr_storage from entity_addr_t

This reduces the struct size by a ton!  136 -> 36 bytes.

Encode to sockaddr_storage is now slightly slower.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/AsyncConnection: do not use sizeof(entity_addr_t)
Sage Weil [Fri, 6 May 2016 17:11:55 +0000 (13:11 -0400)]
msg/async/AsyncConnection: do not use sizeof(entity_addr_t)

Protocol is defined in terms of ceph_entity_addr.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Pipe: do not use sizeof(entity_addr_t)
Sage Weil [Fri, 6 May 2016 17:09:10 +0000 (13:09 -0400)]
msg/simple/Pipe: do not use sizeof(entity_addr_t)

The protocol is defined in terms of ceph_entity_addr; use that.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: put sockaddr_* fields in a union
Sage Weil [Fri, 6 May 2016 15:17:48 +0000 (11:17 -0400)]
msg/msg_types: put sockaddr_* fields in a union

No functional change here, just a rename.

Name the fields after the struct prefixes (e.g., sockaddr_in.sin_ -> sin).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotest/librbd/exclusive_lock: use proper entity_addr_t accessors
Sage Weil [Fri, 6 May 2016 15:27:08 +0000 (11:27 -0400)]
test/librbd/exclusive_lock: use proper entity_addr_t accessors

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: dump via sockaddr* operator<<
Sage Weil [Fri, 6 May 2016 15:16:49 +0000 (11:16 -0400)]
msg/msg_types: dump via sockaddr* operator<<

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotools/rbd/action/Kernel: use sockaddr (not _storage) to stringify
Sage Weil [Fri, 6 May 2016 14:43:00 +0000 (10:43 -0400)]
tools/rbd/action/Kernel: use sockaddr (not _storage) to stringify

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agokrbd: use sockaddr instead of sockaddr_storage to print
Sage Weil [Fri, 6 May 2016 14:42:03 +0000 (10:42 -0400)]
krbd: use sockaddr instead of sockaddr_storage to print

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: operator<< for sockaddr
Sage Weil [Fri, 6 May 2016 14:39:57 +0000 (10:39 -0400)]
msg/msg_types: operator<< for sockaddr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: drop addr(), addr_size() accessors
Sage Weil [Fri, 6 May 2016 14:10:54 +0000 (10:10 -0400)]
msg/msg_types: drop addr(), addr_size() accessors

addr() returns a reference to a sockaddr_storage, which we want to drop.

addr_size() is replaced by get_sockaddr_len().

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Pipe: use sockaddr accessors
Sage Weil [Fri, 6 May 2016 14:03:58 +0000 (10:03 -0400)]
msg/simple/Pipe: use sockaddr accessors

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/net_handler: use sockaddr accessors
Sage Weil [Fri, 6 May 2016 14:03:18 +0000 (10:03 -0400)]
msg/async/net_handler: use sockaddr accessors

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/AsyncMessenger: use sockaddr accessors for bind
Sage Weil [Fri, 6 May 2016 14:01:36 +0000 (10:01 -0400)]
msg/async/AsyncMessenger: use sockaddr accessors for bind

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Accepter: use sockaddr accessors for bind
Sage Weil [Fri, 6 May 2016 14:01:26 +0000 (10:01 -0400)]
msg/simple/Accepter: use sockaddr accessors for bind

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Accepter: use sockaddr_storage for accept
Sage Weil [Fri, 6 May 2016 13:59:35 +0000 (09:59 -0400)]
msg/simple/Accepter: use sockaddr_storage for accept

We drop this value anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/AsyncMessenger: use sockaddr_storage for accept
Sage Weil [Fri, 6 May 2016 13:59:17 +0000 (09:59 -0400)]
msg/async/AsyncMessenger: use sockaddr_storage for accept

No need for entity_addr_t.  We drop this value anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Accepter: use set_sockaddr for getsockname
Sage Weil [Fri, 6 May 2016 14:00:31 +0000 (10:00 -0400)]
msg/simple/Accepter: use set_sockaddr for getsockname

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/AsyncMessenger: use set_sockaddr for getsockname
Sage Weil [Fri, 6 May 2016 13:58:51 +0000 (09:58 -0400)]
msg/async/AsyncMessenger: use set_sockaddr for getsockname

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/simple/Pipe: use set_sockaddr for getpeername
Sage Weil [Fri, 6 May 2016 13:56:50 +0000 (09:56 -0400)]
msg/simple/Pipe: use set_sockaddr for getpeername

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async: use set_sockaddr for getpeername
Sage Weil [Fri, 6 May 2016 13:56:29 +0000 (09:56 -0400)]
msg/async: use set_sockaddr for getpeername

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibcephfs: use entity_addr_t::get_sockaddr_storage()
Sage Weil [Fri, 6 May 2016 13:46:55 +0000 (09:46 -0400)]
libcephfs: use entity_addr_t::get_sockaddr_storage()

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/msg_types: update sockaddr, sockaddr_storage accessors
Sage Weil [Fri, 6 May 2016 13:46:06 +0000 (09:46 -0400)]
msg/msg_types: update sockaddr, sockaddr_storage accessors

Return sockaddr_storage by value.  New sockaddr-based accessors.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8955 from xiexingguo/xxg-wip-docrgw
Kefu Chai [Wed, 11 May 2016 12:09:58 +0000 (20:09 +0800)]
Merge pull request #8955 from xiexingguo/xxg-wip-docrgw

doc/rgw: fix typo, abbreviation error etc.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9058 from dillaman/wip-cmake-test-rbd-mirror
Kefu Chai [Wed, 11 May 2016 11:42:20 +0000 (19:42 +0800)]
Merge pull request #9058 from dillaman/wip-cmake-test-rbd-mirror

cmake: fix rbd compile errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: fix rbd compile errors 9058/head
Jason Dillaman [Wed, 11 May 2016 02:37:01 +0000 (22:37 -0400)]
cmake: fix rbd compile errors

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8633 from dreamhost/wip-15531
Orit Wasserman [Wed, 11 May 2016 09:05:23 +0000 (11:05 +0200)]
Merge pull request #8633 from dreamhost/wip-15531

rgw/s3website: Fix x-amz-website-redirect-location support.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a ruleReviewed-by...
Orit Wasserman [Wed, 11 May 2016 09:02:30 +0000 (11:02 +0200)]
rgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a ruleReviewed-by: Orit Wasserman <owasserm@redhat.com>

rgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a rule
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoRevert "rgw: RGWDataSyncStatusManager::finalize() cleanup"
Yehuda Sadeh [Tue, 10 May 2016 23:24:30 +0000 (16:24 -0700)]
Revert "rgw: RGWDataSyncStatusManager::finalize() cleanup"

This reverts commit 365e8334b4d376ba2d57c2d7d904462fdcc35059.

9 years agorgw: RGWDataSyncStatusManager::finalize() cleanup
Casey Bodley [Tue, 10 May 2016 21:30:20 +0000 (17:30 -0400)]
rgw: RGWDataSyncStatusManager::finalize() cleanup

rgw: RGWDataSyncStatusManager::finalize() cleanup

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9055 from cbodley/wip-rgw-period-commit-master
Yehuda Sadeh [Tue, 10 May 2016 21:15:50 +0000 (14:15 -0700)]
Merge pull request #9055 from cbodley/wip-rgw-period-commit-master

rgw: 'period commit' sends to new master zone by default

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8605 from theanalyst/fix/15455
Casey Bodley [Tue, 10 May 2016 21:14:32 +0000 (17:14 -0400)]
Merge pull request #8605 from theanalyst/fix/15455

rgw: return 503 for requests when master zone is down

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: 'period commit' sends to new master zone by default 9055/head
Casey Bodley [Tue, 10 May 2016 19:51:27 +0000 (15:51 -0400)]
radosgw-admin: 'period commit' sends to new master zone by default

if no --remote or --url is given, set --remote = master_zone_id to
override the rest_master_conn (which refers to the old master zone)

Fixes: http://tracker.ceph.com/issues/15828
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: allow --remote to specify zone or zonegroup id
Casey Bodley [Tue, 10 May 2016 19:48:33 +0000 (15:48 -0400)]
radosgw-admin: allow --remote to specify zone or zonegroup id

--remote was only looking for zonegroup connections. extended to check
for zone connections as well

updated the usage to clarify that it expects zone/zonegroup ids

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8909 from theanalyst/rgw/zone-eexist-msg
Casey Bodley [Tue, 10 May 2016 19:54:59 +0000 (15:54 -0400)]
Merge pull request #8909 from theanalyst/rgw/zone-eexist-msg

rgw: remove EEXIST error msg for ZoneCreate

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9035 from tchaikov/wip-cmake-venv
Casey Bodley [Tue, 10 May 2016 19:06:18 +0000 (15:06 -0400)]
Merge pull request #9035 from tchaikov/wip-cmake-venv

cmake: pass CEPH_BUILD_VIRTUALENV to test as an env variable

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8548 from weiqiaomiao/wq
Yehuda Sadeh [Tue, 10 May 2016 18:50:29 +0000 (11:50 -0700)]
Merge pull request #8548 from weiqiaomiao/wq

rgw:remove an unnecessary assignment of the variable 'marker'

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
9 years agoMerge pull request #8301 from tchaikov/wip-fortify
Kefu Chai [Tue, 10 May 2016 18:42:28 +0000 (02:42 +0800)]
Merge pull request #8301 from tchaikov/wip-fortify

cmake: enable FORTFY flags if supported

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: enable FORTFY flags if supported 8301/head
Kefu Chai [Thu, 24 Mar 2016 15:20:44 +0000 (23:20 +0800)]
cmake: enable FORTFY flags if supported

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8945 from cbodley/wip-rgw-admin-output
Yehuda Sadeh [Tue, 10 May 2016 18:36:08 +0000 (11:36 -0700)]
Merge pull request #8945 from cbodley/wip-rgw-admin-output

radosgw-admin: added missing json output to some commands

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #8951 from ceph/wip-15745
Yehuda Sadeh [Tue, 10 May 2016 18:18:25 +0000 (11:18 -0700)]
Merge pull request #8951 from ceph/wip-15745

rgw: handle stripe transition when flushing final pending_data_bl

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: 'period delete' cleans up all period objectsReviewed-by: Yehuda Sadeh
Yehuda Sadeh [Tue, 10 May 2016 16:44:02 +0000 (09:44 -0700)]
rgw: 'period delete' cleans up all period objectsReviewed-by: Yehuda Sadeh

rgw: 'period delete' cleans up all period objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #9045 from ceph/wip-selinux-noprio
Nathan Cutler [Tue, 10 May 2016 16:36:57 +0000 (18:36 +0200)]
Merge pull request #9045 from ceph/wip-selinux-noprio

rpm: Drop SELinux priority setting

Reviewed by: Nathan Cutler <ncutler@suse.com>

9 years agorpm: Drop SELinux priority setting 9045/head
Boris Ranto [Tue, 10 May 2016 16:20:13 +0000 (18:20 +0200)]
rpm: Drop SELinux priority setting

Older versions of semodule binary that are in Centos/RHEL do not
support priority setting, dropping it.

Fixes: #15822
Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #8921 from dillaman/wip-15110
Josh Durgin [Tue, 10 May 2016 15:10:24 +0000 (08:10 -0700)]
Merge pull request #8921 from dillaman/wip-15110

rbd-mirror: image sync needs to handle snapshot size and protection status

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Conflicts:
src/test/librbd/test_mock_Journal.cc (moved and edited MockJournaler - trivial)

9 years agoMerge pull request #8937 from dillaman/wip-15642
Josh Durgin [Tue, 10 May 2016 14:58:26 +0000 (07:58 -0700)]
Merge pull request #8937 from dillaman/wip-15642

librbd: client-side handling for incompatible object map sizes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8958 from dillaman/wip-15750
Josh Durgin [Tue, 10 May 2016 14:57:20 +0000 (07:57 -0700)]
Merge pull request #8958 from dillaman/wip-15750

librbd: constrain size of AioWriteEvent journal entries

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrbd: potential concurrent event processing during journal replayReviewed-by: Josh...
Josh Durgin [Tue, 10 May 2016 14:56:58 +0000 (07:56 -0700)]
librbd: potential concurrent event processing during journal replayReviewed-by: Josh Durgin <jdurgin@redhat.com>

librbd: potential concurrent event processing during journal replay

9 years agoMerge pull request #8999 from dillaman/wip-15765
Josh Durgin [Tue, 10 May 2016 14:56:36 +0000 (07:56 -0700)]
Merge pull request #8999 from dillaman/wip-15765

journal: incorrectly computed object offset within set

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #9034 from dillaman/wip-rbd-cli-integration-test
Josh Durgin [Tue, 10 May 2016 14:51:07 +0000 (07:51 -0700)]
Merge pull request #9034 from dillaman/wip-rbd-cli-integration-test

test: update rbd integration cram test to remove format 1 warning

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocmake: pass CEPH_BUILD_VIRTUALENV to test as an env variable 9035/head
Kefu Chai [Tue, 10 May 2016 13:50:17 +0000 (21:50 +0800)]
cmake: pass CEPH_BUILD_VIRTUALENV to test as an env variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9030 from trociny/wip-15771
Jason Dillaman [Tue, 10 May 2016 13:04:22 +0000 (09:04 -0400)]
Merge pull request #9030 from trociny/wip-15771

librbd: fix get/list mirror image status API

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: update rbd integration cram test to remove format 1 warning 9034/head
Jason Dillaman [Tue, 10 May 2016 12:33:03 +0000 (08:33 -0400)]
test: update rbd integration cram test to remove format 1 warning

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd-mirror: fixup to get/list mirror image status API 9030/head
Mykola Golub [Tue, 10 May 2016 09:29:12 +0000 (12:29 +0300)]
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>
9 years agoMerge pull request #8197 from H3C/wip-rgw-bugfixa
Orit Wasserman [Tue, 10 May 2016 11:57:05 +0000 (13:57 +0200)]
Merge pull request #8197 from H3C/wip-rgw-bugfixa

rgw:response information is error when geting token of swift account
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8944 from vshankar/rbd-map-errno
Ilya Dryomov [Tue, 10 May 2016 09:02:20 +0000 (11:02 +0200)]
Merge pull request #8944 from vshankar/rbd-map-errno

rbd: helpful error message on map failure

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
9 years agotest: add missing header dependency for MockJournaler 8921/head
Jason Dillaman [Mon, 9 May 2016 22:25:39 +0000 (18:25 -0400)]
test: add missing header dependency for MockJournaler

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8918 from ceph/wip-rgw-leak-3
Yehuda Sadeh [Mon, 9 May 2016 22:15:11 +0000 (15:15 -0700)]
Merge pull request #8918 from ceph/wip-rgw-leak-3

rgw: fix memory leaks

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWDataSyncStatusManager::finalize() cleanup 9014/head
Yehuda Sadeh [Mon, 9 May 2016 22:13:41 +0000 (15:13 -0700)]
rgw: RGWDataSyncStatusManager::finalize() cleanup

cleanup following code review

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #9012 from cbodley/wip-cmake-freelist
Ali Maredia [Mon, 9 May 2016 22:09:10 +0000 (18:09 -0400)]
Merge pull request #9012 from cbodley/wip-cmake-freelist

cmake: add missing FreelistManager sources

9 years agorgw: RGWHTTPClient requests can unregister themselves early 8918/head
Yehuda Sadeh [Thu, 5 May 2016 17:57:05 +0000 (10:57 -0700)]
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>
9 years agoMerge pull request #9013 from cbodley/wip-rgw-test-mtime
Yehuda Sadeh [Mon, 9 May 2016 21:37:48 +0000 (14:37 -0700)]
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>
9 years agorgw: move around sync_env.init()
Yehuda Sadeh [Thu, 5 May 2016 01:08:38 +0000 (18:08 -0700)]
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>
9 years agorgw: rados crs, explicit cleanup
Yehuda Sadeh [Tue, 3 May 2016 19:01:55 +0000 (12:01 -0700)]
rgw: rados crs, explicit cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: RGWHTTPManager, avoid referring to req_data->client when completing
Yehuda Sadeh [Tue, 3 May 2016 19:00:46 +0000 (12:00 -0700)]
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>
9 years agorgw: civetweb_callback() refer to store inside lock
Yehuda Sadeh [Tue, 3 May 2016 18:59:11 +0000 (11:59 -0700)]
rgw: civetweb_callback() refer to store inside lock

pe->store might change when reconfiguring

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: RGWPeriodPusher, stop http manager explicitly
Yehuda Sadeh [Tue, 3 May 2016 17:03:14 +0000 (10:03 -0700)]
rgw: RGWPeriodPusher, stop http manager explicitly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: RGWHTTPManager, can call stop() more than once
Yehuda Sadeh [Tue, 3 May 2016 17:02:02 +0000 (10:02 -0700)]
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>
9 years agorgw: RGWReadRESTResourceCR, fix refcounting
Yehuda Sadeh [Tue, 3 May 2016 17:01:33 +0000 (10:01 -0700)]
rgw: RGWReadRESTResourceCR, fix refcounting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: RGWReadRemoteDataLogShardCR fix destructor
Yehuda Sadeh [Tue, 3 May 2016 16:59:47 +0000 (09:59 -0700)]
rgw: RGWReadRemoteDataLogShardCR fix destructor

was missing destructor, constructor was broken

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: RGWDataSyncStatusManager, cleanup if failing init
Yehuda Sadeh [Tue, 3 May 2016 01:13:17 +0000 (18:13 -0700)]
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>
9 years agorgw: rest crs, explicitly call cleanup
Yehuda Sadeh [Fri, 29 Apr 2016 20:04:13 +0000 (13:04 -0700)]
rgw: rest crs, explicitly call cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more leaks fixes
Yehuda Sadeh [Fri, 29 Apr 2016 00:03:21 +0000 (17:03 -0700)]
rgw: more leaks fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: drop a reference to http op
Yehuda Sadeh [Wed, 27 Apr 2016 23:39:36 +0000 (16:39 -0700)]
rgw: drop a reference to http op

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8766 from yehudasa/wip-15597
Yehuda Sadeh [Mon, 9 May 2016 21:23:50 +0000 (14:23 -0700)]
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>
9 years agorgw: code cleanup 8766/head
Yehuda Sadeh [Mon, 9 May 2016 21:23:03 +0000 (14:23 -0700)]
rgw: code cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #8772 from yehudasa/wip-15625
Yehuda Sadeh [Mon, 9 May 2016 21:13:11 +0000 (14:13 -0700)]
Merge pull request #8772 from yehudasa/wip-15625

rgw: sync fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agotest/rgw: enable mtime comparison in check_object_eq() 9013/head
Casey Bodley [Wed, 27 Apr 2016 21:17:57 +0000 (17:17 -0400)]
test/rgw: enable mtime comparison in check_object_eq()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8880 from cbodley/wip-rgw-zonegroup-remove
Yehuda Sadeh [Mon, 9 May 2016 21:05:53 +0000 (14:05 -0700)]
Merge pull request #8880 from cbodley/wip-rgw-zonegroup-remove

radosgw-admin: add missing 'zonegroup remove'

Reviewed-by: Yehuda Sadeh <yehudasa@gmail.com>
9 years agocmake: add missing FreelistManager sources 9012/head
Casey Bodley [Mon, 9 May 2016 20:57:14 +0000 (16:57 -0400)]
cmake: add missing FreelistManager sources

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw/s3website: Fix x-amz-website-redirect-location support. 8633/head
Robin H. Johnson [Sun, 17 Apr 2016 15:23:23 +0000 (08:23 -0700)]
rgw/s3website: Fix x-amz-website-redirect-location support.

Support for the x-amz-website-redirect-location header was broken in the
feature merging of Jewel, as it previously depended on the error handler to
redirect, which was overkill. Simplify it to work.

Backport: jewel
Fixes: http://tracker.ceph.com/issues/15531
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoMerge pull request #8166 from kmroz/wip-rgw-rest-conn-use-vector
Casey Bodley [Mon, 9 May 2016 18:11:05 +0000 (14:11 -0400)]
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>
9 years agocommon/ShardedOpWQ: make timeout when calling WaitInterval configurabletest run http...
Yuri Weinstein [Mon, 9 May 2016 16:10:01 +0000 (09:10 -0700)]
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/

9 years agoMerge pull request #8810 from xiexingguo/xxg-wip-fixgotfullmap
Yuri Weinstein [Mon, 9 May 2016 16:09:26 +0000 (09:09 -0700)]
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/

9 years agoMerge pull request #8857 from liewegas/wip-15678
Yuri Weinstein [Mon, 9 May 2016 16:09:13 +0000 (09:09 -0700)]
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/

9 years agoMerge pull request #8881 from liewegas/wip-14952
Yuri Weinstein [Mon, 9 May 2016 16:08:39 +0000 (09:08 -0700)]
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/

9 years agoMerge pull request #8798 from majianpeng/buffer
Yuri Weinstein [Mon, 9 May 2016 16:07:19 +0000 (09:07 -0700)]
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/

9 years agoMerge pull request #8953 from xiexingguo/xxg-wip-prettydump
Yuri Weinstein [Mon, 9 May 2016 16:06:31 +0000 (09:06 -0700)]
Merge pull request #8953 from xiexingguo/xxg-wip-prettydump

mon/PGMap: pretty output for "pg dump osds" command

9 years agoMerge pull request #8986 from stiopaa1/osd_prepublishmap_move
Sage Weil [Mon, 9 May 2016 15:53:05 +0000 (11:53 -0400)]
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>
9 years agorbd: helpful error message on map failure 8944/head
Venky Shankar [Thu, 5 May 2016 09:58:16 +0000 (15:28 +0530)]
rbd: helpful error message on map failure

Failure to map an rbd image provides pretty much nothing to
debug (or rectify) the nature of failure. This change tries
to improve the same by providing helpful error messages (by
pointing to dmesg, etc..).

Fixes: http://tracker.ceph.com/issues/15721
Signed-off-by: Venky Shankar <vshankar@redhat.com>
9 years agoMerge pull request #8981 from ceph/wip-rgw-test-fix
Casey Bodley [Mon, 9 May 2016 15:25:32 +0000 (11:25 -0400)]
Merge pull request #8981 from ceph/wip-rgw-test-fix

test/rgw: fix bucket checkpoint

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agojournal: incorrectly computed object offset within set 8999/head
Jason Dillaman [Mon, 9 May 2016 15:22:48 +0000 (11:22 -0400)]
journal: incorrectly computed object offset within set

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8786 from tchaikov/wip-btrfs-sudo
Kefu Chai [Mon, 9 May 2016 14:38:07 +0000 (22:38 +0800)]
Merge pull request #8786 from tchaikov/wip-btrfs-sudo

test: sudo to rm btrfs subvol

Reviewed-by: Erwan Velu <erwan@redhat.com>
9 years agoMerge pull request #8994 from theanalyst/fix/15776
Orit Wasserman [Mon, 9 May 2016 14:36:43 +0000 (16:36 +0200)]
Merge pull request #8994 from theanalyst/fix/15776

 rgw: log name instead of id for SystemMetaObj on failure

9 years agoMerge pull request #8919 from stiopaa1/log_moveToPrivateOsdService
Sage Weil [Mon, 9 May 2016 13:51:19 +0000 (09:51 -0400)]
Merge pull request #8919 from stiopaa1/log_moveToPrivateOsdService

osd/OSD.h: change some data members to private

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8989 from flyd1005/wip-fix-python-warnings
Sage Weil [Mon, 9 May 2016 13:50:46 +0000 (09:50 -0400)]
Merge pull request #8989 from flyd1005/wip-fix-python-warnings

cleanup: python: remove warnings of 'trailing whitespace' and 'new blank line at EOF'

9 years agoMerge pull request #8992 from runsisi/wip-fix-dup-keygen
Sage Weil [Mon, 9 May 2016 13:49:54 +0000 (09:49 -0400)]
Merge pull request #8992 from runsisi/wip-fix-dup-keygen

cls_journal: remove duplicated key generation

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8991 from emenguy/doc_test-reweight-by-utilization
Sage Weil [Mon, 9 May 2016 13:48:52 +0000 (09:48 -0400)]
Merge pull request #8991 from emenguy/doc_test-reweight-by-utilization

doc: adding test-reweight-by-utilization documentation