]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw: change naming of utility functions in rgw_keystone.cc. 7630/head
Radoslaw Zarzynski [Fri, 26 Feb 2016 21:17:09 +0000 (22:17 +0100)]
rgw: change naming of utility functions in rgw_keystone.cc.

Slightly improve code formatting and const-correctness as well.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: add support for caching of Keystone admin token.
Radoslaw Zarzynski [Fri, 12 Feb 2016 18:49:30 +0000 (19:49 +0100)]
rgw: add support for caching of Keystone admin token.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: ONLY move PKI-related things from rgw_swift to rgw_keystone.
Radoslaw Zarzynski [Fri, 12 Feb 2016 16:39:40 +0000 (17:39 +0100)]
rgw: ONLY move PKI-related things from rgw_swift to rgw_keystone.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7723 from tchaikov/wip-rgw-test
Loic Dachary [Mon, 22 Feb 2016 05:44:14 +0000 (12:44 +0700)]
Merge pull request #7723 from tchaikov/wip-rgw-test

test/radosgw-admin: update the expected usage outputs

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7647 from yuyuyu101/wip-spdk
Kefu Chai [Sun, 21 Feb 2016 11:30:25 +0000 (19:30 +0800)]
Merge pull request #7647 from yuyuyu101/wip-spdk

NVMEDevice: refactor probe/attach codes and support zero command

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoNVMEDevice: accept spdk api name changes 7647/head
Haomai Wang [Sun, 21 Feb 2016 10:43:02 +0000 (18:43 +0800)]
NVMEDevice: accept spdk api name changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agospdk: update spdk submodule to accept new interface changes
Haomai Wang [Sun, 21 Feb 2016 10:38:11 +0000 (18:38 +0800)]
spdk: update spdk submodule to accept new interface changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: add default constructor for Task and clean up
Haomai Wang [Sun, 21 Feb 2016 10:33:24 +0000 (18:33 +0800)]
NVMEDevice: add default constructor for Task and clean up

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: only activate zero command when backend supported
Haomai Wang [Mon, 15 Feb 2016 05:54:03 +0000 (13:54 +0800)]
NVMEDevice: only activate zero command when backend supported

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoBlockDevice: detect symbol file basename
Haomai Wang [Fri, 12 Feb 2016 17:19:58 +0000 (01:19 +0800)]
BlockDevice: detect symbol file basename

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoBlueStore: fix spdk link file create failed
Haomai Wang [Fri, 12 Feb 2016 15:34:14 +0000 (23:34 +0800)]
BlueStore: fix spdk link file create failed

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: fix atomic and lock changes
Haomai Wang [Fri, 12 Feb 2016 13:37:52 +0000 (21:37 +0800)]
NVMEDevice: fix atomic and lock changes

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: use nvme_probe to simply init
Haomai Wang [Sun, 7 Feb 2016 10:51:14 +0000 (18:51 +0800)]
NVMEDevice: use nvme_probe to simply init

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agospdk: update spdk submodule
Haomai Wang [Sun, 7 Feb 2016 07:06:39 +0000 (15:06 +0800)]
spdk: update spdk submodule

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: use nvme zero command instead of writing zero
Haomai Wang [Sun, 7 Feb 2016 06:57:13 +0000 (14:57 +0800)]
NVMEDevice: use nvme zero command instead of writing zero

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoNVMEDevice: cleanup task iterator process
Haomai Wang [Sun, 7 Feb 2016 06:46:51 +0000 (14:46 +0800)]
NVMEDevice: cleanup task iterator process

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agotest/radosgw-admin: update the expected usage outputs 7723/head
Kefu Chai [Sat, 20 Feb 2016 04:10:53 +0000 (12:10 +0800)]
test/radosgw-admin: update the expected usage outputs

to match with the latest radosgw-admin changes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7627 from dillaman/wip-librbd-read-replay
Josh Durgin [Sat, 20 Feb 2016 00:51:07 +0000 (16:51 -0800)]
Merge pull request #7627 from dillaman/wip-librbd-read-replay

librbd: block read requests until journal replayed

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7718 from dillaman/wip-librbd-mirror-peer
Josh Durgin [Sat, 20 Feb 2016 00:50:44 +0000 (16:50 -0800)]
Merge pull request #7718 from dillaman/wip-librbd-mirror-peer

librbd: update of mirror pool mode and mirror peer handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7698 from dillaman/wip-librbd-replay-flush
Josh Durgin [Sat, 20 Feb 2016 00:50:19 +0000 (16:50 -0800)]
Merge pull request #7698 from dillaman/wip-librbd-replay-flush

librbd: differentiate journal replay flush vs shut down

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7720 from ceph/wip-rgw-aws4
Yehuda Sadeh [Sat, 20 Feb 2016 00:14:06 +0000 (16:14 -0800)]
Merge pull request #7720 from ceph/wip-rgw-aws4

rgw support for aws authentication v4 (Javier M. Mellid)

9 years agoMerge remote-tracking branch 'jmunhoz/wip-aws4' into wip-aws4 7720/head
Yehuda Sadeh [Fri, 19 Feb 2016 22:34:13 +0000 (14:34 -0800)]
Merge remote-tracking branch 'jmunhoz/wip-aws4' into wip-aws4

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
src/rgw/rgw_auth_s3.h
src/rgw/rgw_client_io.cc
src/rgw/rgw_client_io.h
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_metadata.cc
src/rgw/rgw_rest_s3.cc

9 years agoMerge pull request #7719 from ceph/wip-rgw-keystone-v3
Yehuda Sadeh [Fri, 19 Feb 2016 21:42:30 +0000 (13:42 -0800)]
Merge pull request #7719 from ceph/wip-rgw-keystone-v3

rgw keystone v3 (Mark Barnes, Radoslaw Zarzynski)

support for keystone v3

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: update mirror peer data structure 7718/head
Jason Dillaman [Fri, 19 Feb 2016 20:29:32 +0000 (15:29 -0500)]
librbd: update mirror peer data structure

Replace cluster uuid with mirror peer uuid and support an
optional pool id within a peer (when using internal APIs
for testing).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: support image and pool-level mirroring modes
Jason Dillaman [Thu, 18 Feb 2016 20:43:59 +0000 (15:43 -0500)]
librbd: support image and pool-level mirroring modes

If pool-level mirroring is enabled, all journaled images within
the pool are eligible for mirroring.  If image-level mirroring
is enabled, mirroring needs to be explicitly enabled on each
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: Keystone token parsing doesn't need to know API version. 7719/head
Radoslaw Zarzynski [Mon, 8 Feb 2016 15:41:36 +0000 (16:41 +0100)]
rgw: Keystone token parsing doesn't need to know API version.

This patch targets an issue with S3Extension in Keystone:
requested tokens always conform to Keystone API v2 - regardless
of the version used to make the request.

Previous implementation of KeystoneToken::parse() as well
as KeystoneToken::decode_json() had to know the API version
explicitly. Thus, they might be affected in the future by
changes in S3-compatibility middleware of Keystone.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: S3 always must use token format of Keystone v2.
Radoslaw Zarzynski [Fri, 5 Feb 2016 15:07:17 +0000 (16:07 +0100)]
rgw: S3 always must use token format of Keystone v2.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: Keystone token parsing should fail on misformed JSONs.
Radoslaw Zarzynski [Fri, 5 Feb 2016 14:59:38 +0000 (15:59 +0100)]
rgw: Keystone token parsing should fail on misformed JSONs.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: improve debugs in RGWPostHTTPData.
Radoslaw Zarzynski [Thu, 4 Feb 2016 12:42:01 +0000 (13:42 +0100)]
rgw: improve debugs in RGWPostHTTPData.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: ONLY formatting improvements for Keystone-related code.
Radoslaw Zarzynski [Wed, 3 Feb 2016 16:09:46 +0000 (17:09 +0100)]
rgw: ONLY formatting improvements for Keystone-related code.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: handle Keystone API version with dedicated enum.
Radoslaw Zarzynski [Wed, 3 Feb 2016 18:38:25 +0000 (19:38 +0100)]
rgw: handle Keystone API version with dedicated enum.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: fix wrong format of admin token request in Keystone v3.
Radoslaw Zarzynski [Fri, 5 Feb 2016 12:33:03 +0000 (13:33 +0100)]
rgw: fix wrong format of admin token request in Keystone v3.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: rework serialization in token retrieval for Keystone's admin.
Radoslaw Zarzynski [Wed, 3 Feb 2016 15:59:50 +0000 (16:59 +0100)]
rgw: rework serialization in token retrieval for Keystone's admin.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: fix Keystone v2 regression in role's JSON parsing
Radoslaw Zarzynski [Wed, 3 Feb 2016 15:57:19 +0000 (16:57 +0100)]
rgw: fix Keystone v2 regression in role's JSON parsing

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: accommodate Keystone v3 in S3-related auth mechanisms.
Radoslaw Zarzynski [Tue, 2 Feb 2016 18:00:04 +0000 (19:00 +0100)]
rgw: accommodate Keystone v3 in S3-related auth mechanisms.

This patch is based on changes proposed by Mark Barnes
<mark.barnes@ocado.com> (lperiquito) in commit
af71f6a518529ea6cccb25bd46da2b6d1458c1da.

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: accommodate Keystone v3 in RGWSwift class.
Radoslaw Zarzynski [Tue, 2 Feb 2016 16:25:26 +0000 (17:25 +0100)]
rgw: accommodate Keystone v3 in RGWSwift class.

This patch is based on changes proposed by Mark Barnes
<mark.barnes@ocado.com> (lperiquito) in commit
af71f6a518529ea6cccb25bd46da2b6d1458c1da.

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: basic data structures for Keystone v3.
Radoslaw Zarzynski [Tue, 2 Feb 2016 16:05:23 +0000 (17:05 +0100)]
rgw: basic data structures for Keystone v3.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: unify RGWValidateKeystoneToken with RGWPostHTTPData.
Luis Periquito [Tue, 2 Feb 2016 15:46:37 +0000 (16:46 +0100)]
rgw: unify RGWValidateKeystoneToken with RGWPostHTTPData.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agorgw: make RGWPostHTTPData able to extract X-Subject-Token.
Radoslaw Zarzynski [Tue, 2 Feb 2016 15:40:45 +0000 (16:40 +0100)]
rgw: make RGWPostHTTPData able to extract X-Subject-Token.

The change has been extracted from changeset proposed
in commit af71f6a518529ea6cccb25bd46da2b6d1458c1da by
Mark Barnes <mark.barnes@ocado.com> (lperiquito).

Signed-off-by: Mark Barnes <mark.barnes@ocado.com>
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agolibrbd: read ops require journal replay 7627/head
Jason Dillaman [Fri, 12 Feb 2016 18:22:58 +0000 (13:22 -0500)]
librbd: read ops require journal replay

When journaling is enabled, a read op should acquire the exclusive
lock and replay the journal in case uncommitted writes are stored
in the journal.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7717 from cbodley/wip-cmake-rbd-image-watcher
Orit Wasserman [Fri, 19 Feb 2016 16:33:47 +0000 (17:33 +0100)]
Merge pull request #7717 from cbodley/wip-cmake-rbd-image-watcher

cmake: add missing librbd image_watcher sources

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agocmake: add missing librbd image_watcher sources 7717/head
Casey Bodley [Fri, 19 Feb 2016 16:10:26 +0000 (11:10 -0500)]
cmake: add missing librbd image_watcher sources

Fixes: #14823
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7709 from ceph/wip-rgw-new-multisite-merge
Yehuda Sadeh [Fri, 19 Feb 2016 15:22:03 +0000 (07:22 -0800)]
Merge pull request #7709 from ceph/wip-rgw-new-multisite-merge

rgw multisite v2 (Yehuda Sadeh, Orit Wasserman, Casey Bodley)
 - rename region to zonegroup
 - new zone and zonegroup configuration
 - new realm and period structures
 - rgw handles synchronization (no need for sync agent)
 - active-active data

Signed-off-by: Yehuda Sadeh
9 years agoMerge pull request #7371 from theanalyst/mon/quota-msg-cleanup
Kefu Chai [Fri, 19 Feb 2016 09:56:20 +0000 (17:56 +0800)]
Merge pull request #7371 from theanalyst/mon/quota-msg-cleanup

mon: cleanup set-quota error msg

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7708 from jdurgin/wip-cython-cleanup
Josh Durgin [Fri, 19 Feb 2016 08:34:50 +0000 (00:34 -0800)]
Merge pull request #7708 from jdurgin/wip-cython-cleanup

pybind: replace __del__ with __dealloc__ for rbd

Reviewed-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Mehdi Abaakouk <sileht@sileht.net>
9 years agomon: cleanup set-quota error msg 7371/head
Abhishek Lekshmanan [Wed, 27 Jan 2016 09:26:15 +0000 (10:26 +0100)]
mon: cleanup set-quota error msg

When we send in an unrecognized field for set-quota, specify that the
options should be `max_bytes` or `max_objects`. This doesn't affect the
ceph-cli as the choices are caught at an earlier stage, however the
error message is seen while reaching the cluster via rados api for eg.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7668 from dillaman/wip-librbd-replay-locks
Josh Durgin [Fri, 19 Feb 2016 08:15:36 +0000 (00:15 -0800)]
Merge pull request #7668 from dillaman/wip-librbd-replay-locks

librbd: use async librados notifications

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: avoid empty object names 7709/head
Yehuda Sadeh [Fri, 19 Feb 2016 07:50:06 +0000 (23:50 -0800)]
rgw: avoid empty object names

Don't try to sync an object with empty name (shouldn't happen, but
bugs may happen). Also, don't try to write_meta() of an empty object
name, in case we get there through a different path somehow.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years ago.gitignore: include recently added rgw programs 7708/head
Josh Durgin [Fri, 19 Feb 2016 07:49:04 +0000 (23:49 -0800)]
.gitignore: include recently added rgw programs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: fix s3 list bucket (affects format=json)
Yehuda Sadeh [Fri, 19 Feb 2016 07:49:00 +0000 (23:49 -0800)]
rgw: fix s3 list bucket (affects format=json)

another merge casualty. The section wasn't opened properly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agopybind: replace __del__ with __dealloc__ for rbd
Josh Durgin [Fri, 19 Feb 2016 07:28:25 +0000 (23:28 -0800)]
pybind: replace __del__ with __dealloc__ for rbd

Cython extension types like these don't call __del__, but use
__dealloc__ instead:

http://docs.cython.org/src/userguide/special_methods.html#finalization-method-dealloc

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7706 from sileht/sileht/rados-cython
Josh Durgin [Fri, 19 Feb 2016 07:46:21 +0000 (23:46 -0800)]
Merge pull request #7706 from sileht/sileht/rados-cython

pybind: remove next() on iterators

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorgw: only validate bucket name if not empty
Yehuda Sadeh [Fri, 19 Feb 2016 07:09:48 +0000 (23:09 -0800)]
rgw: only validate bucket name if not empty

This got broken due to code movement

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: resurrect lost code
Yehuda Sadeh [Fri, 19 Feb 2016 07:07:07 +0000 (23:07 -0800)]
rgw: resurrect lost code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agopybind: remove next() on iterator 7706/head
Mehdi Abaakouk [Fri, 19 Feb 2016 06:57:42 +0000 (07:57 +0100)]
pybind: remove next() on iterator

Cython recommends to implement only __next__() methods.

http://docs.cython.org/src/userguide/special_methods.html#the-next-method

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
9 years agoMerge pull request #7641 from batrick/vstart-usage
Loic Dachary [Fri, 19 Feb 2016 06:25:46 +0000 (13:25 +0700)]
Merge pull request #7641 from batrick/vstart-usage

Clarify usage on starting single osd/mds/mon.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotest/Makefile-client.am: adjustment following merge
Yehuda Sadeh [Fri, 19 Feb 2016 03:05:39 +0000 (19:05 -0800)]
test/Makefile-client.am: adjustment following merge

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: helper method for flushing journal commit positions 7698/head
Jason Dillaman [Fri, 19 Feb 2016 01:56:08 +0000 (20:56 -0500)]
librbd: helper method for flushing journal commit positions

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agojournal: added interface to flush pending commit position updates
Jason Dillaman [Fri, 19 Feb 2016 01:41:52 +0000 (20:41 -0500)]
journal: added interface to flush pending commit position updates

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7692 from sileht/sileht/rados-cython
Josh Durgin [Fri, 19 Feb 2016 01:42:26 +0000 (17:42 -0800)]
Merge pull request #7692 from sileht/sileht/rados-cython

pybind/rados: use __dealloc__ since __del__ is ignored by cython

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge remote-tracking branch 'origin/master' into wip-rgw-new-multisite
Yehuda Sadeh [Fri, 19 Feb 2016 01:14:07 +0000 (17:14 -0800)]
Merge remote-tracking branch 'origin/master' into wip-rgw-new-multisite

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
src/CMakeLists.txt
src/rgw/Makefile.am
src/rgw/rgw_admin.cc
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.cc
src/test/Makefile-client.am

9 years agolibrbd: differentiate journal replay flush vs shut down
Jason Dillaman [Thu, 18 Feb 2016 16:28:52 +0000 (11:28 -0500)]
librbd: differentiate journal replay flush vs shut down

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: add drain_all() before exiting a cr
Yehuda Sadeh [Thu, 18 Feb 2016 23:25:52 +0000 (15:25 -0800)]
rgw: add drain_all() before exiting a cr

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: silence compilation #warnings
Yehuda Sadeh [Thu, 18 Feb 2016 23:20:20 +0000 (15:20 -0800)]
rgw: silence compilation #warnings

these are now FIXMEs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more error reporting
Yehuda Sadeh [Tue, 16 Feb 2016 22:45:54 +0000 (14:45 -0800)]
rgw: more error reporting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync error handling (for sync init)
Yehuda Sadeh [Tue, 16 Feb 2016 22:06:49 +0000 (14:06 -0800)]
rgw: data sync error handling (for sync init)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: a bit better hashing
Yehuda Sadeh [Thu, 18 Feb 2016 23:11:00 +0000 (15:11 -0800)]
rgw: a bit better hashing

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: don't hold owner lock while refreshing image synchronously 7668/head
Jason Dillaman [Thu, 18 Feb 2016 22:58:28 +0000 (17:58 -0500)]
librbd: don't hold owner lock while refreshing image synchronously

The write lock will be taken when the new state is applied.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: need owner write lock when disabling exclusive lock
Jason Dillaman [Thu, 18 Feb 2016 22:56:20 +0000 (17:56 -0500)]
librbd: need owner write lock when disabling exclusive lock

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: correct memory leaks discovered via valgrind
Jason Dillaman [Wed, 17 Feb 2016 15:35:47 +0000 (10:35 -0500)]
librbd: correct memory leaks discovered via valgrind

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: notifications should be flushed between exclusive lock states
Jason Dillaman [Wed, 17 Feb 2016 02:43:03 +0000 (21:43 -0500)]
librbd: notifications should be flushed between exclusive lock states

Avoid leaving in-flight notification messages when transitioning lock
states.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: RGWMetaSyncCR loops through period history
Casey Bodley [Thu, 18 Feb 2016 16:31:45 +0000 (11:31 -0500)]
rgw: RGWMetaSyncCR loops through period history

RGWMetaSyncCR uses a period history Cursor to track its position. it
uses this to get the max sync markers for each shard from the following
period, so that RGWMetaSyncShardCR knows when to stop syncing and return
control to RGWMetaSyncCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: get period history cursor when starting sync
Casey Bodley [Thu, 18 Feb 2016 16:20:34 +0000 (11:20 -0500)]
rgw: get period history cursor when starting sync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove RGWMetadataManager::store_md_log_entries
Casey Bodley [Thu, 18 Feb 2016 16:11:13 +0000 (11:11 -0500)]
rgw: remove RGWMetadataManager::store_md_log_entries

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: rados coroutines take bucket by const ref
Casey Bodley [Mon, 15 Feb 2016 21:42:17 +0000 (16:42 -0500)]
rgw: rados coroutines take bucket by const ref

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add first log period to mdlog info response
Casey Bodley [Thu, 11 Feb 2016 21:59:50 +0000 (16:59 -0500)]
rgw: add first log period to mdlog info response

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: factor get_log_shard_id() out of RGWMetadataLog
Casey Bodley [Thu, 11 Feb 2016 16:03:34 +0000 (11:03 -0500)]
rgw: factor get_log_shard_id() out of RGWMetadataLog

by using RGWRados::key_to_shard_id(), we can avoid the dependency on
RGWMetadataLog's prefix (and period)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add period id to rgw_rest_log operations
Casey Bodley [Wed, 3 Feb 2016 15:46:19 +0000 (10:46 -0500)]
rgw: add period id to rgw_rest_log operations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw-admin: update callers of get_log
Casey Bodley [Wed, 3 Feb 2016 15:00:30 +0000 (10:00 -0500)]
rgw-admin: update callers of get_log

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add map of period_id -> RGWMetadataLog
Casey Bodley [Tue, 2 Feb 2016 17:44:06 +0000 (12:44 -0500)]
rgw: add map of period_id -> RGWMetadataLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add period id to metadata log oids
Casey Bodley [Fri, 29 Jan 2016 15:46:04 +0000 (10:46 -0500)]
rgw: add period id to metadata log oids

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRemoteMetaLog passes period id with requests to master
Casey Bodley [Mon, 30 Nov 2015 21:33:18 +0000 (16:33 -0500)]
rgw: RGWRemoteMetaLog passes period id with requests to master

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: move sync_status into RGWRemoteMetaLog
Casey Bodley [Mon, 30 Nov 2015 21:18:29 +0000 (16:18 -0500)]
rgw: move sync_status into RGWRemoteMetaLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: include period id in rgw_meta_sync_info
Casey Bodley [Mon, 30 Nov 2015 21:33:34 +0000 (16:33 -0500)]
rgw: include period id in rgw_meta_sync_info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: use std::move for strings in RGWFetchAllMetaCR
Casey Bodley [Mon, 16 Nov 2015 21:42:51 +0000 (16:42 -0500)]
rgw: use std::move for strings in RGWFetchAllMetaCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: remove duplicate rgw source files
Casey Bodley [Thu, 18 Feb 2016 04:10:05 +0000 (23:10 -0500)]
cmake: remove duplicate rgw source files

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove RemoteMetaLog::fetch() and admin command
Casey Bodley [Thu, 11 Feb 2016 15:29:03 +0000 (10:29 -0500)]
rgw: remove RemoteMetaLog::fetch() and admin command

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused RGWRemoteMetaLog::list_shards
Casey Bodley [Mon, 8 Feb 2016 20:03:05 +0000 (15:03 -0500)]
rgw: remove unused RGWRemoteMetaLog::list_shards

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused class RGWReadMDLogShardInfo
Casey Bodley [Tue, 2 Feb 2016 21:03:28 +0000 (16:03 -0500)]
rgw: remove unused class RGWReadMDLogShardInfo

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unused clone_shards() in metadata sync
Casey Bodley [Fri, 29 Jan 2016 19:59:35 +0000 (14:59 -0500)]
rgw: remove unused clone_shards() in metadata sync

clone_shards() was an exact duplicate for fetch()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove unneeded RGWRados arg for RGWMetadataLog
Casey Bodley [Thu, 28 Jan 2016 19:53:58 +0000 (14:53 -0500)]
rgw: remove unneeded RGWRados arg for RGWMetadataLog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: we need to clear the id in create_default in case of a race
Orit Wasserman [Tue, 16 Feb 2016 15:36:41 +0000 (16:36 +0100)]
rgw: we need to clear the id in create_default in case of a race

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw-admin: command to list sync error logs
Yehuda Sadeh [Tue, 16 Feb 2016 01:04:05 +0000 (17:04 -0800)]
rgw-admin: command to list sync error logs

$ radosgw-admin sync error list

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set quota when converting regionmap
Yehuda Sadeh [Mon, 15 Feb 2016 23:40:37 +0000 (15:40 -0800)]
rgw: set quota when converting regionmap

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agolibrbd: update image name upon rename operations
Jason Dillaman [Tue, 16 Feb 2016 17:59:42 +0000 (12:59 -0500)]
librbd: update image name upon rename operations

Previously the image could not have been renamed twice without
re-opening the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: missing owner lock on snap rollback cache invalidation
Jason Dillaman [Tue, 16 Feb 2016 17:51:34 +0000 (12:51 -0500)]
librbd: missing owner lock on snap rollback cache invalidation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: journal replay should execute ops in clean context
Jason Dillaman [Tue, 16 Feb 2016 14:07:57 +0000 (09:07 -0500)]
librbd: journal replay should execute ops in clean context

lockdep will complain about loop cycles that won't cause an
issue in reality as replay and record are two different
journal states.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: use AIO notifications to prevent blocking ops
Jason Dillaman [Tue, 16 Feb 2016 15:10:16 +0000 (10:10 -0500)]
librbd: use AIO notifications to prevent blocking ops

If two or more images share the same CephContext, notifications
from one image can block the work queue which will potentially
block acknowledging the notification until after it times out.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: cleanup header update notifications
Jason Dillaman [Tue, 16 Feb 2016 04:25:28 +0000 (23:25 -0500)]
librbd: cleanup header update notifications

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoRevert "librbd: lock notifications should be executed outside librados thread"
Jason Dillaman [Tue, 16 Feb 2016 01:52:16 +0000 (20:52 -0500)]
Revert "librbd: lock notifications should be executed outside librados thread"

This reverts commit d898995b0e3ea301b1325f68a0532d57afa3c816.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>