]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocls/rgw_gc: Fixing the iterator used to access urgent data map 34969/head
Pritha Srivastava [Fri, 8 May 2020 18:51:46 +0000 (00:21 +0530)]
cls/rgw_gc: Fixing the iterator used to access urgent data map
in xattr in cls_rgw_gc. The incorrect iterator caused a crash
in osd.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
5 years agoMerge pull request #34950 from sebastian-philipp/cephadm-upgrade.py
Sebastian Wagner [Fri, 8 May 2020 16:59:49 +0000 (18:59 +0200)]
Merge pull request #34950 from sebastian-philipp/cephadm-upgrade.py

mgr/cephadm: move upgrade code to upgrade.py

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34922 from SUSE/wip-fix-45393
Sebastian Wagner [Fri, 8 May 2020 16:59:26 +0000 (18:59 +0200)]
Merge pull request #34922 from SUSE/wip-fix-45393

mgr/cephadm: refresh osd config when mons change

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34903 from sebastian-philipp/cephadm-adopt-qa-grafana
Sebastian Wagner [Fri, 8 May 2020 16:58:50 +0000 (18:58 +0200)]
Merge pull request #34903 from sebastian-philipp/cephadm-adopt-qa-grafana

qa/workunits/cephadm: test grafana adoption

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34949 from tspmelo/wip-i18n-fix
Lenz Grimmer [Fri, 8 May 2020 14:48:35 +0000 (16:48 +0200)]
Merge pull request #34949 from tspmelo/wip-i18n-fix

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #34923 from ofriedma/wip-ofriedma-fcgi
Casey Bodley [Fri, 8 May 2020 13:26:07 +0000 (09:26 -0400)]
Merge pull request #34923 from ofriedma/wip-ofriedma-fcgi

rgw: unable to compile fcgi frontend

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agoMerge pull request #34709 from votdev/issue_45204_max_buckets
Lenz Grimmer [Fri, 8 May 2020 12:52:10 +0000 (14:52 +0200)]
Merge pull request #34709 from votdev/issue_45204_max_buckets

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34854 from BenoitKnecht/fix-alert-description
Lenz Grimmer [Fri, 8 May 2020 12:46:54 +0000 (14:46 +0200)]
Merge pull request #34854 from BenoitKnecht/fix-alert-description

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
5 years agoMerge pull request #34843 from mgfritch/cephadm-cli-servicespec
Sebastian Wagner [Fri, 8 May 2020 09:12:27 +0000 (11:12 +0200)]
Merge pull request #34843 from mgfritch/cephadm-cli-servicespec

mgr/orch: Clean-up ServiceSpec handling during add/remove (mds, rgw, iscsi, nfs)

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34909 from sebastian-philipp/cephadm-doc-ceph.conf
Sebastian Wagner [Fri, 8 May 2020 07:56:42 +0000 (09:56 +0200)]
Merge pull request #34909 from sebastian-philipp/cephadm-doc-ceph.conf

doc/cephadm: add section about setting config settings

Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34891 from sebastian-philipp/cephadm-cephadmservice
Sebastian Wagner [Fri, 8 May 2020 07:45:08 +0000 (09:45 +0200)]
Merge pull request #34891 from sebastian-philipp/cephadm-cephadmservice

mgr/cephadm: Add CephadmService class

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34853 from yison/rwl-image-writeback-cache-seq9
Jason Dillaman [Thu, 7 May 2020 15:46:33 +0000 (11:46 -0400)]
Merge pull request #34853 from yison/rwl-image-writeback-cache-seq9

rbd/cache: Replicated Write Log core codes - compare_and_write

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34952 from cbodley/wip-44958
Casey Bodley [Thu, 7 May 2020 15:45:30 +0000 (11:45 -0400)]
Merge pull request #34952 from cbodley/wip-44958

doc/rgw: document 'rgw gc max concurrent io'

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agoMerge pull request #34929 from tspmelo/wip-e2e-script
Laura Paduano [Thu, 7 May 2020 14:49:49 +0000 (16:49 +0200)]
Merge pull request #34929 from tspmelo/wip-e2e-script

mgr/dashboard: Improve run-frontend-e2e-tests.sh

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agodoc/rgw: document 'rgw gc max concurrent io' 34952/head
Casey Bodley [Thu, 7 May 2020 14:41:22 +0000 (10:41 -0400)]
doc/rgw: document 'rgw gc max concurrent io'

Fixes: https://tracker.ceph.com/issues/44958
Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agomgr/cephadm: move upgrade code to upgrade.py 34950/head
Sebastian Wagner [Thu, 7 May 2020 12:40:08 +0000 (14:40 +0200)]
mgr/cephadm: move upgrade code to upgrade.py

Make it easier for everyone to read the upgrade algorithm.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/dashboard: Fix I18N errors 34949/head
Tiago Melo [Thu, 7 May 2020 11:44:47 +0000 (11:44 +0000)]
mgr/dashboard: Fix I18N errors

We were just checking if the translation sources were correct and ignore if the
extraction simply failed.

Fixes: https://tracker.ceph.com/issues/45428
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34820 from sebastian-philipp/akamac-cephadm-fix-typo-in-postinst
Kefu Chai [Thu, 7 May 2020 11:31:35 +0000 (19:31 +0800)]
Merge pull request #34820 from sebastian-philipp/akamac-cephadm-fix-typo-in-postinst

debian: fix typo in cephadm user gecos

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/cephadm: Add IscsiService 34891/head
Sebastian Wagner [Mon, 4 May 2020 12:40:19 +0000 (14:40 +0200)]
mgr/cephadm: Add IscsiService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add CrashService
Sebastian Wagner [Mon, 4 May 2020 12:36:03 +0000 (14:36 +0200)]
mgr/cephadm: Add CrashService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add NodeExporterService
Sebastian Wagner [Mon, 4 May 2020 12:33:21 +0000 (14:33 +0200)]
mgr/cephadm: Add NodeExporterService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add PrometheusService
Sebastian Wagner [Mon, 4 May 2020 12:30:57 +0000 (14:30 +0200)]
mgr/cephadm: Add PrometheusService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add AlertmanagerService
Sebastian Wagner [Mon, 4 May 2020 12:26:31 +0000 (14:26 +0200)]
mgr/cephadm: Add AlertmanagerService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add GrafanaService
Sebastian Wagner [Mon, 4 May 2020 12:21:21 +0000 (14:21 +0200)]
mgr/cephadm: Add GrafanaService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add RbdMirrorService
Sebastian Wagner [Mon, 4 May 2020 12:11:24 +0000 (14:11 +0200)]
mgr/cephadm: Add RbdMirrorService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add RgwService
Sebastian Wagner [Mon, 4 May 2020 12:07:41 +0000 (14:07 +0200)]
mgr/cephadm: Add RgwService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add MdsService
Sebastian Wagner [Mon, 4 May 2020 12:01:13 +0000 (14:01 +0200)]
mgr/cephadm: Add MdsService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add MgrService
Sebastian Wagner [Mon, 4 May 2020 11:55:07 +0000 (13:55 +0200)]
mgr/cephadm: Add MgrService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add MonService
Sebastian Wagner [Mon, 4 May 2020 11:51:15 +0000 (13:51 +0200)]
mgr/cephadm: Add MonService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add NFSService
Sebastian Wagner [Mon, 4 May 2020 11:38:46 +0000 (13:38 +0200)]
mgr/cephadm: Add NFSService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: move OSD related code to OSDService
Sebastian Wagner [Mon, 4 May 2020 11:12:38 +0000 (13:12 +0200)]
mgr/cephadm: move OSD related code to OSDService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: move nfs and osd to services/
Sebastian Wagner [Mon, 4 May 2020 10:47:38 +0000 (12:47 +0200)]
mgr/cephadm: move nfs and osd to services/

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/dashboard: Improve run-frontend-e2e-tests.sh 34929/head
Tiago Melo [Wed, 6 May 2020 14:55:42 +0000 (14:55 +0000)]
mgr/dashboard: Improve run-frontend-e2e-tests.sh

Allow to configure Cypress using env vars.

Fixes: https://tracker.ceph.com/issues/45408
Add Signed-off-by: Tiago Melo <tmelo@suse.com>

5 years agoMerge pull request #34855 from s0nea/wip-dashboard-troubleshooting
Lenz Grimmer [Thu, 7 May 2020 10:27:31 +0000 (12:27 +0200)]
Merge pull request #34855 from s0nea/wip-dashboard-troubleshooting

Reviewed-by: Enno Gotthold <egotthold@suse.de>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agodebian: fix typo in cephadm user gecos 34820/head
Alexey Miasoedov [Tue, 14 Apr 2020 19:24:27 +0000 (22:24 +0300)]
debian: fix typo in cephadm user gecos

Signed-off-by: Alexey Miasoedov <alexey.miasoedov@gmail.com>
5 years agoMerge pull request #34591 from votdev/issue_45109
Lenz Grimmer [Thu, 7 May 2020 09:59:22 +0000 (11:59 +0200)]
Merge pull request #34591 from votdev/issue_45109

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agolibrbd: add aio_compare_and_write test cases 34853/head
Yuan Lu [Wed, 29 Apr 2020 09:18:52 +0000 (17:18 +0800)]
librbd: add aio_compare_and_write test cases

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add aio_compare_and_write
Yuan Lu [Thu, 30 Apr 2020 06:11:20 +0000 (14:11 +0800)]
librbd: add aio_compare_and_write

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add CompAndWriteRequest
Yuan Lu [Thu, 30 Apr 2020 06:10:19 +0000 (14:10 +0800)]
librbd: add CompAndWriteRequest

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agoMerge pull request #34921 from tchaikov/wip-seastar
Kefu Chai [Thu, 7 May 2020 01:30:30 +0000 (09:30 +0800)]
Merge pull request #34921 from tchaikov/wip-seastar

crimson: pick up a recent seastar version and cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #34851 from yison/rwl-image-writeback-cache-seq8
Jason Dillaman [Wed, 6 May 2020 19:56:42 +0000 (15:56 -0400)]
Merge pull request #34851 from yison/rwl-image-writeback-cache-seq8

rbd/cache: Replicated Write Log core codes - retire entries and invalidate

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agomonitoring: Fix "10% OSDs down" alert description 34854/head
Benoît Knecht [Thu, 30 Apr 2020 08:50:07 +0000 (10:50 +0200)]
monitoring: Fix "10% OSDs down" alert description

The alert was triggered when less than 90% of OSDs were _up_, but then the
description took that value and described it as the percentage of OSDs being
_down_. So with 12% of OSDs down, the alert description would read:

```
88% or 88 of 100 OSDs are down (>=10%).
```

which can be panic-inducing.

This commit changes the alert expression to actually compute the ratio of OSDs
being down, which makes the correct value appear in the description.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
5 years agocrimson: avoid using variadic future 34921/head
Kefu Chai [Wed, 6 May 2020 14:30:56 +0000 (22:30 +0800)]
crimson: avoid using variadic future

it is deprecated by seastar. let's use future<tuple<...>> instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoseastar: pick up a recent seastar
Kefu Chai [Wed, 6 May 2020 10:52:06 +0000 (18:52 +0800)]
seastar: pick up a recent seastar

to alleviate the pain of keeping in sync with seastar upstream.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/common: friend with do_with_impl()
Kefu Chai [Wed, 6 May 2020 10:39:44 +0000 (18:39 +0800)]
crimson/common: friend with do_with_impl()

seastar changed the implementatino of do_with(), so it's do_with_impl()
who tries to up-cast erroratorized future to seastar::future<>.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: drop Dispatch::ms_verify_authorizer()
Kefu Chai [Wed, 6 May 2020 10:04:50 +0000 (18:04 +0800)]
crimson: drop Dispatch::ms_verify_authorizer()

as it's not used at all. also, variadic future was deprecated by
seastar, so let's avoid using it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: s/reactor::cpu_id/seastar::this_shard_id/
Kefu Chai [Wed, 6 May 2020 09:43:05 +0000 (17:43 +0800)]
crimson: s/reactor::cpu_id/seastar::this_shard_id/

the former was deprecated since seastar
02956fd436b413d6bbe562cf91533ada36553e54

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/cephadm: add section about setting config settings 34909/head
Sebastian Wagner [Tue, 5 May 2020 14:38:49 +0000 (16:38 +0200)]
doc/cephadm: add section about setting config settings

Fixes: https://tracker.ceph.com/issues/44284
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agolibrbd: add invalidate test case 34851/head
Yuan Lu [Thu, 30 Apr 2020 02:21:00 +0000 (10:21 +0800)]
librbd: add invalidate test case

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add invalidate
Yuan Lu [Tue, 28 Apr 2020 07:34:46 +0000 (15:34 +0800)]
librbd: add invalidate

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: retire entries
Yuan Lu [Wed, 29 Apr 2020 08:03:30 +0000 (16:03 +0800)]
librbd: retire entries

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agoMerge pull request #34899 from smanjara/wip-dynamic-resharding
Casey Bodley [Wed, 6 May 2020 15:18:39 +0000 (11:18 -0400)]
Merge pull request #34899 from smanjara/wip-dynamic-resharding

qa/rgw: add ssl option in reshard tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agodoc/mgr/dashboard: Add troubleshooting guide 34855/head
Tatjana Dehler [Tue, 21 Apr 2020 14:07:21 +0000 (16:07 +0200)]
doc/mgr/dashboard: Add troubleshooting guide

Fixes: https://tracker.ceph.com/issues/25196
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #34887 from sebastian-philipp/cephadm-move-specstore
Sebastian Wagner [Wed, 6 May 2020 15:10:17 +0000 (17:10 +0200)]
Merge pull request #34887 from sebastian-philipp/cephadm-move-specstore

mgr/cephadm: move SpecStore and HostCache to inventoy.py

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #34898 from matthewoliver/cephadm-iscsi-priv
Sebastian Wagner [Wed, 6 May 2020 15:09:51 +0000 (17:09 +0200)]
Merge pull request #34898 from matthewoliver/cephadm-iscsi-priv

cephadm: give ceph-iscsi permissions to configfs

Reviewed-by: Boris Ranto <branto@redhat.com>
5 years agocrimson/common: make do_with() noexcept
Kefu Chai [Wed, 6 May 2020 09:42:17 +0000 (17:42 +0800)]
crimson/common: make do_with() noexcept

to be consistent with seasetar change of
85aa178d9539b2c9301d4fb0815596a741fb82c4, which make
`seasetar::do_with()` noexcept

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/common: use invoke instead of apply
Kefu Chai [Wed, 6 May 2020 09:39:03 +0000 (17:39 +0800)]
crimson/common: use invoke instead of apply

to be consistent with 9b69c7989da57e69ed1bfc7aa122876e67c3d1fd
in seasetar, in which, seastar::apply() is deprecated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34243 from trociny/wip-rbd-freeze-thaw
Jason Dillaman [Wed, 6 May 2020 14:15:40 +0000 (10:15 -0400)]
Merge pull request #34243 from trociny/wip-rbd-freeze-thaw

librbd: API for quiesce callbacks

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34706 from yison/rwl-image-writeback-cache-seq6
Jason Dillaman [Wed, 6 May 2020 13:49:43 +0000 (09:49 -0400)]
Merge pull request #34706 from yison/rwl-image-writeback-cache-seq6

rbd/cache: Replicated Write Log core codes - aio_writesame

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34868 from tspmelo/wip-fix-e2e-role
Laura Paduano [Wed, 6 May 2020 11:38:08 +0000 (13:38 +0200)]
Merge pull request #34868 from tspmelo/wip-fix-e2e-role

mgr/dashboard: E2E: Fix role-mgmt.po.ts

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #34907 from tspmelo/wip-health
Laura Paduano [Wed, 6 May 2020 11:36:44 +0000 (13:36 +0200)]
Merge pull request #34907 from tspmelo/wip-health

mgr/dashboard: Remove unnecessary call in health.component.ts

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agorgw: unable to compile fcgi frontend 34923/head
Or Friedmann [Wed, 6 May 2020 11:27:13 +0000 (14:27 +0300)]
rgw: unable to compile fcgi frontend

Although we are not supporting this frontend it is still possible with cmake to compile it

This fix is intend to be able to compile fcgi

Signed-off-by: Or Friedmann <ofriedma@redhat.com>
5 years agomgr/cephadm: refresh osd config when mons change 34922/head
Tim Serong [Wed, 6 May 2020 11:12:56 +0000 (21:12 +1000)]
mgr/cephadm: refresh osd config when mons change

OSDs don't have a service spec, so the previous implementation
was not reconfiguring them when the list of mons changed.

Fixes: https://tracker.ceph.com/issues/45393
Signed-off-by: Tim Serong <tserong@suse.com>
5 years agocommon/buffer_seastar: include used header
Kefu Chai [Wed, 6 May 2020 09:38:21 +0000 (17:38 +0800)]
common/buffer_seastar: include used header

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agolibrbd: add aio_writesame test case 34706/head
Yuan Lu [Mon, 20 Apr 2020 08:00:27 +0000 (16:00 +0800)]
librbd: add aio_writesame test case

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add aio_writesame
Yuan Lu [Thu, 23 Apr 2020 06:05:20 +0000 (14:05 +0800)]
librbd: add aio_writesame

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add WriteSameRequest
Yuan Lu [Thu, 23 Apr 2020 06:03:45 +0000 (14:03 +0800)]
librbd: add WriteSameRequest

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add WriteSameLogOperation
Yuan Lu [Thu, 23 Apr 2020 06:01:51 +0000 (14:01 +0800)]
librbd: add WriteSameLogOperation

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add WriteSameLogEntry
Yuan Lu [Thu, 23 Apr 2020 05:59:51 +0000 (13:59 +0800)]
librbd: add WriteSameLogEntry

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agoMerge pull request #34086 from ivancich/wip-deprecate-orphans-find
J. Eric Ivancich [Tue, 5 May 2020 19:51:21 +0000 (15:51 -0400)]
Merge pull request #34086 from ivancich/wip-deprecate-orphans-find

rgw: deprecate radosgw-admin orphans sub-commands

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agoMerge pull request #33546 from matthewoliver/rgw_swift_404_anon
Casey Bodley [Tue, 5 May 2020 19:02:34 +0000 (15:02 -0400)]
Merge pull request #33546 from matthewoliver/rgw_swift_404_anon

rgw: anonomous swift to obj that dont exist should 401

Reviewed-by: Or Friedmann <ofriedma@redhat.com>
5 years agoMerge pull request #34896 from cbodley/wip-rgw-multisite-py3
Casey Bodley [Tue, 5 May 2020 18:59:40 +0000 (14:59 -0400)]
Merge pull request #34896 from cbodley/wip-rgw-multisite-py3

test/rgw: py3 fixes for multisite tests

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agomgr/orch: fix mypy errors 34843/head
Michael Fritch [Mon, 4 May 2020 20:54:54 +0000 (14:54 -0600)]
mgr/orch: fix mypy errors

orchestrator/module.py: note: In member "_daemon_add_misc" of class "OrchestratorCli":
orchestrator/module.py:655: error: Incompatible types in assignment (expression has type "PlacementSpec", variable has type "Optional[str]")
orchestrator/module.py:656: error: Argument 1 to "ServiceSpec" has incompatible type "Optional[str]"; expected "str"
orchestrator/module.py:656: error: Argument "placement" to "ServiceSpec" has incompatible type "Optional[str]"; expected "Optional[PlacementSpec]"

orchestrator/module.py: note: In member "_apply_misc" of class "OrchestratorCli":
orchestrator/module.py:881: error: Incompatible types in assignment (expression has type "PlacementSpec", variable has type "Optional[str]")
orchestrator/module.py:882: error: Argument 1 to "ServiceSpec" has incompatible type "Optional[str]"; expected "str"
orchestrator/module.py:882: error: Argument "placement" to "ServiceSpec" has incompatible type "Optional[str]"; expected "Optional[PlacementSpec

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: add missing `subcluster`, `port`, and `ssl`
Michael Fritch [Mon, 4 May 2020 19:18:19 +0000 (13:18 -0600)]
mgr/orch: add missing `subcluster`, `port`, and `ssl`

subcluster, port, and ssl arguments are missing for `orch apply rgw`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: add type checking for add/apply commands
Michael Fritch [Thu, 30 Apr 2020 23:32:17 +0000 (17:32 -0600)]
mgr/orch: add type checking for add/apply commands

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: raise validation error for unexpected inbuf
Michael Fritch [Thu, 30 Apr 2020 22:08:51 +0000 (16:08 -0600)]
mgr/orch: raise validation error for unexpected inbuf

ceph orch apply mds x -i nfs.yaml
Error ENOENT: unrecognized command -i; -h or --help for usage

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: remove inbuf logic during daemon add (rgw/iscsi)
Michael Fritch [Thu, 30 Apr 2020 00:40:53 +0000 (18:40 -0600)]
mgr/orch: remove inbuf logic during daemon add (rgw/iscsi)

Simplifies logic for handling the ServiceSpec

Allows for a ServiceSpec:
$ ceph orch daemon add -i iscsi.yaml

But not when combined with a service_type:
$ ceph orch daemon add iscsi <poolname> -i iscsi.yaml

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: remove extraneous PlacementSpec.validate()
Michael Fritch [Thu, 30 Apr 2020 00:16:47 +0000 (18:16 -0600)]
mgr/orch: remove extraneous PlacementSpec.validate()

PlacementSpec is being validated during `__init__()`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: add mds, rgw, nfs daemon types
Michael Fritch [Wed, 29 Apr 2020 23:39:47 +0000 (17:39 -0600)]
mgr/orch: add mds, rgw, nfs daemon types

$ ceph orch add -i nfs.yaml
Error ENOENT: unknown daemon type `nfs`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: use `service_type` as the `daemon_type`
Michael Fritch [Wed, 29 Apr 2020 23:34:37 +0000 (17:34 -0600)]
mgr/orch: use `service_type` as the `daemon_type`

$ ceph orch add -i mon.yaml
Error ENOENT: unknown daemon type `None`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: pass `inbuf` to add/apply (mds, rgw, nfs)
Michael Fritch [Wed, 29 Apr 2020 21:02:34 +0000 (15:02 -0600)]
mgr/orch: pass `inbuf` to add/apply (mds, rgw, nfs)

$ ceph orch apply mds a -i mds.yaml
TypeError: _apply_mds() got an unexpected keyword argument 'inbuf'

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/orch: add misssing `raise_if_exception`
Michael Fritch [Wed, 29 Apr 2020 20:00:35 +0000 (14:00 -0600)]
mgr/orch: add misssing `raise_if_exception`

pickle exceptions during during `nfs apply`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agorgw: deprecate radosgw-admin orphans sub-commands 34086/head
J. Eric Ivancich [Fri, 20 Mar 2020 15:20:10 +0000 (11:20 -0400)]
rgw: deprecate radosgw-admin orphans sub-commands

The orphans sub-commands have not been maintained for years and it's
unclear whether they're reliable. Additionally, they store logs on the
cluster, so if a user wants to run it to address a nearly full
cluster, it could push the user over the edge. As a result the
(currently experimental) `rgw-orphan-list` tool (separate executable
rather than a sub-command) has been created, which stores intermediate
results on the local filesystem.

Now all three orphans sub-commands produce a warning (on cerr) that
the command is being deprecated. Additionally all three now require
the --yes-i-really-mean-it command-line option to run.

This also documents the "bucket radoslist" sub-command to
`radosgw-admin` in its corresponding man page, a change that was
omitted from the prior commit that added "bucket radoslist"
documentation.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge PR #34911 into master
Patrick Donnelly [Tue, 5 May 2020 17:58:32 +0000 (10:58 -0700)]
Merge PR #34911 into master

* refs/pull/34911/head:
qa: move fsx deps into common cephfs install yaml

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #34287 from ofriedma/wip-ofriedma-anon
Casey Bodley [Tue, 5 May 2020 17:56:23 +0000 (13:56 -0400)]
Merge pull request #34287 from ofriedma/wip-ofriedma-anon

rgw: fix rgw tries to fetch anonymous user

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa: move fsx deps into common cephfs install yaml 34911/head
Patrick Donnelly [Tue, 5 May 2020 16:25:07 +0000 (09:25 -0700)]
qa: move fsx deps into common cephfs install yaml

The double install task causes errors during unwind.

Fixes: fe3961fc36e4d0af896fe140ba2450e1556ab563
Fixes: https://tracker.ceph.com/issues/45387
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agovstart: remove commented-out vault config options 34896/head
Casey Bodley [Mon, 4 May 2020 20:45:04 +0000 (16:45 -0400)]
vstart: remove commented-out vault config options

we don't have any vstart automation for rgw encryption with vault. if
anyone wants to do local testing, they can follow instructions in
the documentation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agotest/rgw: Cluster.admin() returns output as utf-8 str
Casey Bodley [Mon, 4 May 2020 20:39:59 +0000 (16:39 -0400)]
test/rgw: Cluster.admin() returns output as utf-8 str

fixes the TypeError:

  File "rgw_multi/tests.py", line 1107, in test_bucket_sync_disable
    check_buckets_sync_status_obj_not_exist(zone, buckets)
  File "rgw_multi/tests.py", line 438, in check_buckets_sync_status_obj_not_exist
    if log_list.find(':'+bucket+":") >= 0:
TypeError: argument should be integer or bytes-like object, not 'str'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agolibrbd: make "snapshot create" notification be "async" 34243/head
Mykola Golub [Wed, 29 Apr 2020 17:49:17 +0000 (18:49 +0100)]
librbd: make "snapshot create" notification be "async"

After adding quiesce/unquiesce callbacks the "snapshot create" request
may run long time.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agolibrbd: API for quiesce callbacks
Mykola Golub [Fri, 27 Mar 2020 06:53:31 +0000 (06:53 +0000)]
librbd: API for quiesce callbacks

The callbacks are fired by librbd before/after creating a
snapshot. The callback users like QEMU could attempt to freeze
the FS before allowing librbd to actually perform the snapshot.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agolibrbd: don't use boost::variant for image watcher messages
Mykola Golub [Fri, 3 Apr 2020 10:36:47 +0000 (11:36 +0100)]
librbd: don't use boost::variant for image watcher messages

We are reached 20 types limit and are not able to add new message
types.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #34894 from yuriw/wip-yuriw-distro-master
Yuri Weinstein [Tue, 5 May 2020 15:31:32 +0000 (08:31 -0700)]
Merge pull request #34894 from yuriw/wip-yuriw-distro-master

qa/tests: replaced ubuntu_latest.yaml with ubuntu 20.04

5 years agomgr/dashboard: Remove unnecessary call in health.component.ts 34907/head
Tiago Melo [Tue, 5 May 2020 13:03:23 +0000 (13:03 +0000)]
mgr/dashboard: Remove unnecessary call in health.component.ts

Fixes: https://tracker.ceph.com/issues/45386
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34856 from jschmid1/cephadm_osdspec_affinity
Sebastian Wagner [Tue, 5 May 2020 14:00:12 +0000 (16:00 +0200)]
Merge pull request #34856 from jschmid1/cephadm_osdspec_affinity

mgr/cephadm: add support for proper osd daemon tracking

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/workunits/cephadm: test grafana adoption 34903/head
Sebastian Wagner [Tue, 5 May 2020 12:50:14 +0000 (14:50 +0200)]
qa/workunits/cephadm: test grafana adoption

now includes https://github.com/ceph/cephadm-adoption-corpus/commit/af85d49307e1652cd0007bf3074030bf0a63c9b7

Fixes: https://github.com/ceph/cephadm-adoption-corpus/pull/3
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/rgw: add ssl option in reshard tests 34899/head
Shilpa Jagannath [Tue, 5 May 2020 06:37:45 +0000 (12:07 +0530)]
qa/rgw: add ssl option in reshard tests

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
5 years agoMerge pull request #34773 from ricardoasmarques/cephadm-shell-mount
Sebastian Wagner [Tue, 5 May 2020 08:57:05 +0000 (10:57 +0200)]
Merge pull request #34773 from ricardoasmarques/cephadm-shell-mount

cephadm: Add shell '--mount' option to mount host file or directory

Reviewed-by: Matthew Oliver <moliver@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34703 from SUSE/wip-fix-45129
Sebastian Wagner [Tue, 5 May 2020 08:55:45 +0000 (10:55 +0200)]
Merge pull request #34703 from SUSE/wip-fix-45129

cephadm: Add `chown` to unit.run for adoped simple OSDs

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34778 from mgfritch/cephadm-dd-service-id
Sebastian Wagner [Tue, 5 May 2020 08:40:24 +0000 (10:40 +0200)]
Merge pull request #34778 from mgfritch/cephadm-dd-service-id

mgr/orch: service_id can contain a '.' char (mds, nfs, iscsi)

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34814 from mgfritch/cephadm-iscsi-apply
Sebastian Wagner [Tue, 5 May 2020 08:38:26 +0000 (10:38 +0200)]
Merge pull request #34814 from mgfritch/cephadm-iscsi-apply

mgr/orch: fix `orch apply iscsi`

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>