]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoosd/OSDMap: add osd status to utilization dumper 23921/head
Paul Emmerich [Tue, 4 Sep 2018 21:37:07 +0000 (21:37 +0000)]
osd/OSDMap: add osd status to utilization dumper

It's mildly irritating that 'osd df' doesn't contain the
information whether an OSD is up/down/destroyed.

Fixes: http://tracker.ceph.com/issues/35544
Signed-off-by: Paul Emmerich <paul.emmerich@croit.io>
6 years agoMerge pull request #23827 from trociny/wip-mock-valgrind
Jason Dillaman [Tue, 4 Sep 2018 19:04:56 +0000 (15:04 -0400)]
Merge pull request #23827 from trociny/wip-mock-valgrind

 test/librbd: fix valgrind warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23898 from tchaikov/wip-crimson-net-cleanup
Kefu Chai [Tue, 4 Sep 2018 17:43:29 +0000 (01:43 +0800)]
Merge pull request #23898 from tchaikov/wip-crimson-net-cleanup

crimson/net: s/repeat/keep_doing/

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agocrimson/net: s/repeat/keep_doing/ 23898/head
Kefu Chai [Mon, 3 Sep 2018 16:14:23 +0000 (00:14 +0800)]
crimson/net: s/repeat/keep_doing/

repeat ~= while() {}
keep_doing ~= for (;;) {}

so it's simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23842 from votdev/issue_34315
Lenz Grimmer [Tue, 4 Sep 2018 14:52:58 +0000 (16:52 +0200)]
Merge pull request #23842 from votdev/issue_34315

mgr/dashboard: Display RGW user/bucket quota max size in human readable form

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #23905 from idryomov/wip-cram-suite-repo
Ilya Dryomov [Tue, 4 Sep 2018 12:27:28 +0000 (14:27 +0200)]
Merge pull request #23905 from idryomov/wip-cram-suite-repo

qa/tasks/cram: use suite_repo repository for all cram jobs

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #23491 from p-na/per-osd-settings
Lenz Grimmer [Tue, 4 Sep 2018 10:01:19 +0000 (12:01 +0200)]
Merge pull request #23491 from p-na/per-osd-settings

mgr/dashboard: Add support for managing individual OSD settings in the backend

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23735 from votdev/suggest_snapshot_name
Lenz Grimmer [Tue, 4 Sep 2018 09:18:44 +0000 (11:18 +0200)]
Merge pull request #23735 from votdev/suggest_snapshot_name

mgr/dashboard: Auto-create a name for RBD image snapshots

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 pull request #23627 from Devp00l/wip-hints-for-jest-failures
Lenz Grimmer [Tue, 4 Sep 2018 08:51:06 +0000 (10:51 +0200)]
Merge pull request #23627 from Devp00l/wip-hints-for-jest-failures

mgr/dashboard: Add hints to resolve unit test failures

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23903 from libingyang-zte/master
Xie Xingguo [Tue, 4 Sep 2018 07:42:08 +0000 (15:42 +0800)]
Merge pull request #23903 from libingyang-zte/master

doc: Fix Spelling Error of Rados Operations

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: Fix Spelling Error of Rados Operations 23903/head
李丙洋 10208981 [Tue, 4 Sep 2018 06:01:46 +0000 (14:01 +0800)]
doc: Fix Spelling Error of Rados Operations

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoMerge pull request #23900 from libingyang-zte/master
Xie Xingguo [Tue, 4 Sep 2018 02:24:49 +0000 (10:24 +0800)]
Merge pull request #23900 from libingyang-zte/master

doc: Fix Spelling Error of Rados Operations

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23899 from luomuyao/cleanup
Xie Xingguo [Tue, 4 Sep 2018 02:24:14 +0000 (10:24 +0800)]
Merge pull request #23899 from luomuyao/cleanup

rgw: drop unused tmp in main()

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: Fix Spelling Error of Rados Operations 23900/head
李丙洋 10208981 [Tue, 4 Sep 2018 01:17:18 +0000 (09:17 +0800)]
doc: Fix Spelling Error of Rados Operations

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agorgw: drop unused tmp in main() 23899/head
luomuyao [Tue, 4 Sep 2018 01:09:44 +0000 (09:09 +0800)]
rgw: drop unused tmp in main()

Signed-off-by: luomuyao <luo.muyao@zte.com.cn>
6 years agoqa/tasks/cram: use suite_repo repository for all cram jobs 23905/head
Ilya Dryomov [Mon, 3 Sep 2018 15:40:08 +0000 (17:40 +0200)]
qa/tasks/cram: use suite_repo repository for all cram jobs

Currently git.ceph.com is hardcoded for all cram jobs.  Testing
modifications is a pain: one needs to push to either ceph/ceph.git or
ceph/ceph-ci.git (depending on where the ceph branch is at, triggering
unnecessary builds in the latter case) and wait for the mirror to sync.
Runs scheduled against branches in developer's forks fail.

Move away from git.ceph.com to allow mixing branches and repositories,
similar to workunits.

Fixes: https://tracker.ceph.com/issues/27211
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge pull request #23798 from liewegas/wip-pod-hostname
Kefu Chai [Mon, 3 Sep 2018 16:16:10 +0000 (00:16 +0800)]
Merge pull request #23798 from liewegas/wip-pod-hostname

common/util: pass real hostname when running in kubernetes/rook container

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23322 from ricardoasmarques/wip-role-management-api
Lenz Grimmer [Mon, 3 Sep 2018 13:43:02 +0000 (15:43 +0200)]
Merge pull request #23322 from ricardoasmarques/wip-role-management-api

mgr/dashboard: Add REST API for role management

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Add REST API for role management 23322/head
Ricardo Marques [Mon, 30 Jul 2018 13:26:00 +0000 (14:26 +0100)]
mgr/dashboard: Add REST API for role management

Fixes: https://tracker.ceph.com/issues/25138
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add support for managing individual OSD settings (backend) 23491/head
Patrick Nawracay [Thu, 2 Aug 2018 14:51:36 +0000 (16:51 +0200)]
mgr/dashboard: Add support for managing individual OSD settings (backend)

Add options to mark OSDs in/out/down/reweight/lost/remove/destroy/create

Fixes: http://tracker.ceph.com/issues/24270
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoAuto-create a name for RBD image snapshots. 23735/head
Volker Theile [Fri, 24 Aug 2018 14:54:34 +0000 (16:54 +0200)]
Auto-create a name for RBD image snapshots.

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23891 from libingyang-zte/master
Xie Xingguo [Mon, 3 Sep 2018 08:14:14 +0000 (16:14 +0800)]
Merge pull request #23891 from libingyang-zte/master

doc: Fix Spelling Error of Rados Operations

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomgr/dashboard: Display RGW user/bucket quota max size in human readable form 23842/head
Volker Theile [Fri, 31 Aug 2018 16:49:45 +0000 (18:49 +0200)]
mgr/dashboard: Display RGW user/bucket quota max size in human readable form

Fixes: https://tracker.ceph.com/issues/34315
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agodoc: Fix Spelling Error of Rados Operations 23891/head
李丙洋 10208981 [Mon, 3 Sep 2018 01:51:05 +0000 (09:51 +0800)]
doc: Fix Spelling Error of Rados Operations

Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoMerge pull request #23879 from dwahler/master
Alfredo Deza [Sun, 2 Sep 2018 16:38:45 +0000 (09:38 -0700)]
Merge pull request #23879 from dwahler/master

doc: add note about LVM volumes to ceph-deploy quick start

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agodoc: add note about LVM volumes to ceph-deploy quick start 23879/head
David Wahler [Sun, 2 Sep 2018 15:27:15 +0000 (10:27 -0500)]
doc: add note about LVM volumes to ceph-deploy quick start

This commit also fixes some incorrect indentation that was causing
previous steps in the same section to be incorrectly numbered.

Signed-off-by: David Wahler <dwahler@gmail.com>
6 years agounittest_config: $host expands to ceph_get_short_hostname(), not hostname -s 23798/head
Sage Weil [Sat, 1 Sep 2018 20:56:05 +0000 (15:56 -0500)]
unittest_config: $host expands to ceph_get_short_hostname(), not hostname -s

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23540 into master
Sage Weil [Sat, 1 Sep 2018 20:53:31 +0000 (15:53 -0500)]
Merge PR #23540 into master

* refs/pull/23540/head:
include/ceph_fs: rename old auid field
PendingReleaseNotes: note about auid support removal
radosgw-admin: remove -a --auth-uid arg
rgw: remove auid member from RGWUserInfo
auth: remove auid member from EntityAuth
osd: remove auid session member
mon: remove auid session member
doc/dev/cephx_protocol: drop auid reference
auth: remove auid args from handle_request and verify_authorizer
mon/OSDMonitor: remove 'osd pool {get,set} <name> auid ...'
mon/OSDMonitor: remove auid arg for 'osd lspools' and deprecate
osd/OSDCap: remove auid from grammar
osd/OSDCap: remove auid from is_capable() etc args
auth: clean up cap parse error messages
mon/AuthMonitor: raise health warning on invalid caps
mon/AuthMonitor: drop ancient auth inc encoding compat
messages/MPoolOp: drop auid member
osdc/Objecter: drop change_pool_auid
pybind/rados: drop auid arg to pool_create
pybind/rados: drop change_auid
rados: drop mkpool, rmpool commands
rados: remove 'chown' command
librados: deprecate calls that take auid
librados: mark all auid calls deprecated
mon/OSDMonitor: drop variable pool auid for prepare_new_pool
mon/OSDMonitor: remove pool auid change support
osdc/Objecter: do not pass auid to create_pool
ceph-authtool: remove auid options
qa/workunits/cephtool: remove auid tests

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
6 years agoMerge PR #23739 into master
Sage Weil [Sat, 1 Sep 2018 20:53:26 +0000 (15:53 -0500)]
Merge PR #23739 into master

* refs/pull/23739/head:
mgr/telemetry: add crashdump info to report

Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23766 into master
Sage Weil [Sat, 1 Sep 2018 20:53:21 +0000 (15:53 -0500)]
Merge PR #23766 into master

* refs/pull/23766/head:
BlueStore: Fix concurrency conflicts

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23841 from idryomov/wip-krbd-namespaces
Ilya Dryomov [Sat, 1 Sep 2018 09:39:40 +0000 (11:39 +0200)]
Merge pull request #23841 from idryomov/wip-krbd-namespaces

krbd: support for images within namespaces

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23663 from xiexingguo/wip-incompat-async-fixes
Xie Xingguo [Sat, 1 Sep 2018 06:27:27 +0000 (14:27 +0800)]
Merge pull request #23663 from xiexingguo/wip-incompat-async-fixes

osd: some recovery improvements and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23837 from rjfd/wip-update-dmclock
Kefu Chai [Sat, 1 Sep 2018 06:01:14 +0000 (14:01 +0800)]
Merge pull request #23837 from rjfd/wip-update-dmclock

dmclock: update dmclock submodule sha1 to tip of ceph/dmclock.git master

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoinclude/ceph_fs: rename old auid field 23540/head
Sage Weil [Thu, 16 Aug 2018 15:28:27 +0000 (10:28 -0500)]
include/ceph_fs: rename old auid field

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoPendingReleaseNotes: note about auid support removal
Sage Weil [Sun, 12 Aug 2018 20:34:20 +0000 (15:34 -0500)]
PendingReleaseNotes: note about auid support removal

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoradosgw-admin: remove -a --auth-uid arg
Sage Weil [Sun, 12 Aug 2018 20:28:36 +0000 (15:28 -0500)]
radosgw-admin: remove -a --auth-uid arg

It was already a no-op.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorgw: remove auid member from RGWUserInfo
Sage Weil [Sun, 12 Aug 2018 20:26:41 +0000 (15:26 -0500)]
rgw: remove auid member from RGWUserInfo

Unused.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoauth: remove auid member from EntityAuth
Sage Weil [Sun, 12 Aug 2018 20:10:39 +0000 (15:10 -0500)]
auth: remove auid member from EntityAuth

Note that for the keyring we still accept (but ignore) auid lines so that
we can parse old keyrings that have them.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd: remove auid session member
Sage Weil [Sun, 12 Aug 2018 20:04:00 +0000 (15:04 -0500)]
osd: remove auid session member

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon: remove auid session member
Sage Weil [Sun, 12 Aug 2018 20:03:23 +0000 (15:03 -0500)]
mon: remove auid session member

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc/dev/cephx_protocol: drop auid reference
Sage Weil [Sun, 12 Aug 2018 20:02:38 +0000 (15:02 -0500)]
doc/dev/cephx_protocol: drop auid reference

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoauth: remove auid args from handle_request and verify_authorizer
Sage Weil [Sun, 12 Aug 2018 20:00:44 +0000 (15:00 -0500)]
auth: remove auid args from handle_request and verify_authorizer

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: remove 'osd pool {get,set} <name> auid ...'
Sage Weil [Sun, 12 Aug 2018 18:36:08 +0000 (13:36 -0500)]
mon/OSDMonitor: remove 'osd pool {get,set} <name> auid ...'

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: remove auid arg for 'osd lspools' and deprecate
Sage Weil [Sun, 12 Aug 2018 18:34:50 +0000 (13:34 -0500)]
mon/OSDMonitor: remove auid arg for 'osd lspools' and deprecate

Use 'osd pool ls' instead.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDCap: remove auid from grammar
Sage Weil [Sun, 12 Aug 2018 18:29:00 +0000 (13:29 -0500)]
osd/OSDCap: remove auid from grammar

This is an incompatible change: old caps that include auid will no longer
parse.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/OSDCap: remove auid from is_capable() etc args
Sage Weil [Sun, 12 Aug 2018 17:39:33 +0000 (12:39 -0500)]
osd/OSDCap: remove auid from is_capable() etc args

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoauth: clean up cap parse error messages
Sage Weil [Sun, 12 Aug 2018 18:20:13 +0000 (13:20 -0500)]
auth: clean up cap parse error messages

Consistent formatted.  Drop newline.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/AuthMonitor: raise health warning on invalid caps
Sage Weil [Sun, 12 Aug 2018 18:18:09 +0000 (13:18 -0500)]
mon/AuthMonitor: raise health warning on invalid caps

Raise a health warning if we have invalid (unparsable) caps in the auth
database.  Include a simple test.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23840 from idryomov/wip-krbd-untar-build-packages
Jason Dillaman [Fri, 31 Aug 2018 17:53:39 +0000 (13:53 -0400)]
Merge pull request #23840 from idryomov/wip-krbd-untar-build-packages

qa: rbd_workunit_kernel_untar_build: install build dependencies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22983 from trociny/wip-journal-limit-inflight-appends
Jason Dillaman [Fri, 31 Aug 2018 17:32:34 +0000 (13:32 -0400)]
Merge pull request #22983 from trociny/wip-journal-limit-inflight-appends

librbd: optionally limit journal in-flight appends

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23770 from Songweibin/wip-rbd-namespace
Jason Dillaman [Fri, 31 Aug 2018 17:32:15 +0000 (13:32 -0400)]
Merge pull request #23770 from Songweibin/wip-rbd-namespace

rbd: correct parameter of namespace and verify it before set_namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agokrbd: support for images within namespaces 23841/head
Ilya Dryomov [Thu, 16 Aug 2018 16:53:36 +0000 (18:53 +0200)]
krbd: support for images within namespaces

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agokrbd: create udev_enumerate in enumerate_devices()
Ilya Dryomov [Thu, 16 Aug 2018 16:49:33 +0000 (18:49 +0200)]
krbd: create udev_enumerate in enumerate_devices()

Make it easier to run more than one scan in a row.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agokrbd: introduce krbd_spec
Ilya Dryomov [Wed, 15 Aug 2018 14:00:12 +0000 (16:00 +0200)]
krbd: introduce krbd_spec

Don't substitute "@-" for HEAD when printing the spec.  Instead, omit
the snapshot part.  The same would be done for the namespace part.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agokrbd: change krbd_unmap_by_spec() to take "" instead of NULL
Ilya Dryomov [Wed, 15 Aug 2018 13:53:09 +0000 (15:53 +0200)]
krbd: change krbd_unmap_by_spec() to take "" instead of NULL

krbd_map() and krbd_is_mapped() take "", krbd_unmap_by_spec() is the
odd one out.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agokrbd: remove unused include
Ilya Dryomov [Wed, 15 Aug 2018 13:42:45 +0000 (15:42 +0200)]
krbd: remove unused include

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agomon/AuthMonitor: drop ancient auth inc encoding compat
Sage Weil [Sun, 12 Aug 2018 17:43:26 +0000 (12:43 -0500)]
mon/AuthMonitor: drop ancient auth inc encoding compat

This is for *ancient* mons (I'm guessing bobtail?).

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomessages/MPoolOp: drop auid member
Sage Weil [Sat, 11 Aug 2018 18:56:51 +0000 (13:56 -0500)]
messages/MPoolOp: drop auid member

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosdc/Objecter: drop change_pool_auid
Sage Weil [Sat, 11 Aug 2018 18:55:30 +0000 (13:55 -0500)]
osdc/Objecter: drop change_pool_auid

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agopybind/rados: drop auid arg to pool_create
Sage Weil [Sat, 11 Aug 2018 19:00:58 +0000 (14:00 -0500)]
pybind/rados: drop auid arg to pool_create

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agopybind/rados: drop change_auid
Sage Weil [Sat, 11 Aug 2018 19:00:31 +0000 (14:00 -0500)]
pybind/rados: drop change_auid

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorados: drop mkpool, rmpool commands
Sage Weil [Sat, 11 Aug 2018 19:14:05 +0000 (14:14 -0500)]
rados: drop mkpool, rmpool commands

- mkpool and rmpool users should use the normal cli/mon commands

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorados: remove 'chown' command
Sage Weil [Sat, 11 Aug 2018 18:34:08 +0000 (13:34 -0500)]
rados: remove 'chown' command

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agolibrados: deprecate calls that take auid
Sage Weil [Sat, 11 Aug 2018 18:55:03 +0000 (13:55 -0500)]
librados: deprecate calls that take auid

Return EOPNOTSUPP for auid-specific calls, or EINVAL for ones that get a non-default
auid value.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agolibrados: mark all auid calls deprecated
Sage Weil [Sat, 11 Aug 2018 17:26:22 +0000 (12:26 -0500)]
librados: mark all auid calls deprecated

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: drop variable pool auid for prepare_new_pool
Sage Weil [Sat, 11 Aug 2018 19:22:03 +0000 (14:22 -0500)]
mon/OSDMonitor: drop variable pool auid for prepare_new_pool

Always set to 0 for now.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: remove pool auid change support
Sage Weil [Sat, 11 Aug 2018 19:31:07 +0000 (14:31 -0500)]
mon/OSDMonitor: remove pool auid change support

EOPNOTSUPP

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosdc/Objecter: do not pass auid to create_pool
Sage Weil [Sat, 11 Aug 2018 16:52:25 +0000 (11:52 -0500)]
osdc/Objecter: do not pass auid to create_pool

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-authtool: remove auid options
Sage Weil [Sat, 11 Aug 2018 16:21:30 +0000 (11:21 -0500)]
ceph-authtool: remove auid options

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/workunits/cephtool: remove auid tests
Sage Weil [Fri, 10 Aug 2018 21:58:37 +0000 (16:58 -0500)]
qa/workunits/cephtool: remove auid tests

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa: rbd_workunit_kernel_untar_build: install build dependencies 23840/head
Ilya Dryomov [Fri, 31 Aug 2018 11:30:30 +0000 (13:30 +0200)]
qa: rbd_workunit_kernel_untar_build: install build dependencies

Commit f0fe0936e64d ("qa: use recent kernel to kernel build testing")
bumped the kernel to 4.17.

Fixes: http://tracker.ceph.com/issues/35074
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge pull request #23838 from wjwithagen/wjw-fix-ConfUtil
Kefu Chai [Fri, 31 Aug 2018 12:17:33 +0000 (20:17 +0800)]
Merge pull request #23838 from wjwithagen/wjw-fix-ConfUtil

common: Reverse deleted include

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocommon: Reverse deleted include 23838/head
Willem Jan Withagen [Fri, 31 Aug 2018 10:21:45 +0000 (12:21 +0200)]
common: Reverse deleted include

Reversing 1 delete from
https://github.com/ceph/ceph/commit/09d3f546b32cdf126a1246899a0b0a3eb25282d8

Clang trips over this:
home/jenkins/workspace/ceph-master/src/common/ConfUtils.cc:94:19: error: implicit instantiation of undefined template 'std::__1::basic_ostringstream<char, std::
__1::char_traits<char>, std::__1::allocator<char> >'
    ostringstream oss;
                  ^
/usr/include/c++/v1/iosfwd:123:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
                               ^

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agodmclock: update dmclock submodule sha1 to tip of ceph/dmclock.git master 23837/head
Ricardo Dias [Fri, 31 Aug 2018 10:16:46 +0000 (11:16 +0100)]
dmclock: update dmclock submodule sha1 to tip of ceph/dmclock.git master

This update will fix the build of Ceph when -DWITH_TESTS=OFF is used.

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #23802 from votdev/unique_validator
Lenz Grimmer [Fri, 31 Aug 2018 09:13:00 +0000 (11:13 +0200)]
Merge pull request #23802 from votdev/unique_validator

mgr/dashboard: Add unique validator

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add hints to resolve unit test failures 23627/head
Stephan Müller [Fri, 17 Aug 2018 10:35:55 +0000 (12:35 +0200)]
mgr/dashboard: Add hints to resolve unit test failures

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23629 from wangxiaoguang/fix_deep_scrub
Kefu Chai [Fri, 31 Aug 2018 08:54:07 +0000 (16:54 +0800)]
Merge pull request #23629 from wangxiaoguang/fix_deep_scrub

os/bluestore: fix deep-scrub operation againest disk silent errors

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #23555 from tspmelo/wip-task-refactor
Lenz Grimmer [Fri, 31 Aug 2018 08:49:46 +0000 (10:49 +0200)]
Merge pull request #23555 from tspmelo/wip-task-refactor

mgr/dashboard: Extract/Refactor Task merge

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoosd/PG: force auth_log_shard to be primary when appropriate 23663/head
xie xingguo [Tue, 21 Aug 2018 08:37:41 +0000 (16:37 +0800)]
osd/PG: force auth_log_shard to be primary when appropriate

So if there are a lot fo missing objects on primary, we can
make use of auth_log_shard to restore client I/O quickly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoos/bluestore: fix deep-scrub operation againest disk silent errors 23629/head
Xiaoguang Wang [Thu, 30 Aug 2018 02:26:41 +0000 (10:26 +0800)]
os/bluestore: fix deep-scrub operation againest disk silent errors

Say a object who has data caches, but in a while later, caches' underlying
physical device has silent disk erros accidentally, then caches and physical
data are not same. In such case, deep-scrub operation still tries to read
caches firstly and won't do crc checksum, then deep-scrub won't find such
data corruptions timely.

Here introduce a new flag 'CEPH_OSD_OP_FLAG_BYPASS_CLEAN_CACHE' which tells
deep-scrub to bypass object caches. Note that we only bypass cache who is in
STATE_CLEAN state. For STATE_WRITING caches, currently they are not written
to physical device, so deep-scrub operation can not read physical device and
can read these dirty caches safely. Once they are in STATE_CLEAN state(or not
added to bluestore cache), next round deep-scurb can check them correctly.

As to above discussions, I refactor BlueStore::BufferSpace::read sightly,
adding a new 'flags' argument, whose value will be 0 or:
     enum {
       BYPASS_CLEAN_CACHE = 0x1,     // bypass clean cache
     };

flags 0: normal read, do not bypass clean or dirty cache
flags BYPASS_CLEAN_CACHE: bypass clean cache, currently only for deep-scrube
                        operation

Test:
   I deliberately corrupt a object with cache, with this patch, deep-scrub
   can find data error very timely.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@easystack.cn>
6 years agoosd/PG: make num_objects_missing can trace missing objects correctly
xie xingguo [Mon, 20 Aug 2018 06:58:16 +0000 (14:58 +0800)]
osd/PG: make num_objects_missing can trace missing objects correctly

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/osd_types: kill overlaps_with() of pg_info_t
xie xingguo [Fri, 17 Aug 2018 08:46:46 +0000 (16:46 +0800)]
osd/osd_types: kill overlaps_with() of pg_info_t

Which has no consumers.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/PG: clear calc_replicated_acting a bit
xie xingguo [Thu, 16 Aug 2018 07:14:18 +0000 (15:14 +0800)]
osd/PG: clear calc_replicated_acting a bit

- kill usable, use want->size instead
- introduce a (separate) lambda function for sorting

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/PG: move comments to the proper place
xie xingguo [Thu, 16 Aug 2018 05:49:12 +0000 (13:49 +0800)]
osd/PG: move comments to the proper place

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/PG: find_best_info - add completeness as the preferred option
xie xingguo [Tue, 14 Aug 2018 06:24:55 +0000 (14:24 +0800)]
osd/PG: find_best_info - add completeness as the preferred option

Async recovery peers usually have a relative complete
log history but may exist a lot of missing objects. Choosing them
as auth_log_shard and further as primary if current up_primary is
unrecoverable, say, could have a bigger chance to block client I/Os.

Among peers with identical new log history, we now consider those
who are now complete (having no missing objects) as the preferred
ones when determining auth_log_shard.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agotest/librbd: fix ioctx reference leak in DetachChildRequest mock tests 23827/head
Mykola Golub [Thu, 30 Aug 2018 16:10:58 +0000 (19:10 +0300)]
test/librbd: fix ioctx reference leak in DetachChildRequest mock tests

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agotest/librbd: fix "uninitialised value" valgrind warnings
Mykola Golub [Thu, 30 Aug 2018 16:09:32 +0000 (19:09 +0300)]
test/librbd: fix "uninitialised value" valgrind warnings

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23546 from xiexingguo/wip-complete-to
Kefu Chai [Thu, 30 Aug 2018 15:23:48 +0000 (23:23 +0800)]
Merge pull request #23546 from xiexingguo/wip-complete-to

osd/PGLog: trim - avoid dereferencing invalid iter

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #23800 from rjfd/wip-fix-crash-mgr-module
Kefu Chai [Thu, 30 Aug 2018 15:08:36 +0000 (23:08 +0800)]
Merge pull request #23800 from rjfd/wip-fix-crash-mgr-module

mgr/crash: fix python3 invalid syntax problems

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23803 from tchaikov/wip-ceph_assert
Kefu Chai [Thu, 30 Aug 2018 15:03:29 +0000 (23:03 +0800)]
Merge pull request #23803 from tchaikov/wip-ceph_assert

include/buffer.h: do not use ceph_assert() unless __CEPH__ is defined

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #23820 from LenzGr/nautilus-404-page
Lenz Grimmer [Thu, 30 Aug 2018 14:22:12 +0000 (16:22 +0200)]
Merge pull request #23820 from LenzGr/nautilus-404-page

mgr/dashboard: Updated image on 404 page

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Extract/Refactor Task merge 23555/head
Tiago Melo [Mon, 13 Aug 2018 15:36:32 +0000 (16:36 +0100)]
mgr/dashboard: Extract/Refactor Task merge

Signed-off-by: Stephan Müller <smueller@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #23785 from alfredodeza/wip-rm34309
Andrew Schoen [Thu, 30 Aug 2018 14:14:36 +0000 (09:14 -0500)]
Merge pull request #23785 from alfredodeza/wip-rm34309

ceph-volume:  update batch documentation to explain filestore strategies

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agolibrbd: option to limit in-flight appends 22983/head
Mykola Golub [Thu, 26 Jul 2018 12:24:33 +0000 (15:24 +0300)]
librbd: option to limit in-flight appends

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agojournal: limit in-flight appends
Mykola Golub [Mon, 9 Jul 2018 12:32:13 +0000 (15:32 +0300)]
journal: limit in-flight appends

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #23509 into master
Sage Weil [Thu, 30 Aug 2018 13:52:49 +0000 (08:52 -0500)]
Merge PR #23509 into master

* refs/pull/23509/head:
OSD: add recovery bytes counter to osd logger

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #23572 into master
Sage Weil [Thu, 30 Aug 2018 13:52:44 +0000 (08:52 -0500)]
Merge PR #23572 into master

* refs/pull/23572/head:
qa/standalone/osd/osd-force-create-pg: add force-create-pg test
mon/MonCommands: fix 'osd force-create-pg'

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23611 into master
Sage Weil [Thu, 30 Aug 2018 13:52:39 +0000 (08:52 -0500)]
Merge PR #23611 into master

* refs/pull/23611/head:
mgr/devicehealth: fix exceptions
doc/mgr/devicehealth: update docs
mgr/devicehealth: leave health monitoring off by default
mgr/devicehealth: add 'device monitoring {on,off}' commands
mgr/devicehealth: 10m wakeup interval is sufficient
mgr/devicehealth: scrape at scrape_interval intervals
mgr/devicehealth: UTC everywhere
mgr/devicehealth: fix sleep_interval configurable

6 years agoMerge PR #23633 into master
Sage Weil [Thu, 30 Aug 2018 13:52:32 +0000 (08:52 -0500)]
Merge PR #23633 into master

* refs/pull/23633/head:
osd/PrimaryLogPG.cc: limit trimming at can_rollback_to

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomon/MonClient: set hostname in MMonSubscribe message
Sage Weil [Wed, 29 Aug 2018 13:21:51 +0000 (08:21 -0500)]
mon/MonClient: set hostname in MMonSubscribe message

Signed-off-by: Sage Weil <sage@redhat.com>