]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoMerge pull request #27976 from mykaul/patch-2
Kefu Chai [Thu, 9 May 2019 13:20:17 +0000 (21:20 +0800)]
Merge pull request #27976 from mykaul/patch-2

doc: Update link to Red Hat documentation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26654 from sebastian-philipp/orchestrator-progress
Sebastian Wagner [Thu, 9 May 2019 08:41:53 +0000 (10:41 +0200)]
Merge pull request #26654 from sebastian-philipp/orchestrator-progress

mgr/orchestrator: add progress events to all orchestrators

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
6 years agodoc: Update link to Red Hat documentation 27976/head
Yaniv Kaul [Mon, 6 May 2019 13:26:30 +0000 (16:26 +0300)]
doc: Update link to Red Hat documentation

The previous link was to version 2, which is a bit older. Fix to version 3.

Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
6 years agoMerge pull request #27855 from tchaikov/wip-ceph-release
Kefu Chai [Thu, 9 May 2019 07:16:31 +0000 (15:16 +0800)]
Merge pull request #27855 from tchaikov/wip-ceph-release

src/: define ceph_release_t and use it

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27689 from Jeegn-Chen/wip-39390-fix
Kefu Chai [Thu, 9 May 2019 07:13:02 +0000 (15:13 +0800)]
Merge pull request #27689 from Jeegn-Chen/wip-39390-fix

os/filestore: assure sufficient leaves in pre-split

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #27925 from tchaikov/wip-38628
Kefu Chai [Thu, 9 May 2019 07:11:15 +0000 (15:11 +0800)]
Merge pull request #27925 from tchaikov/wip-38628

mgr/restful: do not use filter() for list

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
6 years agoMerge pull request #27962 from xiexingguo/wip-jira-3756
Kefu Chai [Thu, 9 May 2019 07:07:48 +0000 (15:07 +0800)]
Merge pull request #27962 from xiexingguo/wip-jira-3756

mgr/DaemonServer: safe-to-destroy - do not consider irrelevant pgs

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28036 from neha-ojha/wip-fix-ar-doc
Josh Durgin [Thu, 9 May 2019 05:27:37 +0000 (22:27 -0700)]
Merge pull request #28036 from neha-ojha/wip-fix-ar-doc

doc/dev/osd_internals/async_recovery: update cost calculation

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #28034 from letterwuyu/forward_incompat_pg_missing
Josh Durgin [Thu, 9 May 2019 05:07:37 +0000 (22:07 -0700)]
Merge pull request #28034 from letterwuyu/forward_incompat_pg_missing

ceph-object-corpus: forward_incompat pg_missing_item and pg_missing_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoceph-object-corpus: forward_incompat pg_missing_item and pg_missing_t 28034/head
lishuhao [Thu, 9 May 2019 02:04:11 +0000 (10:04 +0800)]
ceph-object-corpus: forward_incompat pg_missing_item and pg_missing_t

Signed-off-by: lishuhao <lishuhao@unitedstack.com>
6 years agodoc/dev/osd_internals/async_recovery: update cost calculation 28036/head
Neha Ojha [Thu, 9 May 2019 03:19:32 +0000 (20:19 -0700)]
doc/dev/osd_internals/async_recovery: update cost calculation

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #27688 into master
Patrick Donnelly [Wed, 8 May 2019 22:57:00 +0000 (15:57 -0700)]
Merge PR #27688 into master

* refs/pull/27688/head:
pybind: added lseek()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27482 into master
Patrick Donnelly [Wed, 8 May 2019 21:51:22 +0000 (14:51 -0700)]
Merge PR #27482 into master

* refs/pull/27482/head:
client: fix fuse client hang because its bad session PipeConnection

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27761 into master
Patrick Donnelly [Wed, 8 May 2019 21:48:03 +0000 (14:48 -0700)]
Merge PR #27761 into master

* refs/pull/27761/head:
qa: use skipTest method instead of exception

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge PR #27480 into master
Patrick Donnelly [Wed, 8 May 2019 21:40:42 +0000 (14:40 -0700)]
Merge PR #27480 into master

* refs/pull/27480/head:
mds: check dir fragment to split dir if mkdir makes it oversized.

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #27765 from linuxbox2/wip-rgw-crytpexcept
Casey Bodley [Wed, 8 May 2019 19:54:07 +0000 (15:54 -0400)]
Merge pull request #27765 from linuxbox2/wip-rgw-crytpexcept

rgw: crypto: throw DigestException from Digest and HMAC

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #27843 into master
Sage Weil [Wed, 8 May 2019 17:09:47 +0000 (12:09 -0500)]
Merge PR #27843 into master

* refs/pull/27843/head:
os/bluestore: fix missing discard in BlueStore::_kv_sync_thread

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge PR #27716 into master
Patrick Donnelly [Wed, 8 May 2019 16:04:34 +0000 (09:04 -0700)]
Merge PR #27716 into master

* refs/pull/27716/head:
cephfs-shell: fix string decoding for ls command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28013 from cbodley/wip-39611
Casey Bodley [Wed, 8 May 2019 15:39:20 +0000 (11:39 -0400)]
Merge pull request #28013 from cbodley/wip-39611

rgw: use explicit to_string() overload for boost::string_ref

Reviewed-by: Nathan Cutler <nculter@suse.com>
6 years agomgr/dashboard: fix help message for minimum blob size in pool form (#28017)
Lenz Grimmer [Wed, 8 May 2019 13:43:39 +0000 (15:43 +0200)]
mgr/dashboard: fix help message for minimum blob size in pool form (#28017)

mgr/dashboard: fix help message for minimum blob size in pool form

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #27813 from ricardoasmarques/do-not-log-iscsi-get-requests
Lenz Grimmer [Wed, 8 May 2019 11:45:08 +0000 (13:45 +0200)]
Merge pull request #27813 from ricardoasmarques/do-not-log-iscsi-get-requests

mgr/dashboard: iSCSI GET requests should not be logged

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #27946 from ricardoasmarques/iscsi-form-ipv6
Lenz Grimmer [Wed, 8 May 2019 11:32:39 +0000 (13:32 +0200)]
Merge pull request #27946 from ricardoasmarques/iscsi-form-ipv6

mgr/dashboard: Fix iSCSI form when using IPv6

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
6 years agomgr/dashboard: iSCSI GET requests should not be logged 27813/head
Ricardo Marques [Fri, 26 Apr 2019 10:13:20 +0000 (11:13 +0100)]
mgr/dashboard: iSCSI GET requests should not be logged

Fixes: https://tracker.ceph.com/issues/39492
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/orchestrator: add progress events to all orchestrators 26654/head
Sebastian Wagner [Tue, 26 Feb 2019 16:27:53 +0000 (17:27 +0100)]
mgr/orchestrator: add progress events to all orchestrators

Now, progress events are part of `WriteCompletion` istead of part of the orchestrator module.

It does not yet provide a way to just show orchestrator events.

Also fixes issue in the SSH orchestrator

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #27873 from rzarzynski/wip-crimson-writes
Kefu Chai [Wed, 8 May 2019 07:59:26 +0000 (15:59 +0800)]
Merge pull request #27873 from rzarzynski/wip-crimson-writes

crimson: add support for basic write path

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/thread: include reactor.hh to avoid linking error. 27873/head
Radoslaw Zarzynski [Tue, 7 May 2019 14:03:37 +0000 (16:03 +0200)]
crimson/thread: include reactor.hh to avoid linking error.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: add support for basic write path, part 2.
Radoslaw Zarzynski [Mon, 29 Apr 2019 18:59:57 +0000 (20:59 +0200)]
crimson: add support for basic write path, part 2.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: make ObjectState mutable. Evict mutated state on error.
Radoslaw Zarzynski [Mon, 29 Apr 2019 18:57:24 +0000 (20:57 +0200)]
crimson: make ObjectState mutable. Evict mutated state on error.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson/os: implement bits needed for basic write path.
Radoslaw Zarzynski [Mon, 29 Apr 2019 18:49:23 +0000 (20:49 +0200)]
crimson/os: implement bits needed for basic write path.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27413 from liu-chunmei/ceph_seastar_io_read
Kefu Chai [Wed, 8 May 2019 04:19:15 +0000 (12:19 +0800)]
Merge pull request #27413 from liu-chunmei/ceph_seastar_io_read

crimson/osd: support write pid_file when osd start

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: fix help message for minimum blob size in pool form 28017/head
Kiefer Chang [Wed, 8 May 2019 04:15:43 +0000 (12:15 +0800)]
mgr/dashboard: fix help message for minimum blob size in pool form

A value less than maximum blob size is required.

Fixes: http://tracker.ceph.com/issues/39624
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
6 years agoMerge pull request #27665 from badone/wip-improve-dump_pgstate_history-json
Brad Hubbard [Wed, 8 May 2019 01:59:37 +0000 (11:59 +1000)]
Merge pull request #27665 from badone/wip-improve-dump_pgstate_history-json

osd: Improve dump_pgstate_history json output

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28015 from tchaikov/wip-install-deps.sh
Kefu Chai [Wed, 8 May 2019 01:41:20 +0000 (09:41 +0800)]
Merge pull request #28015 from tchaikov/wip-install-deps.sh

install-deps.sh: install libboost-test for seastar

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoos/bluestore: fix missing discard in BlueStore::_kv_sync_thread 27843/head
Tang Junhui [Mon, 29 Apr 2019 08:31:55 +0000 (16:31 +0800)]
os/bluestore: fix missing discard in BlueStore::_kv_sync_thread

Discard comand should be issued before space released.

Signed-off-by: Junhui Tang <tangjunhui@sangfor.com.cn>
Fixes: https://tracker.ceph.com/issues/39621
6 years agoinstall-deps.sh: install libboost-test for seastar 28015/head
Kefu Chai [Wed, 8 May 2019 00:21:48 +0000 (08:21 +0800)]
install-deps.sh: install libboost-test for seastar

see
https://github.com/scylladb/seastar/blob/5858fe30c16a1a059200c129d20180ceb0199d99/cmake/SeastarDependencies.cmake#L58-L68

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: support write pid_file when osd start 27413/head
chunmei Liu [Tue, 7 May 2019 20:56:35 +0000 (13:56 -0700)]
crimson/osd: support write pid_file when osd start

Signed-off-by: chunmei Liu <chunmei.liu@intel.com>
6 years agoMerge pull request #27979 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Tue, 7 May 2019 19:43:11 +0000 (12:43 -0700)]
Merge pull request #27979 from yuriw/wip-yuriw-crontab-master

qa/test: reduce over all number of runs

6 years agoMerge pull request #27941 from dzafman/wip-39011
Josh Durgin [Tue, 7 May 2019 19:34:18 +0000 (12:34 -0700)]
Merge pull request #27941 from dzafman/wip-39011

doc: Describe recovery and backfill prioritizations

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agorgw: use explicit to_string() overload for boost::string_ref 28013/head
Casey Bodley [Tue, 7 May 2019 18:08:25 +0000 (14:08 -0400)]
rgw: use explicit to_string() overload for boost::string_ref

Fixes: http://tracker.ceph.com/issues/39611
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27981 from dillaman/wip-39598
Mykola Golub [Tue, 7 May 2019 17:58:01 +0000 (20:58 +0300)]
Merge pull request #27981 from dillaman/wip-39598

qa/workunits/rbd: wait for rbd-nbd unmap to complete

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #27911 into master
Sage Weil [Tue, 7 May 2019 17:48:33 +0000 (12:48 -0500)]
Merge PR #27911 into master

* refs/pull/27911/head:
os/bluestore: dump onode meta before "no spanning blob" assertion.
os/bluestore: move _dump_xxx methods out of BlueStore class

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #27929 into master
Sage Weil [Tue, 7 May 2019 17:48:16 +0000 (12:48 -0500)]
Merge PR #27929 into master

* refs/pull/27929/head:
os/bluestore: be verbose about objects that existing on rmcoll
osd/PrimaryLogPG: disallow ops on objects with an empty name
osd/PG: fix cleanup of pgmeta-like objects on PG deletion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #26488 from mogeb/per-pool-scrub-status
Joao Eduardo Luis [Tue, 7 May 2019 16:50:52 +0000 (17:50 +0100)]
Merge pull request #26488 from mogeb/per-pool-scrub-status

mon: show no[deep-]scrub flags per pool in the status

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
6 years agoqa/test: reduce over all number of runs 27979/head
Yuri Weinstein [Mon, 6 May 2019 15:55:27 +0000 (08:55 -0700)]
qa/test: reduce over all number of runs

We kill thousands of queued jobs every week, so why do we even schedule them ?
Another point was that we run numerous of tests as part of PRs testing on released versions anyway, so it's duplicating effort

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agomgr/dashboard: All RBD features are supported by 'tcmu:runner' (#28000)
Lenz Grimmer [Tue, 7 May 2019 16:04:37 +0000 (18:04 +0200)]
mgr/dashboard: All RBD features are supported by 'tcmu:runner' (#28000)

mgr/dashboard: All RBD features are supported by 'tcmu:runner'

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27830 from dzafman/wip-38124
David Zafman [Tue, 7 May 2019 15:47:26 +0000 (08:47 -0700)]
Merge pull request #27830 from dzafman/wip-38124

osd: Don't include user changeable flag in snaptrim related assert

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27841 from richael02/multiNVMESSD
Kefu Chai [Tue, 7 May 2019 15:44:04 +0000 (23:44 +0800)]
Merge pull request #27841 from richael02/multiNVMESSD

vstart.sh: enable creating multiple OSDs backed by spdk backend

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28008 from tchaikov/wip-seastar
Kefu Chai [Tue, 7 May 2019 15:34:31 +0000 (23:34 +0800)]
Merge pull request #28008 from tchaikov/wip-seastar

seastar: pick up changes for better performance

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocmake: do not build unit test of seastar 28008/head
Kefu Chai [Tue, 7 May 2019 15:05:20 +0000 (23:05 +0800)]
cmake: do not build unit test of seastar

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: pick up changes for better performance
Kefu Chai [Tue, 7 May 2019 12:57:17 +0000 (20:57 +0800)]
seastar: pick up changes for better performance

to be specific, a78fb44c96e2912c6f39b2151f94a0bb2b5796a6 helps to
improve the performance of future implementation -- with this change
future can always reference its local state without checking its `_promise`
and dereferencing it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard/qa: Fix a few linting issues in dashboard backend tests (#27865)
Lenz Grimmer [Tue, 7 May 2019 13:01:04 +0000 (15:01 +0200)]
mgr/dashboard/qa: Fix a few linting issues in dashboard backend tests (#27865)

mgr/dashboard/qa: Fix a few linting issues in dashboard backend tests

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #27947 from smithfarm/wip-39579
Nathan Cutler [Tue, 7 May 2019 12:02:28 +0000 (14:02 +0200)]
Merge pull request #27947 from smithfarm/wip-39579

pybind/tox: pass additional command line arguments through to tox

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: All RBD features are supported by 'tcmu:runner' 28000/head
Ricardo Marques [Tue, 7 May 2019 11:28:19 +0000 (12:28 +0100)]
mgr/dashboard: All RBD features are supported by 'tcmu:runner'

Fixes: https://tracker.ceph.com/issues/39607
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27969 from yuvalif/wip-yuval-add-tenant-to-user
Yuval Lifshitz [Tue, 7 May 2019 11:05:46 +0000 (14:05 +0300)]
Merge pull request #27969 from yuvalif/wip-yuval-add-tenant-to-user

rgw: add tenant as parameter to User in multisite tests

6 years agoMerge pull request #27987 from tchaikov/wip-crimson-osd-shutdown
Kefu Chai [Tue, 7 May 2019 10:42:44 +0000 (18:42 +0800)]
Merge pull request #27987 from tchaikov/wip-crimson-osd-shutdown

crimson/osd: shutdown services in the right order

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: object state can be manually evicted from OSD's cache.
Radoslaw Zarzynski [Mon, 29 Apr 2019 13:19:43 +0000 (15:19 +0200)]
crimson: object state can be manually evicted from OSD's cache.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: retrieve object state once per MOSDOp.
Radoslaw Zarzynski [Mon, 29 Apr 2019 12:48:27 +0000 (14:48 +0200)]
crimson: retrieve object state once per MOSDOp.

Justification behind the change is behaviour of classical OSD.
It calls PrimaryLogPG::find_object_context() far before going
through OSDOps in ::do_osd_ops().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: add support for basic write path, part 1.
Radoslaw Zarzynski [Fri, 26 Apr 2019 16:43:05 +0000 (18:43 +0200)]
crimson: add support for basic write path, part 1.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson/os: add inclusion guard in Transaction.h
Radoslaw Zarzynski [Fri, 26 Apr 2019 15:15:07 +0000 (17:15 +0200)]
crimson/os: add inclusion guard in Transaction.h

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: PG caches ObjectState instead of object_info_t.
Radoslaw Zarzynski [Fri, 26 Apr 2019 14:07:11 +0000 (16:07 +0200)]
crimson: PG caches ObjectState instead of object_info_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: PG::do_osd_op() takes OSDOp by reference, not pointer.
Radoslaw Zarzynski [Fri, 26 Apr 2019 13:33:05 +0000 (15:33 +0200)]
crimson: PG::do_osd_op() takes OSDOp by reference, not pointer.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: PG::do_osd_op throws about unsupported op.
Radoslaw Zarzynski [Thu, 25 Apr 2019 18:24:21 +0000 (20:24 +0200)]
crimson: PG::do_osd_op throws about unsupported op.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocrimson: handle hot CaynStore exceptions without throwing.
Radoslaw Zarzynski [Thu, 25 Apr 2019 14:39:56 +0000 (16:39 +0200)]
crimson: handle hot CaynStore exceptions without throwing.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27931 from yuvalif/pubsub_info_update_fix
Yuval Lifshitz [Tue, 7 May 2019 09:18:53 +0000 (12:18 +0300)]
Merge pull request #27931 from yuvalif/pubsub_info_update_fix

rgw/pubsub: fix doc on updates. fix multi-notifications

6 years agorgw: add tenant as parameter to User in multisite tests 27969/head
Yuval Lifshitz [Sun, 5 May 2019 17:54:31 +0000 (20:54 +0300)]
rgw: add tenant as parameter to User in multisite tests

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agomgr/dashboard: Fix iSCSI form when using IPv6 27946/head
Ricardo Marques [Fri, 3 May 2019 10:23:12 +0000 (11:23 +0100)]
mgr/dashboard: Fix iSCSI form when using IPv6

Fixes: https://tracker.ceph.com/issues/39578
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agocrimson/osd: shutdown services in the right order 27987/head
Kefu Chai [Tue, 7 May 2019 07:06:42 +0000 (15:06 +0800)]
crimson/osd: shutdown services in the right order

we should stop config service *after* osd is stopped, as osd depends on
a working and alive config subsystem when stopping itself. for instance,
the destructor of AuthRegistry unregisters itself from the ObserverMgr,
which is in turn a member variable of ConfigProxy, so if ConfigProxy is
destroyed before we destroy mon::Client, we will have a segfault with
following backtrace

ObserverMgr<ceph::md_config_obs_impl<ceph::common::ConfigProxy>
>::remove_observer(ceph::md_config_obs_impl<ceph::common::ConfigProxy>*)
at /var/ssd/ceph/build/../src/common/config_obs_mgr.h:78
AuthRegistry::~AuthRegistry() at
/var/ssd/ceph/build/../src/crimson/common/config_proxy.h:101
 (inlined by) AuthRegistry::~AuthRegistry() at
/var/ssd/ceph/build/../src/auth/AuthRegistry.cc:28
ceph::mon::Client::~Client() at
/var/ssd/ceph/build/../src/crimson/mon/MonClient.h:44
ceph::mon::Client::~Client() at
/var/ssd/ceph/build/../src/crimson/mon/MonClient.h:44
OSD::~OSD() at /usr/include/c++/9/bits/unique_ptr.h:81

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoosd: Improve dump_pgstate_history json output 27665/head
Brad Hubbard [Wed, 17 Apr 2019 05:31:30 +0000 (15:31 +1000)]
osd: Improve dump_pgstate_history json output

Fixes: http://tracker.ceph.com/issues/38846
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #27975 from tchaikov/wip-pidfile_write
Kefu Chai [Tue, 7 May 2019 03:19:13 +0000 (11:19 +0800)]
Merge pull request #27975 from tchaikov/wip-pidfile_write

global/pidfile: pass string_view instead of ConfigProxy to pidfile_wr…

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #27932 into master
Sage Weil [Tue, 7 May 2019 02:40:11 +0000 (21:40 -0500)]
Merge PR #27932 into master

* refs/pull/27932/head:
osd: clean up osdmap sharing
osd: minor cleanup in dequeue_op

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agovstart.sh: enable creating multiple OSDs backed by spdk backend 27841/head
Richael Zhuang [Mon, 29 Apr 2019 06:48:44 +0000 (14:48 +0800)]
vstart.sh: enable creating multiple OSDs backed by spdk backend

Currently vstart.sh only support deploying one OSD based on NVMe SSD.
The following two cases will cause errors:
1.There are 2 more NVMe SSDs from the same vendor on the machine
2.Trying to deploy 2 more OSDs if we only get 1 pci_id available

Add the support for allowing deploying multiple OSDs on a machine with
multiple NVME SSDs.

Change-Id: I6016435c1438bb4d16aff31f4575e03ccd3c9b3d

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
6 years agoMerge pull request #26152 from noonedeadpunk/mgr/zabbix_discovery
Gregory Farnum [Mon, 6 May 2019 20:15:54 +0000 (13:15 -0700)]
Merge pull request #26152 from noonedeadpunk/mgr/zabbix_discovery

mgr/zabbix Added pools discovery and per-pool statistics

Reviewed-by: Wido den Hollander <wido@42on.com>
6 years agorgw/pubsub: revert the RGWSysObjectCtx change 27931/head
Yuval Lifshitz [Mon, 6 May 2019 20:08:48 +0000 (23:08 +0300)]
rgw/pubsub: revert the RGWSysObjectCtx change

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agoqa/workunits/rbd: wait for rbd-nbd unmap to complete 27981/head
Jason Dillaman [Mon, 6 May 2019 19:16:03 +0000 (15:16 -0400)]
qa/workunits/rbd: wait for rbd-nbd unmap to complete

The "unmap" request is asynchronous, so wait for a short amount
of time for the "rbd-nbd" daemon process to exit.

Fixes: http://tracker.ceph.com/issues/39598
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoApply suggestions from code review 26152/head
Sebastian Wagner [Mon, 6 May 2019 17:19:01 +0000 (20:19 +0300)]
Apply suggestions from code review

Signed-off-by: Dmitriy Rabotjagov <noonedeadpunk@ya.ru>
6 years agoMerge pull request #27967 from liewegas/wip-fix-rgw-bias
Casey Bodley [Mon, 6 May 2019 17:05:54 +0000 (13:05 -0400)]
Merge pull request #27967 from liewegas/wip-fix-rgw-bias

rgw/rgw_tools: fix 'osd pool set' json syntax

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard: Allow the decrease of pg's of an existing pool (#27785)
Lenz Grimmer [Mon, 6 May 2019 15:38:34 +0000 (17:38 +0200)]
mgr/dashboard: Allow the decrease of pg's of an existing pool (#27785)

mgr/dashboard: Allow the decrease of pg's of an existing pool

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #27977 from cbodley/wip-39597
Casey Bodley [Mon, 6 May 2019 14:50:07 +0000 (10:50 -0400)]
Merge pull request #27977 from cbodley/wip-39597

doc/rgw: document CreateBucketConfiguration for s3 PUT Bucket api

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #27968 from iotcg/master
Kefu Chai [Mon, 6 May 2019 13:39:16 +0000 (21:39 +0800)]
Merge pull request #27968 from iotcg/master

vstart.sh: correct ceph-run path

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/rgw: document CreateBucketConfiguration for s3 PUT Bucket api 27977/head
Casey Bodley [Mon, 6 May 2019 13:33:05 +0000 (09:33 -0400)]
doc/rgw: document CreateBucketConfiguration for s3 PUT Bucket api

Fixes: http://tracker.ceph.com/issues/39597
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoglobal/pidfile: pass string_view instead of ConfigProxy to pidfile_write() 27975/head
Kefu Chai [Mon, 6 May 2019 13:04:25 +0000 (21:04 +0800)]
global/pidfile: pass string_view instead of ConfigProxy to pidfile_write()

there is no need to pass ConfigProxy to this function. and passing a
string_view also make it easier to reuse this function.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27970 from Liuchang0812/duplicate-tags-bl
Casey Bodley [Mon, 6 May 2019 12:43:46 +0000 (08:43 -0400)]
Merge pull request #27970 from Liuchang0812/duplicate-tags-bl

rgw: eliminates duplicated tags_bl var

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agopybind/tox: pass additional command line arguments through to tox 27947/head
Nathan Cutler [Fri, 3 May 2019 10:58:59 +0000 (12:58 +0200)]
pybind/tox: pass additional command line arguments through to tox

Fixes: 9426f1f2045d0ae0f319530c3dc3a9240d838d07
Fixes: https://tracker.ceph.com/issues/39579
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agodoc: fix small typo in dashboard documentation (#27850)
Lenz Grimmer [Mon, 6 May 2019 08:22:39 +0000 (10:22 +0200)]
doc: fix small typo in dashboard documentation (#27850)

doc: fix small typo in dashboard documentation

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
6 years agovstart.sh: correct ceph-run path 27968/head
Changcheng Liu [Mon, 6 May 2019 02:29:11 +0000 (10:29 +0800)]
vstart.sh: correct ceph-run path

ceph-run is in the same directory as vstart.sh. It's often that
vstart.sh is run under build directory. Without giving the right
directory, ceph-run file can't be found.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
6 years agorgw: eliminates duplicated tags_bl var 27970/head
Chang Liu [Mon, 6 May 2019 07:05:50 +0000 (15:05 +0800)]
rgw: eliminates duplicated tags_bl var

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
6 years agoMerge pull request #27538 from iotcg/radosgw
Kefu Chai [Mon, 6 May 2019 05:29:46 +0000 (13:29 +0800)]
Merge pull request #27538 from iotcg/radosgw

init-radosgw: use ceph-conf to get cluster configuration value

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoos/bluestore: be verbose about objects that existing on rmcoll 27929/head
Sage Weil [Thu, 2 May 2019 16:39:31 +0000 (11:39 -0500)]
os/bluestore: be verbose about objects that existing on rmcoll

This is always a bug (OSD doesn't try to remove a collection unless it
thinks it is empty), and not seeing it at default debug levels makes it
hard to track down.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/PrimaryLogPG: disallow ops on objects with an empty name
Sage Weil [Thu, 2 May 2019 16:30:09 +0000 (11:30 -0500)]
osd/PrimaryLogPG: disallow ops on objects with an empty name

These may conflict with pgmeta objects.  And are going to cause other
problems later (e.g., https://tracker.ceph.com/issues/38724).

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoosd/PG: fix cleanup of pgmeta-like objects on PG deletion
Sage Weil [Thu, 2 May 2019 16:28:14 +0000 (11:28 -0500)]
osd/PG: fix cleanup of pgmeta-like objects on PG deletion

If an object has an empty 'name' field, it "looks" like a pgmeta object,
and the PG cleanup code was skipping it.  However, we were letting these
objects get created.

Fix by only skipping *our* pgmeta object.  If there are other pgmeta-like
objects in the PG collection, clean them up.

Fixes: https://tracker.ceph.com/issues/38724
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorgw/rgw_tools: fix 'osd pool set' json syntax 27967/head
Sage Weil [Mon, 6 May 2019 01:29:17 +0000 (20:29 -0500)]
rgw/rgw_tools: fix 'osd pool set' json syntax

Fixes af30e3a512dd1e5c51639d1f823b99ed9b43fb50

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agorgw/pubsub: cleanup tests for multiple notifications
Yuval Lifshitz [Sun, 5 May 2019 08:31:20 +0000 (11:31 +0300)]
rgw/pubsub: cleanup tests for multiple notifications

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agorgw: RGWUserPubSub::write invalidates its obj_ctx
Casey Bodley [Thu, 2 May 2019 23:05:35 +0000 (19:05 -0400)]
rgw: RGWUserPubSub::write invalidates its obj_ctx

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/DaemonServer: safe-to-destroy - do not consider irrelevant pgs 27962/head
xie xingguo [Sun, 5 May 2019 05:17:32 +0000 (13:17 +0800)]
mgr/DaemonServer: safe-to-destroy - do not consider irrelevant pgs

otherwise ceph osd safe-to-destroy would say NO even if we want to
destroy an down+out osd from an actually active+clean pool!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomds: handle min_compat_client type change 27855/head
Kefu Chai [Mon, 29 Apr 2019 10:20:46 +0000 (18:20 +0800)]
mds: handle min_compat_client type change

in previous change, MDSMap::min_compat_client was changed from int8_t to
ceph_release_t, i.e. uint8_t, and in
Server::update_required_client_features(), we check the
MDSMap::min_compat_client to see if it is greater than given version, so
a negative "-1" would overflow and be interpreted as a 255, hence will
be always greater than whatever version is compared. so we need to
bump up the encoding version, and

* normalize the number if it is -1
* ignore the number which is way too large.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agosrc/: define ceph_release_t and use it
Kefu Chai [Mon, 29 Apr 2019 09:04:26 +0000 (17:04 +0800)]
src/: define ceph_release_t and use it

we have following pains when it comes to ceph release related
programming:

* we use int, uint8_t, uint32_t, unsigned int for representing the ceph
  release, i.e., jewel, luminous, nautilus, in different places in our
  source tree.
* we always need to add a comment aside of `uint8_t release` to help
  the folks to understand that it is CEPH_RELEASE_*.
* also we keep forgetting that "os << release" actually prints the
  release as an ASCII.
* and it's painful to remember that we have to translate the release
  number using `ceph_release_name()` before print it out in the human
  readable format.
* we replicate the n+2 upgrade policy in multiple places

in this change, `ceph_release_t` and some helper functions are
intruduced to alleviate the pains above.

* add a scoped enum for representing ceph releases, so the release
  is typed . which means that we can attach different function to
  it. and in future, we can even replace `ceph_release_t` with
  a class if we need to support more fancy features which cannot be
  implemented using free functions.
* add `ostream<<()` operator for `ceph_release_t`, so we can simply
  send it to `ostream`
* add `can_upgrade_from()` so we don't need to repeat ourselves.
* move ceph_release_from_name() to ceph_release.{h,cc}, as currently,
  ceph_release.cc uses `ceph_release_name()` for implementing
  `ostream<<()`, and after this change, `ceph_release_from_name()`
  will return `ceph_release_t`, so if we keep `ceph_release_from_name()`
  where it was, these two headers will be included by each other,
  which is a no-go.
* reimplement `ceph_release_from_name()` using a loop. before this
  change, `ceph_release_from_name()` was implemented using a manually
  unrolled if-else structure, which is more performant, but the
  downside is that, it replicates mapping between release number
  and its name. so after this change, a loop is used instead.
  as this function is not used in the critical path, so this change
  should not have visible impact on the performance.
* always use ceph_release_t::unknown as the default value of the
  "release" member variables. before this change, sometimes, we use
  "0" and sometimes we use "1", after inspecting the code, i found that
  "0" is good enough to cover all the use cases. and since "0" is a
  magic number in this context, it is replaced using
  `ceph_release_t::unknown`. to facilidate the checking against
  `ceph_release_t::unknown`, `operator!()` is added.
* ceph::to_string() and ceph::to_integer<>() are added to help
  to remove the asssumption of the underlying type of `ceph_release_t`,
  ideally, users of `ceph_release_t` should not use `static_cast<>` to
  cast it into integer types, instead, they should use
  `ceph::to_integer<>()` to do this job. if, in future, we want to
  use a `class` to represent `ceph_release_t`, we can get this done
  with minimum change, if `ceph::to_string()` and `ceph::to_string()`
  are used. we can not specialize them in `std` naming space. as
  it's claimed that it's undefined behavior to do so. see
  https://en.cppreference.com/w/cpp/language/extending_std .

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/admin_socket: use ceph_release_to_str() for release name
Kefu Chai [Mon, 29 Apr 2019 09:42:06 +0000 (17:42 +0800)]
common/admin_socket: use ceph_release_to_str() for release name

it's more symmetric this way. as we are using `ceph_version_to_str()`
one line before.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon: add ceph_string.h
Kefu Chai [Mon, 29 Apr 2019 09:00:32 +0000 (17:00 +0800)]
common: add ceph_string.h

declare ceph_string functions in a single place, so their
implementation and consume can reference a single copy of declaration.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27885 from b-ranto/wip-restful-perf-counters
Kefu Chai [Sat, 4 May 2019 05:28:13 +0000 (13:28 +0800)]
Merge pull request #27885 from b-ranto/wip-restful-perf-counters

restful: Expose perf counters

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27891 from tchaikov/wip-mgr-pgp-num-change-throttling
Kefu Chai [Sat, 4 May 2019 05:26:39 +0000 (13:26 +0800)]
Merge pull request #27891 from tchaikov/wip-mgr-pgp-num-change-throttling

mgr/DaemonServer: refactor pgp_num changes throttling

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