]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agodoc: Fixes a typo. 13985/head
Edwin F. Boza [Wed, 15 Mar 2017 20:21:30 +0000 (15:21 -0500)]
doc: Fixes a typo.

Signed-off-by: Edwin F. Boza <eboza@espol.edu.ec>
8 years agodoc: Fixes a typo.
Edwin F. Boza [Wed, 15 Mar 2017 18:10:27 +0000 (13:10 -0500)]
doc: Fixes a typo.

Signed-off-by: Edwin F. Boza <eboza@espol.edu.ec>
8 years agoMerge pull request #13949 from cbodley/wip-15618
Casey Bodley [Tue, 14 Mar 2017 18:26:32 +0000 (14:26 -0400)]
Merge pull request #13949 from cbodley/wip-15618

rgw: clear old zone short ids on period update

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13948 from cbodley/wip-rgw-data-sync-versioned
Casey Bodley [Tue, 14 Mar 2017 18:26:12 +0000 (14:26 -0400)]
Merge pull request #13948 from cbodley/wip-rgw-data-sync-versioned

rgw: data sync includes instance in rgw_obj_index_key

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13586 from Liuchang0812/wip-add-override-in-rgw
Casey Bodley [Tue, 14 Mar 2017 17:39:45 +0000 (13:39 -0400)]
Merge pull request #13586 from Liuchang0812/wip-add-override-in-rgw

rgw: add override in header files mostly

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12793 from zhangsw/fix-rgw-abortmultipart
Casey Bodley [Tue, 14 Mar 2017 16:19:00 +0000 (12:19 -0400)]
Merge pull request #12793 from zhangsw/fix-rgw-abortmultipart

rgw: AbortMultipart request returns NoSuchUpload error if the meta obj doesn't exist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13900 from oritwas/wip-rgw-19231
Casey Bodley [Tue, 14 Mar 2017 16:10:00 +0000 (12:10 -0400)]
Merge pull request #13900 from oritwas/wip-rgw-19231

fix upgrate from hammer when zone doesn't have zoneparams

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13354 from Liuchang0812/wip-18828
Casey Bodley [Tue, 14 Mar 2017 14:43:32 +0000 (10:43 -0400)]
Merge pull request #13354 from Liuchang0812/wip-18828

rgw: don't return skew time error in pre-signed url

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13798 from tchaikov/wip-brag-count-mds
Kefu Chai [Tue, 14 Mar 2017 13:17:07 +0000 (21:17 +0800)]
Merge pull request #13798 from tchaikov/wip-brag-count-mds

brag: count the number of mds in fsmap not in mdsmap

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge branch 'wip-omap-getkeys-mds'
John Spray [Tue, 14 Mar 2017 11:51:51 +0000 (11:51 +0000)]
Merge branch 'wip-omap-getkeys-mds'

8 years agoqa/suites/fs/basic: vary omap osd-side limit
Sage Weil [Mon, 23 Jan 2017 16:56:15 +0000 (11:56 -0500)]
qa/suites/fs/basic: vary omap osd-side limit

Ensure that the omap looping paths are exercised.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/CDir: set sane max keys per op
Sage Weil [Fri, 20 Jan 2017 03:20:54 +0000 (21:20 -0600)]
mds/CDir: set sane max keys per op

Set default to 16384, which is > than the max frag size of 10000.  We will
loop if there are more.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/CDir: fetch dir omap in batches as needed
Sage Weil [Thu, 19 Jan 2017 21:54:12 +0000 (15:54 -0600)]
mds/CDir: fetch dir omap in batches as needed

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/SessionMap: use pmore for loading sessions
Sage Weil [Fri, 20 Jan 2017 03:18:02 +0000 (21:18 -0600)]
mds/SessionMap: use pmore for loading sessions

Keep the result size check for a while since older OSDs won't populate
the pmore field for us.  Eventually we can remove it.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13812 from idryomov/wip-krbd-feature-disable-msg
Ilya Dryomov [Tue, 14 Mar 2017 09:22:42 +0000 (10:22 +0100)]
Merge pull request #13812 from idryomov/wip-krbd-feature-disable-msg

rbd: spell out image features unsupported by the kernel

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13924 from tchaikov/wip-silence-gcc-warnings
Kefu Chai [Tue, 14 Mar 2017 05:01:44 +0000 (13:01 +0800)]
Merge pull request #13924 from tchaikov/wip-silence-gcc-warnings

os/bluestore,test/ceph_test_objectstore: silence gcc warnings

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agorgw/cleanup: add override in headers 13586/head
liuchang0812 [Wed, 22 Feb 2017 09:46:46 +0000 (17:46 +0800)]
rgw/cleanup: add override in headers

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #13700 from yuyuyu101/wip-msgr-lossy
Kefu Chai [Tue, 14 Mar 2017 02:56:05 +0000 (10:56 +0800)]
Merge pull request #13700 from yuyuyu101/wip-msgr-lossy

msg/async: avoid lossy connection sending ack message

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13805 from tchaikov/wip-qa-upgrade-tiering
Josh Durgin [Mon, 13 Mar 2017 22:26:58 +0000 (15:26 -0700)]
Merge pull request #13805 from tchaikov/wip-qa-upgrade-tiering

qa/suites/upgrade: add tiering test to hammer-jewel-x

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13727 from jcsp/wip-send-command
Sage Weil [Mon, 13 Mar 2017 19:59:29 +0000 (14:59 -0500)]
Merge pull request #13727 from jcsp/wip-send-command

osdc: clean up osd_command/start_mon_command interfaces

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13825 from wjwithagen/wip-wjw-stack-compat
Yuri Weinstein [Mon, 13 Mar 2017 19:58:12 +0000 (12:58 -0700)]
Merge pull request #13825 from wjwithagen/wip-wjw-stack-compat

msg/async/Stack.cc: use of pthread_setname_np() needs compat.h

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #10272 from yonghengdexin735/wip-zzz-delete=
Yuri Weinstein [Mon, 13 Mar 2017 19:57:06 +0000 (12:57 -0700)]
Merge pull request #10272 from yonghengdexin735/wip-zzz-delete=

msg/simple/Pipe:the returned value for do_recv unequal to zero

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12578 from kylinstorage/wip-filestore-ref
Sage Weil [Mon, 13 Mar 2017 19:55:26 +0000 (14:55 -0500)]
Merge pull request #12578 from kylinstorage/wip-filestore-ref

os/filestore: avoid unnecessary copy in filestore::_do_transaction

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13894 from majianpeng/do_op_duplicated_code
Yuri Weinstein [Mon, 13 Mar 2017 19:52:27 +0000 (12:52 -0700)]
Merge pull request #13894 from majianpeng/do_op_duplicated_code

osd/PrimaryLogPG: remove duplicated code.

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
8 years agorgw: clear old zone short ids on period update 13949/head
Casey Bodley [Thu, 9 Mar 2017 20:24:08 +0000 (15:24 -0500)]
rgw: clear old zone short ids on period update

the short ids of old, removed zones were being kept in the period to
guard against hash collisions with new zones

but for a hash collision to cause a wrong object to sync, that object
would have to be uploaded simultaneously to two different zones that had
the same short id

to avoid this, we just have to prevent the period from containing two
colliding zones at the same time - we don't have to remember old zone
short ids forever

Fixes: http://tracker.ceph.com/issues/15618
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: data sync includes instance in rgw_obj_index_key 13948/head
Casey Bodley [Mon, 13 Mar 2017 18:51:17 +0000 (14:51 -0400)]
rgw: data sync includes instance in rgw_obj_index_key

this was breaking the versioned object test in test_multi.py, because we
were trying to create delete markers instead of unlinking a specific
object instance

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13919 from dillaman/wip-19256
Mykola Golub [Mon, 13 Mar 2017 16:26:52 +0000 (18:26 +0200)]
Merge pull request #13919 from dillaman/wip-19256

rbd: prevent adding multiple mirror peers to a single pool

Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12264 from cbodley/wip-rgw-print-is-admin
Casey Bodley [Mon, 13 Mar 2017 14:27:49 +0000 (10:27 -0400)]
Merge pull request #12264 from cbodley/wip-rgw-print-is-admin

rgw: print is_admin as int instead of __u8

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13722 from dachary/wip-crush-doc
Loic Dachary [Mon, 13 Mar 2017 14:07:47 +0000 (15:07 +0100)]
Merge pull request #13722 from dachary/wip-crush-doc

crush: document tunables and rule step set_

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocrush: document tunables and rule step set_ 13722/head
Loic Dachary [Thu, 2 Mar 2017 21:18:37 +0000 (22:18 +0100)]
crush: document tunables and rule step set_

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #13781 from SUSE/wip-19184
Nathan Cutler [Mon, 13 Mar 2017 07:34:27 +0000 (08:34 +0100)]
Merge pull request #13781 from SUSE/wip-19184

build/ops: make package groups comply with openSUSE guidelines

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
8 years agorbd: prevent adding multiple mirror peers to a single pool 13919/head
Jason Dillaman [Fri, 10 Mar 2017 15:56:38 +0000 (10:56 -0500)]
rbd: prevent adding multiple mirror peers to a single pool

The rbd-mirror daemon does not currently support replication
from multiple peers. Until that is supported, add a temporary
restriction to prevent confusion.

Fixes: http://tracker.ceph.com/issues/19256
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13926 from trociny/wip-19260
Jason Dillaman [Sun, 12 Mar 2017 14:51:58 +0000 (10:51 -0400)]
Merge pull request #13926 from trociny/wip-19260

librbd: fix clang compilation error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: make build with clang 13926/head
Mykola Golub [Sat, 11 Mar 2017 19:19:33 +0000 (19:19 +0000)]
librbd: make build with clang

Fixes: http://tracker.ceph.com/issues/19260
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13694 from liupan1111/wip-fix-no-error-map
Mykola Golub [Sat, 11 Mar 2017 15:05:49 +0000 (17:05 +0200)]
Merge pull request #13694 from liupan1111/wip-fix-no-error-map

rbd-nbd: warn when kernel parameters are ignored

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-nbd: only try to load nbd module once when open nbd device, during do_map operation. 13694/head
Pan Liu [Sat, 11 Mar 2017 13:50:00 +0000 (21:50 +0800)]
rbd-nbd: only try to load nbd module once when open nbd device, during do_map operation.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agorbd-nbd: warn when kernel parameters are ignored
Pan Liu [Sat, 11 Mar 2017 13:48:37 +0000 (21:48 +0800)]
rbd-nbd: warn when kernel parameters are ignored

Fixes: http://tracker.ceph.com/issues/19108
Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agoos/bluestore: silence gcc warning 13924/head
Kefu Chai [Sat, 11 Mar 2017 09:20:58 +0000 (17:20 +0800)]
os/bluestore: silence gcc warning

silences following warning:

src/os/bluestore/BitAllocator.h:410:8: warning: ‘virtual bool
BitMapAreaIN::child_check_n_lock(BitMapArea*, int64_t, bool)’ was hidden
[-Wover\
loaded-virtual]
   bool child_check_n_lock(BitMapArea *child, int64_t required, bool
lock) {
        ^~~~~~~~~~~~~~~~~~
/var/ceph/ceph/src/os/bluestore/BitAllocator.h:489:8: warning:   by
‘BitMapAreaLeaf::child_check_n_lock’ [-Woverloaded-virtual]
   bool child_check_n_lock(BitMapZone* child, int64_t required, bool
lock);
        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest/ceph_test_objectstore: silence gcc warning
Kefu Chai [Tue, 7 Mar 2017 03:31:14 +0000 (11:31 +0800)]
test/ceph_test_objectstore: silence gcc warning

silence following warning:

store_test.cc: In member function ‘virtual void
StoreTest_ManyObjectTest_Test::TestBody()’:
/var/ceph/ceph/src/test/objectstore/store_test.cc:3153:6: warning:
suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
   if (listed2.size())
      ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13801 from xiexingguo/wip-fix-func-name
Xie Xingguo [Sat, 11 Mar 2017 01:55:44 +0000 (09:55 +0800)]
Merge pull request #13801 from xiexingguo/wip-fix-func-name

osd: fix func name in log produced by handle_pg_peering_evt()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13856 from zhangsw/cleanup-radosgw-admin-tier_type
Yehuda Sadeh [Fri, 10 Mar 2017 21:54:23 +0000 (13:54 -0800)]
Merge pull request #13856 from zhangsw/cleanup-radosgw-admin-tier_type

rgw: remove useless --tier_type in radosgw-admin.

Reviewed-by: Jiaying Ren <mikulely@gmail.com>
8 years agorbd: spell out image features unsupported by the kernel 13812/head
Ilya Dryomov [Mon, 6 Mar 2017 12:59:21 +0000 (13:59 +0100)]
rbd: spell out image features unsupported by the kernel

/sys/bus/rbd/supported_features is available on kernels starting with
4.11.  Example output:

    $ sudo rbd map x
    rbd: sysfs write failed
    RBD image feature set mismatch. This image cannot be mapped because the following immutable features are unsupported by the kernel: data-pool.
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

    $ sudo rbd map -p foo y
    rbd: sysfs write failed
    RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable foo/y object-map fast-diff deep-flatten".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

or, if /sys/bus/rbd/supported_features isn't there:

    $ sudo rbd map z
    rbd: sysfs write failed
    RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

Fixes: http://tracker.ceph.com/issues/19095
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #13920 from cbodley/wip-rgw-fix-cleanup-meta-sync
Yehuda Sadeh [Fri, 10 Mar 2017 19:27:03 +0000 (11:27 -0800)]
Merge pull request #13920 from cbodley/wip-rgw-fix-cleanup-meta-sync

rgw: fix transition from full to incremental meta sync

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11586 from cbodley/wip-rgw-fetchallmeta-yield-break
Yehuda Sadeh [Fri, 10 Mar 2017 19:10:58 +0000 (11:10 -0800)]
Merge pull request #11586 from cbodley/wip-rgw-fetchallmeta-yield-break

rgw: fix break inside of yield in RGWFetchAllMetaCR

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10407 from yonghengdexin735/wip-zzz-perf-counters
Sage Weil [Fri, 10 Mar 2017 16:55:21 +0000 (10:55 -0600)]
Merge pull request #10407 from yonghengdexin735/wip-zzz-perf-counters

common/perf_counters.: Remove unnecessary judgment

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: fix transition from full to incremental meta sync 13920/head
Casey Bodley [Fri, 10 Mar 2017 16:25:35 +0000 (11:25 -0500)]
rgw: fix transition from full to incremental meta sync

when transitioning to incremental sync, we need to write temp_marker
instead of sync_marker, because temp_marker has replaced the full sync
marker (which is a metadata key, rather than an log marker) with
next_step_marker

this was breaking the metadata checkpoint in test_multi.py, because it
was comparing metadata keys (i.e. 'user:zone.user') against mdlog
markers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agobuild/ops: extend rpm spec file copyright period to 2017 13781/head
Nathan Cutler [Fri, 3 Mar 2017 22:43:31 +0000 (23:43 +0100)]
build/ops: extend rpm spec file copyright period to 2017

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agobuild/ops: make package groups comply with openSUSE guidelines
Nathan Cutler [Fri, 3 Mar 2017 14:49:59 +0000 (15:49 +0100)]
build/ops: make package groups comply with openSUSE guidelines

. . . and put all Group: lines in SUSE conditional blocks.

Fixes: http://tracker.ceph.com/issues/19184
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13737 from dillaman/wip-19104
Mykola Golub [Fri, 10 Mar 2017 15:00:43 +0000 (17:00 +0200)]
Merge pull request #13737 from dillaman/wip-19104

test: support blacklisting within librados_test_stub

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: correct race conditions within leader watcher 13737/head
Jason Dillaman [Fri, 3 Mar 2017 21:06:25 +0000 (16:06 -0500)]
rbd-mirror: correct race conditions within leader watcher

It was possible for multiple, concurrent acquire attempts to be
running for a single instance due to notification messages. Now
only a single acquire state machine can be running.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: improve debug log messages for managed lock
Jason Dillaman [Fri, 3 Mar 2017 17:38:18 +0000 (12:38 -0500)]
librbd: improve debug log messages for managed lock

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest: potential shutdown race in TestMockImageReplayer.DecodeError
Jason Dillaman [Thu, 2 Mar 2017 17:04:45 +0000 (12:04 -0500)]
test: potential shutdown race in TestMockImageReplayer.DecodeError

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: avoid duplicating librados IoCtx objects if not needed
Jason Dillaman [Thu, 2 Mar 2017 15:29:36 +0000 (10:29 -0500)]
librbd: avoid duplicating librados IoCtx objects if not needed

This introduces the potential for shutdown race conditions within
the unit tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: support blacklisting of connections
Jason Dillaman [Wed, 1 Mar 2017 23:40:05 +0000 (18:40 -0500)]
test/librados_test_stub: support blacklisting of connections

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: watch/notify should be connection-aware
Jason Dillaman [Wed, 1 Mar 2017 22:27:23 +0000 (17:27 -0500)]
test/librados_test_stub: watch/notify should be connection-aware

Utilize the AIO completion thread of the local connection to best
simulate how librados actually performs when connected a cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: separate mock cluster from connection
Jason Dillaman [Wed, 1 Mar 2017 21:21:20 +0000 (16:21 -0500)]
test/librados_test_stub: separate mock cluster from connection

The plan to support independent connections sharing the same
view of the mocked cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13857 from liupan1111/wip-rename-onack-to-oncommit
Sage Weil [Thu, 9 Mar 2017 21:16:19 +0000 (15:16 -0600)]
Merge pull request #13857 from liupan1111/wip-rename-onack-to-oncommit

librados: replace the var name from onack to complete

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11485 from yehudasa/wip-bucket-cleanup
Yehuda Sadeh [Thu, 9 Mar 2017 18:16:48 +0000 (10:16 -0800)]
Merge pull request #11485 from yehudasa/wip-bucket-cleanup

rgw structures rework

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13758 from dillaman/wip-18748
Mykola Golub [Thu, 9 Mar 2017 18:15:17 +0000 (20:15 +0200)]
Merge pull request #13758 from dillaman/wip-18748

rbd: demote/promote all mirrored images in a pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorgw: fix crash when listing objects via swift 11485/head
Yehuda Sadeh [Wed, 8 Mar 2017 22:52:34 +0000 (14:52 -0800)]
rgw: fix crash when listing objects via swift

Fixes: http://tracker.ceph.com/issues/19249
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoqa/tasks/radosgw_admin: adjust test to new bucket structure
Yehuda Sadeh [Wed, 8 Mar 2017 22:27:14 +0000 (14:27 -0800)]
qa/tasks/radosgw_admin: adjust test to new bucket structure

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: more fixes following rebase
Yehuda Sadeh [Sat, 18 Feb 2017 00:37:08 +0000 (16:37 -0800)]
rgw: more fixes following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: new rest api to retrieve object layout
Yehuda Sadeh [Mon, 9 Jan 2017 21:04:43 +0000 (13:04 -0800)]
rgw: new rest api to retrieve object layout

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: get_obj_state() checks for empty oids
Yehuda Sadeh [Thu, 5 Jan 2017 21:15:56 +0000 (13:15 -0800)]
rgw: get_obj_state() checks for empty oids

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: metadata put of bucket instance sets bucket_id
Yehuda Sadeh [Tue, 20 Dec 2016 21:32:57 +0000 (13:32 -0800)]
rgw: metadata put of bucket instance sets bucket_id

Need to parse the bucket id off the entry and then set it on the
bucket struct.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw_admin: remove broken check
Yehuda Sadeh [Tue, 20 Dec 2016 21:32:17 +0000 (13:32 -0800)]
rgw_admin: remove broken check

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agomrgw.sh: fix script
Yehuda Sadeh [Mon, 19 Dec 2016 22:33:18 +0000 (14:33 -0800)]
mrgw.sh: fix script

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix async cr operation
Yehuda Sadeh [Mon, 19 Dec 2016 22:15:36 +0000 (14:15 -0800)]
rgw: fix async cr operation

Fix crash due to code cleanup. Changes scope of obj ref.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: modify default pools to use namespaces
Yehuda Sadeh [Fri, 16 Dec 2016 23:41:23 +0000 (15:41 -0800)]
rgw: modify default pools to use namespaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: handle pools namespace
Yehuda Sadeh [Fri, 16 Dec 2016 23:43:40 +0000 (15:43 -0800)]
rgw: handle pools namespace

Use rgw_pool all around, and replace librados::create_ioctx() with
helper that also sets the namespace.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add namespace to rgw_pool
Yehuda Sadeh [Fri, 16 Dec 2016 02:14:58 +0000 (18:14 -0800)]
rgw: add namespace to rgw_pool

add a namespace field to the rgw_pool struct

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: compilation and other fixes following rebase
Yehuda Sadeh [Thu, 15 Dec 2016 00:09:13 +0000 (16:09 -0800)]
rgw: compilation and other fixes following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: move placement rule out of rgw_bucket
Yehuda Sadeh [Mon, 28 Nov 2016 16:27:41 +0000 (08:27 -0800)]
rgw: move placement rule out of rgw_bucket

Bucket's placement rule is in the bucket instance's info. Object's
placement rule is in the manifest

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/version: add more useful logging
Yehuda Sadeh [Tue, 22 Nov 2016 18:36:15 +0000 (10:36 -0800)]
cls/version: add more useful logging

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix ECANCELED handling in rgw_get_system_obj()
Yehuda Sadeh [Tue, 22 Nov 2016 18:33:12 +0000 (10:33 -0800)]
rgw: fix ECANCELED handling in rgw_get_system_obj()

Fixes: http://tracker.ceph.com/issues/17996
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: keep rgw_obj key info in rgw_obj_key field
Yehuda Sadeh [Mon, 21 Nov 2016 22:10:21 +0000 (14:10 -0800)]
rgw: keep rgw_obj key info in rgw_obj_key field

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add rgw_obj_index_key, kill RGWObjEnt
Yehuda Sadeh [Thu, 17 Nov 2016 23:26:35 +0000 (15:26 -0800)]
rgw: add rgw_obj_index_key, kill RGWObjEnt

Use rgw_obj_index_key to represent entries in bucket index (typedef of
cls_rgw_obj_key). Get rid of RGWObjEnt, it was duplicate of rgw_bucket_dir_entry
anyway.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: clean rgw_obj
Yehuda Sadeh [Thu, 17 Nov 2016 00:20:17 +0000 (16:20 -0800)]
rgw: clean rgw_obj

Instead of storing the oid and the name, just store the name
and calculate it when needed (same goes to locator). Also give more
coherent names to the various fields.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix bucket overwrite
Yehuda Sadeh [Wed, 16 Nov 2016 01:14:24 +0000 (17:14 -0800)]
rgw: fix bucket overwrite

got broken through the rgw_bucket cleanup related work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agotest/rgw: extend obj, manifest unitests
Yehuda Sadeh [Mon, 31 Oct 2016 22:55:20 +0000 (15:55 -0700)]
test/rgw: extend obj, manifest unitests

Test rgw_raw_obj and upgrade of old rgw_obj, rgw_bucket and
old manifest.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: implicit rgw_bucket placement, manifest uses rgw_raw_obj
Yehuda Sadeh [Mon, 31 Oct 2016 22:56:26 +0000 (15:56 -0700)]
rgw: implicit rgw_bucket placement, manifest uses rgw_raw_obj

Two main changes here:
1. Newly created rgw_bucket does not have a predetermined placement pools
assigned to it. The placement_id param in the objects themselves points
at where the data is located. This affects object's tail location, head
is located where the bucket instance's placement rule points at.
2. Modify object manifest to use rgw_raw_obj instead of rgw_obj.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: simple manifest compaction
Yehuda Sadeh [Thu, 13 Oct 2016 22:57:46 +0000 (15:57 -0700)]
rgw: simple manifest compaction

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: use rgw_raw_obj in manifest code
Yehuda Sadeh [Thu, 13 Oct 2016 03:22:01 +0000 (20:22 -0700)]
rgw: use rgw_raw_obj in manifest code

This drags in multiple related changes that are needed in order to
support that.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: decode rgw_raw_obj as rgw_obj when it's old object
Yehuda Sadeh [Tue, 11 Oct 2016 22:44:17 +0000 (15:44 -0700)]
rgw: decode rgw_raw_obj as rgw_obj when it's old object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: remove unneeded virtual declarations
Yehuda Sadeh [Tue, 11 Oct 2016 22:06:37 +0000 (15:06 -0700)]
rgw: remove unneeded virtual declarations

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: more fixes and adjustments following rgw_pool, rgw_raw_obj
Yehuda Sadeh [Mon, 10 Oct 2016 22:09:35 +0000 (15:09 -0700)]
rgw: more fixes and adjustments following rgw_pool, rgw_raw_obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: separate RGWObjState
Yehuda Sadeh [Sun, 9 Oct 2016 05:16:18 +0000 (22:16 -0700)]
rgw: separate RGWObjState

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: introduce rgw_pool, rgw_raw_obj
Yehuda Sadeh [Sat, 8 Oct 2016 04:03:32 +0000 (21:03 -0700)]
rgw: introduce rgw_pool, rgw_raw_obj

Pools are represented by rgw_pool (and not rgw_bucket anymore),
and we use rgw_raw_obj to reference rados objs and all 'system'
objects (vs rgw_obj that is used for rgw objects).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: skip conversion of zones without any zoneparams 13900/head
Orit Wasserman [Thu, 9 Mar 2017 11:03:24 +0000 (13:03 +0200)]
rgw: skip conversion of zones without any zoneparams

Fixes: http://tracker.ceph.com/issues/19231
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: better debug information for upgrade
Orit Wasserman [Thu, 9 Mar 2017 09:16:26 +0000 (11:16 +0200)]
rgw: better debug information for upgrade

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agolibrados: replace the var name from onact to oncomplete. 13857/head
Pan Liu [Thu, 9 Mar 2017 12:58:26 +0000 (20:58 +0800)]
librados: replace the var name from onact to oncomplete.

Signed-off-by: Pan Liu <pan.liu@istuary.com>
8 years agoMerge pull request #13901 from Adirl/default
Sage Weil [Thu, 9 Mar 2017 15:35:29 +0000 (09:35 -0600)]
Merge pull request #13901 from Adirl/default

msg/async/rdma: compile with rdma as default

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13760 from zhangsw/fix-rgw-torrent-uri
Casey Bodley [Thu, 9 Mar 2017 14:53:27 +0000 (09:53 -0500)]
Merge pull request #13760 from zhangsw/fix-rgw-torrent-uri

rgw: get torrent request's parameter is not the same as amazon s3.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13660 from shashalu/rgw-read-sync-status
Casey Bodley [Thu, 9 Mar 2017 14:47:29 +0000 (09:47 -0500)]
Merge pull request #13660 from shashalu/rgw-read-sync-status

rgw: use separate http_manager for read_sync_status

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13878 from smithfarm/wip-jewel-release-notes-fixup
Abhishek L [Thu, 9 Mar 2017 14:17:12 +0000 (15:17 +0100)]
Merge pull request #13878 from smithfarm/wip-jewel-release-notes-fixup

doc: mention ENXIO change in the 10.2.6 release notes

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoosd/PrimaryLogPG: remove duplicated code. 13894/head
Jianpeng Ma [Thu, 9 Mar 2017 13:57:26 +0000 (21:57 +0800)]
osd/PrimaryLogPG: remove duplicated code.

In fact, the following code in this function
>> if (op->may_write()) {
>>  ....
>>    // invalid?
>>    if (m->get_snapid() != CEPH_NOSNAP) {
>>      dout(20) << __func__ << ": write to clone not valid " << *m << dendl;
>>      osd->reply_op_error(op, -EINVAL);
>>      return;
>>    }
has the same function. So remove the duplicated code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agomgr: update for start_mon_command int->void 13727/head
John Spray [Wed, 1 Mar 2017 19:12:41 +0000 (19:12 +0000)]
mgr: update for start_mon_command int->void

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosd: update for mon_command void change
John Spray [Wed, 1 Mar 2017 15:21:51 +0000 (15:21 +0000)]
osd: update for mon_command void change

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: cmd arg should be const on Objecter::send_command
John Spray [Sat, 4 Feb 2017 23:31:16 +0000 (23:31 +0000)]
osdc: cmd arg should be const on Objecter::send_command

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agolibrados: update for osd_command/mon_command void change
John Spray [Sat, 4 Feb 2017 21:20:04 +0000 (21:20 +0000)]
librados: update for osd_command/mon_command void change

Signed-off-by: John Spray <john.spray@redhat.com>