]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoMerge PR #24156 into master
Patrick Donnelly [Thu, 20 Sep 2018 16:31:50 +0000 (09:31 -0700)]
Merge PR #24156 into master

* refs/pull/24156/head:
qa/tests: removed knfs suite

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24153 into master
Patrick Donnelly [Thu, 20 Sep 2018 16:31:15 +0000 (09:31 -0700)]
Merge PR #24153 into master

* refs/pull/24153/head:
qa/tests: removed knfs from crontab

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23960 from votdev/feature_35695
Ricardo Marques [Thu, 20 Sep 2018 16:24:41 +0000 (17:24 +0100)]
Merge pull request #23960 from votdev/feature_35695

mgr/dashboard: Refactor role management

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #23829 from dillaman/wip-34534
Mykola Golub [Thu, 20 Sep 2018 15:52:57 +0000 (18:52 +0300)]
Merge pull request #23829 from dillaman/wip-34534

librbd: blacklisted client might not notice it lost the lock

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #24185 into master
Patrick Donnelly [Thu, 20 Sep 2018 15:02:48 +0000 (08:02 -0700)]
Merge PR #24185 into master

* refs/pull/24185/head:
qa: install build dependencies for cfuse_workunit_kernel_untar_build.yaml

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23415 into master
Sage Weil [Thu, 20 Sep 2018 14:30:41 +0000 (09:30 -0500)]
Merge PR #23415 into master

* refs/pull/23415/head:
msgr/async: huge refactoring of protocol V1
msgr/async: fix forward declaration of DispatchQueue

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24175 from xiaomanh/master
Xie Xingguo [Thu, 20 Sep 2018 14:03:14 +0000 (22:03 +0800)]
Merge pull request #24175 from xiaomanh/master

doc: Fix Spelling Error In File dynamicresharding.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Increase usability of role management by enabling the user to check... 23960/head
Volker Theile [Fri, 7 Sep 2018 09:14:38 +0000 (11:14 +0200)]
mgr/dashboard: Increase usability of role management by enabling the user to check/uncheck all rows/columns of permissions

Fixes: https://tracker.ceph.com/issues/35695
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23429 from joke-lee/wip-website-rule-num-limit
Casey Bodley [Thu, 20 Sep 2018 12:50:06 +0000 (08:50 -0400)]
Merge pull request #23429 from joke-lee/wip-website-rule-num-limit

rgw: website routing rules num limit

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #24028 from votdev/fix_rgw_status
Ricardo Marques [Thu, 20 Sep 2018 12:44:24 +0000 (13:44 +0100)]
Merge pull request #24028 from votdev/fix_rgw_status

mgr/dashboard: Catch LookupError when checking the RGW status

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #23823 from dillaman/wip-namespace-osd-check
Jason Dillaman [Thu, 20 Sep 2018 12:07:21 +0000 (08:07 -0400)]
Merge pull request #23823 from dillaman/wip-namespace-osd-check

librbd: prevent use of namespaces on pre-nautilus OSDs

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #22579 from dillaman/wip-pybind-rados
Jason Dillaman [Thu, 20 Sep 2018 12:06:32 +0000 (08:06 -0400)]
Merge pull request #22579 from dillaman/wip-pybind-rados

pybind/rados: new methods for manipulating self-managed snapshots

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #22739 from majianpeng/osd-shardthread-do-bluestore-oncommits
Kefu Chai [Thu, 20 Sep 2018 08:47:07 +0000 (16:47 +0800)]
Merge pull request #22739 from majianpeng/osd-shardthread-do-bluestore-oncommits

os/bluestore: make osd shard-thread do oncommits

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/OSD: choose a fixed thread do oncommits callback function 22739/head
Jianpeng Ma [Thu, 20 Sep 2018 14:10:20 +0000 (22:10 +0800)]
osd/OSD: choose a fixed thread do oncommits callback function

Now bluestore oncommit callback exec by osd op threads.
If there are multi threads of shard, it will cause out-of order.
For example, threads_per_shard=2
              Thread1                                 Thread2
    swap_oncommits(op1_oncommit)
                                            swap_oncommits(op2_oncommit)
    OpQueueItem.run(Op3)
                                            op2_oncommit.complete();
    op1_oncommit.complete()

This make oncommits out of order.
To avoiding this, we choose a fixed thread which has the smallest
thread_index of shard to do oncommit callback function.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agocommon/Finisher: only queue empty only wake up waiter.
Jianpeng Ma [Thu, 20 Sep 2018 13:28:40 +0000 (21:28 +0800)]
common/Finisher: only queue empty only wake up waiter.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agocommon/Finisher: only queue empty only wake up waiter.
Jianpeng Ma [Thu, 20 Sep 2018 13:52:53 +0000 (21:52 +0800)]
common/Finisher: only queue empty only wake up waiter.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #24004 from xiexingguo/wip-yet-more-async-fixes
Xie Xingguo [Thu, 20 Sep 2018 06:49:31 +0000 (14:49 +0800)]
Merge pull request #24004 from xiexingguo/wip-yet-more-async-fixes

osd/PG: async-recovery should respect historical missing objects

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #24130 from tchaikov/wip-gcc-7.3
Kefu Chai [Thu, 20 Sep 2018 04:25:57 +0000 (12:25 +0800)]
Merge pull request #24130 from tchaikov/wip-gcc-7.3

rpm: bump up required GCC version to 7.3.1

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: website routing rules num limit 23429/head
yuliyang [Sun, 5 Aug 2018 08:36:59 +0000 (16:36 +0800)]
rgw: website routing rules num limit
According to AWS S3 , an website routing rules can
have up to 50 rules.

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoqa: install build dependencies for cfuse_workunit_kernel_untar_build.yaml 24185/head
Neha Ojha [Tue, 18 Sep 2018 22:40:50 +0000 (15:40 -0700)]
qa: install build dependencies for cfuse_workunit_kernel_untar_build.yaml

Fixes: https://tracker.ceph.com/issues/36076
Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #23779 from Devp00l/wip-table-actions-component
Ricardo Marques [Wed, 19 Sep 2018 19:51:41 +0000 (20:51 +0100)]
Merge pull request #23779 from Devp00l/wip-table-actions-component

mgr/dashboard: Add table actions component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agolibrbd: use the correct error code when the exclusive lock isn't locked 23829/head
Jason Dillaman [Thu, 6 Sep 2018 21:08:12 +0000 (17:08 -0400)]
librbd: use the correct error code when the exclusive lock isn't locked

If the client is currently blacklisted, use -EBLACKLISTED, otherwise
use -EROFS.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: helper to retrieve the correct error code for read-only op
Jason Dillaman [Thu, 6 Sep 2018 21:15:50 +0000 (17:15 -0400)]
librbd: helper to retrieve the correct error code for read-only op

When the exclusive lock is unlocked, the error code should be
-EBLACKLISTED when the client is blacklisted, otherwise -EROFS.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: reacquire lock should properly handle failed watcher
Jason Dillaman [Thu, 6 Sep 2018 17:38:17 +0000 (13:38 -0400)]
librbd: reacquire lock should properly handle failed watcher

If the watch has been lost, assume the lock has been lost but attempt
to reacquire it if and when the watch is re-established.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: fix improper indentation of 'ceph_assert' statements
Jason Dillaman [Thu, 6 Sep 2018 14:08:41 +0000 (10:08 -0400)]
librbd: fix improper indentation of 'ceph_assert' statements

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: assume lock is unlocked if blacklisted or object deleted
Jason Dillaman [Thu, 30 Aug 2018 19:12:27 +0000 (15:12 -0400)]
librbd: assume lock is unlocked if blacklisted or object deleted

This will ensure that it's possible to potentially re-acquire the
lock should the blacklist expire before the image is closed.

Fixes: http://tracker.ceph.com/issues/34534
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: watcher should internally track blacklisted state
Jason Dillaman [Thu, 6 Sep 2018 13:44:59 +0000 (09:44 -0400)]
librbd: watcher should internally track blacklisted state

Since it will periodically attempt to re-acquire the watch,
it will know when the RADOS client has been blacklisted and
when the blacklist has been removed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: attempt to recover lost image watcher upon all failures
Jason Dillaman [Thu, 30 Aug 2018 20:51:10 +0000 (16:51 -0400)]
librbd: attempt to recover lost image watcher upon all failures

For example, if an image is blacklisted and the blacklist eventually
expires, the image should recover its watch.

Fixes: http://tracker.ceph.com/issues/34534
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24160 from jdurgin/wip-rados-lead
Sage Weil [Wed, 19 Sep 2018 18:45:32 +0000 (13:45 -0500)]
Merge pull request #24160 from jdurgin/wip-rados-lead

doc/dev/index: update rados lead

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23662 from dillaman/wip-24412
Mykola Golub [Wed, 19 Sep 2018 18:20:58 +0000 (21:20 +0300)]
Merge pull request #23662 from dillaman/wip-24412

librbd: support v2 cloning across namespaces

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: songweibin <song.weibin@zte.com.cn>
6 years agoMerge pull request #24059 from cbodley/wip-rgw-opstate-rm
Casey Bodley [Wed, 19 Sep 2018 18:01:04 +0000 (14:01 -0400)]
Merge pull request #24059 from cbodley/wip-rgw-opstate-rm

rgw, cls: remove cls_statelog and rgw opstate tracking

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoqa/tests: removed knfs suite 24156/head
Yuri Weinstein [Tue, 18 Sep 2018 21:55:27 +0000 (14:55 -0700)]
qa/tests: removed knfs suite

Fixes: http://tracker.ceph.com/issues/36075
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge PR #24143 into master
Sage Weil [Wed, 19 Sep 2018 15:41:04 +0000 (10:41 -0500)]
Merge PR #24143 into master

* refs/pull/24143/head:
qa/workunits/cephtool/test_kvstore_tool.sh: run test in ., not /tmp

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agomgr/dashboard: Use table actions component for roles 23779/head
Stephan Müller [Tue, 11 Sep 2018 09:01:13 +0000 (11:01 +0200)]
mgr/dashboard: Use table actions component for roles

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use table actions component for users
Stephan Müller [Mon, 10 Sep 2018 13:28:05 +0000 (15:28 +0200)]
mgr/dashboard: Use table actions component for users

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Add HTML coverage reports
Stephan Müller [Fri, 31 Aug 2018 15:19:07 +0000 (17:19 +0200)]
mgr/dashboard: Add HTML coverage reports

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Fixes ts warning in RBD snapshot tests
Stephan Müller [Tue, 11 Sep 2018 09:00:06 +0000 (11:00 +0200)]
mgr/dashboard: Fixes ts warning in RBD snapshot tests

Typescript has thrown an warning because a private method is called in the
RBD snapshot unit tests.

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use table actions component for RBD snapshots
Stephan Müller [Fri, 31 Aug 2018 12:46:42 +0000 (14:46 +0200)]
mgr/dashboard: Use table actions component for RBD snapshots

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use table actions component for OSDs
Stephan Müller [Wed, 22 Aug 2018 06:45:08 +0000 (08:45 +0200)]
mgr/dashboard: Use table actions component for OSDs

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24007 from tianshan/fix_35905
Casey Bodley [Wed, 19 Sep 2018 14:50:06 +0000 (10:50 -0400)]
Merge pull request #24007 from tianshan/fix_35905

rgw: async sync_object and remove_object does not access coroutine me…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23610 from XiangxiangMeng/fix-rgw-bucket-policy
Casey Bodley [Wed, 19 Sep 2018 14:47:42 +0000 (10:47 -0400)]
Merge pull request #23610 from XiangxiangMeng/fix-rgw-bucket-policy

rgw: policy: fix s3:x-amz-grant-read-acp keyword error

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #24128 from ricardoasmarques/wip-optional-user-password
Lenz Grimmer [Wed, 19 Sep 2018 14:44:51 +0000 (16:44 +0200)]
Merge pull request #24128 from ricardoasmarques/wip-optional-user-password

mgr/dashboard: User password should be optional

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge PR #24145 into master
Sage Weil [Wed, 19 Sep 2018 14:40:24 +0000 (09:40 -0500)]
Merge PR #24145 into master

* refs/pull/24145/head:
qa/workunits/mon/caps.sh: wait longer to time out

Reviewed-by: João Eduardo Luís <joao@suse.de>
6 years agoMerge pull request #23544 from joke-lee/wip-multiobjdelete-num-limit
Casey Bodley [Wed, 19 Sep 2018 14:37:38 +0000 (10:37 -0400)]
Merge pull request #23544 from joke-lee/wip-multiobjdelete-num-limit

rgw: delete multi object num limit

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #24001 from joke-lee/doc_life_cycle
Casey Bodley [Wed, 19 Sep 2018 14:36:58 +0000 (10:36 -0400)]
Merge pull request #24001 from joke-lee/doc_life_cycle

rgw: update cls_rgw.cc and cls_rgw_const.h

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24114 from robbat2/wip-35990
Casey Bodley [Wed, 19 Sep 2018 14:35:57 +0000 (10:35 -0400)]
Merge pull request #24114 from robbat2/wip-35990

rgw: fix chunked-encoding for chunks >1MiB

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #24110 from cbodley/wip-35986
Casey Bodley [Wed, 19 Sep 2018 14:34:35 +0000 (10:34 -0400)]
Merge pull request #24110 from cbodley/wip-35986

rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agocls: remove cls_statelog and tests 24059/head
Casey Bodley [Wed, 12 Sep 2018 13:42:40 +0000 (09:42 -0400)]
cls: remove cls_statelog and tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoosd: remove statelog from osd_class_load_list config
Casey Bodley [Wed, 12 Sep 2018 13:32:32 +0000 (09:32 -0400)]
osd: remove statelog from osd_class_load_list config

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agocommon: remove config variables related to rgw opstate
Casey Bodley [Wed, 12 Sep 2018 13:19:13 +0000 (09:19 -0400)]
common: remove config variables related to rgw opstate

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove dependencies on cls_statelog
Casey Bodley [Wed, 12 Sep 2018 13:21:28 +0000 (09:21 -0400)]
rgw: remove dependencies on cls_statelog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove RGWOpState and related classes
Casey Bodley [Wed, 12 Sep 2018 13:15:18 +0000 (09:15 -0400)]
rgw: remove RGWOpState and related classes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoradosgw-admin: remove opstate commands
Casey Bodley [Wed, 12 Sep 2018 13:15:01 +0000 (09:15 -0400)]
radosgw-admin: remove opstate commands

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agotest/rgw: remove test for /admin/opstate rest apis
Casey Bodley [Wed, 12 Sep 2018 13:30:20 +0000 (09:30 -0400)]
test/rgw: remove test for /admin/opstate rest apis

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove rest handlers for /admin/opstate
Casey Bodley [Wed, 12 Sep 2018 13:08:53 +0000 (09:08 -0400)]
rgw: remove rest handlers for /admin/opstate

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove unused opstate params from copy/fetch/stat
Casey Bodley [Wed, 12 Sep 2018 13:03:29 +0000 (09:03 -0400)]
rgw: remove unused opstate params from copy/fetch/stat

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: remove opstate tracking from fetch_remote_obj()
Casey Bodley [Wed, 12 Sep 2018 12:25:17 +0000 (08:25 -0400)]
rgw: remove opstate tracking from fetch_remote_obj()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #18578 from gaosibei/wip-cleanup-duplicate-include
Casey Bodley [Wed, 19 Sep 2018 14:27:29 +0000 (10:27 -0400)]
Merge pull request #18578 from gaosibei/wip-cleanup-duplicate-include

RGW: remove duplicate include header files in rgw_rados.cc

Reviewed-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #23927 from joke-lee/WIP-RGW-x-amz-version-id
Casey Bodley [Wed, 19 Sep 2018 14:22:49 +0000 (10:22 -0400)]
Merge pull request #23927 from joke-lee/WIP-RGW-x-amz-version-id

rgw: return x-amz-version-id: null when delete obj in versioning suspended bucket

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard: Use table actions component for RGW users
Stephan Müller [Wed, 22 Aug 2018 05:51:16 +0000 (07:51 +0200)]
mgr/dashboard: Use table actions component for RGW users

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use table actions component for RGW buckets
Stephan Müller [Tue, 21 Aug 2018 14:06:02 +0000 (16:06 +0200)]
mgr/dashboard: Use table actions component for RGW buckets

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Use table actions component for RBDs
Stephan Müller [Mon, 20 Aug 2018 12:01:08 +0000 (14:01 +0200)]
mgr/dashboard: Use table actions component for RBDs

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Add table actions component
Stephan Müller [Tue, 3 Jul 2018 14:23:39 +0000 (16:23 +0200)]
mgr/dashboard: Add table actions component

With the help of this component it is easy to create all actions for a
table with the right permission for each table action with a simple
configuration.

Per default action button and action drop down list are shown. All
actions will be filtered depending on the permissions on
initialization. Per default all actions that have the permission
'update' or 'delete' are only enabled if an item is selected which
holds no running task.

You can use change the default behavior, to show actions only in a
named drop down.
For each item you can change it's default behaviors by using custom
functions to enable/disable an action or show/hide it
as action button or drop down item.

Please look at the tests to understand how to use it in practice.

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: User password should be optional 24128/head
Ricardo Marques [Mon, 17 Sep 2018 11:03:37 +0000 (12:03 +0100)]
mgr/dashboard: User password should be optional

Fixes: https://tracker.ceph.com/issues/36031
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomsgr/async: huge refactoring of protocol V1 23415/head
Ricardo Dias [Thu, 28 Jun 2018 16:16:30 +0000 (17:16 +0100)]
msgr/async: huge refactoring of protocol V1

This huge commit extracts the protocol V1 logic from the AsyncConnection
class into its own class called ProtocolV1.
The new protocol class extends from a Protocol base class that defines
an interface to allow the implementation of different wire protocols
in the future, such as the msgr V2 protocol.

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomsgr/async: fix forward declaration of DispatchQueue
Ricardo Dias [Wed, 27 Jun 2018 10:58:36 +0000 (11:58 +0100)]
msgr/async: fix forward declaration of DispatchQueue

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge PR #23092 into master
Sage Weil [Wed, 19 Sep 2018 12:33:49 +0000 (07:33 -0500)]
Merge PR #23092 into master

* refs/pull/23092/head:
common: drop RefCountObject.cc and improve inlineability.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24109 into master
Sage Weil [Wed, 19 Sep 2018 12:33:32 +0000 (07:33 -0500)]
Merge PR #24109 into master

* refs/pull/24109/head:
doc: update docs for device management
mgr: make devicehealth always-on
mgr/devicehealth: do not create metrics pool on get-device-metrics
mgr/devicehealth: converge OPTIONS and DEFAULTS
mgr/devicehealth: squelch health warnings for unused devices
mgr/devicehealth: show-health-metrics -> get-health-metrics

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #24005 from p-na/refactor-deletion-modal-component
Ricardo Marques [Wed, 19 Sep 2018 12:33:04 +0000 (13:33 +0100)]
Merge pull request #24005 from p-na/refactor-deletion-modal-component

mgr/dashboard: Refactoring of `DeletionModalComponent`

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #24149 into master
Sage Weil [Wed, 19 Sep 2018 12:31:36 +0000 (07:31 -0500)]
Merge PR #24149 into master

* refs/pull/24149/head:
unittest_bufferlist: add unit test for sha1 from multiple raw buffers

Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
Reviewed-by: Myoungwon Oh <omwmw@sk.com>
6 years agogithubmap: update contributors
Sage Weil [Wed, 19 Sep 2018 12:31:35 +0000 (07:31 -0500)]
githubmap: update contributors

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/workunits/rbd: test clone v2 across namespaces 23662/head
Jason Dillaman [Thu, 23 Aug 2018 13:50:55 +0000 (09:50 -0400)]
qa/workunits/rbd: test clone v2 across namespaces

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: permit cross-namespace when using clone v2
Jason Dillaman [Mon, 20 Aug 2018 20:33:20 +0000 (16:33 -0400)]
librbd: permit cross-namespace when using clone v2

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: use helper method to create librados::IoCtxs
Jason Dillaman [Thu, 23 Aug 2018 18:36:45 +0000 (14:36 -0400)]
librbd: use helper method to create librados::IoCtxs

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: replace librbd::ParentSpec with cls::rbd::ParentImageSpec
Jason Dillaman [Wed, 22 Aug 2018 18:27:48 +0000 (14:27 -0400)]
librbd: replace librbd::ParentSpec with cls::rbd::ParentImageSpec

The newer struct includes support for pool namespaces.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: invoke new parent class API methods
Jason Dillaman [Tue, 21 Aug 2018 01:48:20 +0000 (21:48 -0400)]
librbd: invoke new parent class API methods

If the OSDs don't support the new methods, revert to the legacy
class API methods.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: replace existing attach parent calls with new state machine
Jason Dillaman [Tue, 4 Sep 2018 17:25:10 +0000 (13:25 -0400)]
librbd: replace existing attach parent calls with new state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new attach parent state machine
Jason Dillaman [Tue, 4 Sep 2018 16:54:46 +0000 (12:54 -0400)]
librbd: new attach parent state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: replace existing detach parent calls with new state machine
Jason Dillaman [Wed, 29 Aug 2018 17:03:59 +0000 (13:03 -0400)]
librbd: replace existing detach parent calls with new state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new detach parent state machine
Jason Dillaman [Wed, 29 Aug 2018 16:45:23 +0000 (12:45 -0400)]
librbd: new detach parent state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: refactor flatten state machine to new code style
Jason Dillaman [Wed, 22 Aug 2018 01:41:52 +0000 (21:41 -0400)]
librbd: refactor flatten state machine to new code style

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: add new namespace compatible parent image cls methods
Jason Dillaman [Mon, 20 Aug 2018 02:04:29 +0000 (22:04 -0400)]
librbd: add new namespace compatible parent image cls methods

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: break cls_rbd_snap on-disk struct backwards compatability
Jason Dillaman [Mon, 20 Aug 2018 12:20:17 +0000 (08:20 -0400)]
librbd: break cls_rbd_snap on-disk struct backwards compatability

The cls methods are now storing normalized parent overlaps within the snapshot
if the OSDs are required to be Nautilus or later. Therefore, we can safely
break the on-disk format compatibility for those newer OSDs.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: migrate legacy snapshot on-disk format to normalized parent
Jason Dillaman [Tue, 4 Sep 2018 00:00:59 +0000 (20:00 -0400)]
librbd: migrate legacy snapshot on-disk format to normalized parent

The parent reference should be written once under the "parent" key,
so all updates to a snapshot should ensure the new normalized format
is used if Nautilus or later OSDs are required.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: cls_rbd_snap on-disk struct supports parent overlap
Jason Dillaman [Fri, 31 Aug 2018 21:17:25 +0000 (17:17 -0400)]
librbd: cls_rbd_snap on-disk struct supports parent overlap

This is the first step to fix the denormalization of the parent
image spec references between the HEAD revision and the snapshot
revisions.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: cls_rbd_parent on-disk struct supports namespaces
Jason Dillaman [Mon, 20 Aug 2018 11:47:51 +0000 (07:47 -0400)]
librbd: cls_rbd_parent on-disk struct supports namespaces

If the OSDs are required to be Nautilus or later, it will automatically break
backwards compatibility of the structure to support pool namespaces.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: ChildImageSpec now optionally includes child pool namespace
Jason Dillaman [Fri, 27 Jul 2018 14:44:41 +0000 (10:44 -0400)]
librbd: ChildImageSpec now optionally includes child pool namespace

It will break version compatibility if used against older OSDs that
don't support RBD pool namespace support.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new ParentImageSpec type to support parent namespaces
Jason Dillaman [Thu, 26 Jul 2018 16:20:46 +0000 (12:20 -0400)]
librbd: new ParentImageSpec type to support parent namespaces

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: break composite cls rbd helpers into individual helpers
Jason Dillaman [Fri, 27 Jul 2018 03:11:22 +0000 (23:11 -0400)]
librbd: break composite cls rbd helpers into individual helpers

With the forthcoming need to use new methods to retrieve a clone's parent,
use per-method helpers to invoke the correct method within the image
refresh state machine.

Also used this time to merge newer cls rbd methods that should be supported
by all non-EOLed OSDs.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: corrected namespace indentation within cls_client
Jason Dillaman [Wed, 15 Aug 2018 15:07:09 +0000 (11:07 -0400)]
librbd: corrected namespace indentation within cls_client

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agotest/librbd: not valid to have different parents between image snapshots
Jason Dillaman [Tue, 4 Sep 2018 12:31:07 +0000 (08:31 -0400)]
test/librbd: not valid to have different parents between image snapshots

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoobjclass: expose the required OSD release setting
Jason Dillaman [Fri, 31 Aug 2018 18:17:51 +0000 (14:17 -0400)]
objclass: expose the required OSD release setting

This can be utilized to determine when it's safe to enable new
cls features.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agodoc: Fix Spelling Error In File dynamicresharding.rst 24175/head
xiaomanh [Wed, 19 Sep 2018 10:37:24 +0000 (18:37 +0800)]
doc: Fix Spelling Error In File dynamicresharding.rst

Signed-off-by: xiaomanh <huangxiaoman@cmss.chinamobile.com>
6 years agoMerge pull request #24076 from ifed01/wip-ifed-fix-repairer
Kefu Chai [Wed, 19 Sep 2018 10:03:21 +0000 (18:03 +0800)]
Merge pull request #24076 from ifed01/wip-ifed-fix-repairer

os/bluestore: fix bloom filter num entry miscalculation in repairer

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24085 from liewegas/wip-32731
Kefu Chai [Wed, 19 Sep 2018 10:02:13 +0000 (18:02 +0800)]
Merge pull request #24085 from liewegas/wip-32731

osd/osd_types: fix pg_t::contains() to check pool id too

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23721 from batrick/log-entry-stack
Kefu Chai [Wed, 19 Sep 2018 10:01:06 +0000 (18:01 +0800)]
Merge pull request #23721 from batrick/log-entry-stack

log: avoid heap allocations for most log entries

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24111 from gregsfortytwo/wip-35987-connection-buffers
Kefu Chai [Wed, 19 Sep 2018 09:56:58 +0000 (17:56 +0800)]
Merge pull request #24111 from gregsfortytwo/wip-35987-connection-buffers

msg/async: clean up local buffers on dispatch

Reviewed-by: Haomai Wang <haomai@xsky.com>
6 years agoMerge pull request #24124 from tchaikov/wip-35969
Kefu Chai [Wed, 19 Sep 2018 09:55:51 +0000 (17:55 +0800)]
Merge pull request #24124 from tchaikov/wip-35969

rpm: use updated gperftools

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agodoc/dev/index: update rados lead 24160/head
Josh Durgin [Tue, 18 Sep 2018 23:07:08 +0000 (16:07 -0700)]
doc/dev/index: update rados lead

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23754 from p-na/down-osd-raises-error 24174/head
Laura Paduano [Wed, 19 Sep 2018 06:56:33 +0000 (08:56 +0200)]
Merge pull request #23754 from p-na/down-osd-raises-error

mgr/dashboard: Fix OSD down error display

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>