]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocephadm: Add tcmu-runner container when deploying ceph-iscsi 36235/head
Matthew Oliver [Wed, 22 Jul 2020 07:09:12 +0000 (17:09 +1000)]
cephadm: Add tcmu-runner container when deploying ceph-iscsi

Currently when we deploy ceph-iscsi via cephadm it doesn't include a
running tcmu-runner. Which means initiators will be able to login but
you wont see the LUNS on the initiator.

This patch deploys an additional tcmu-runner container along side the
ceph-iscsi container that just runs the tcmu-runner service.

Fixes: https://tracker.ceph.com/issues/46540
Signed-off-by: Matthew Oliver <moliver@suse.com>
5 years agoMerge pull request #35981 from trociny/wip-45268
Jason Dillaman [Tue, 21 Jul 2020 19:29:22 +0000 (15:29 -0400)]
Merge pull request #35981 from trociny/wip-45268

librbd: don't resend async_complete if watcher is unregistered

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36149 from adamemerson/wip-warn-more
Adam C. Emerson [Tue, 21 Jul 2020 16:39:02 +0000 (12:39 -0400)]
Merge pull request #36149 from adamemerson/wip-warn-more

Warning Cleanup

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <jdillaman@redhat.com>
5 years agoMerge pull request #36206 from idryomov/wip-read-from-replica-log-msgs
Ilya Dryomov [Tue, 21 Jul 2020 13:11:58 +0000 (15:11 +0200)]
Merge pull request #36206 from idryomov/wip-read-from-replica-log-msgs

osd/PrimaryLogPG: fix up replica read log messages

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #34059 from Songweibin/wip-objectmap-invalid
Jason Dillaman [Tue, 21 Jul 2020 11:38:06 +0000 (07:38 -0400)]
Merge pull request #34059 from Songweibin/wip-objectmap-invalid

librbd: don't set objectmap invalid when load objectmap timed out

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36212 from tspmelo/wip-cypress-gpu
Laura Paduano [Tue, 21 Jul 2020 09:20:34 +0000 (11:20 +0200)]
Merge pull request #36212 from tspmelo/wip-cypress-gpu

mgr/dashboard: E2E: Fix random failures

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #36153 from votdev/increase_icon_border
Laura Paduano [Tue, 21 Jul 2020 08:49:48 +0000 (10:49 +0200)]
Merge pull request #36153 from votdev/increase_icon_border

mgr/dashboard: Display cluster status in favicon

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #35850 from sebastian-philipp/cephadm-set-paused-health
Sebastian Wagner [Tue, 21 Jul 2020 08:43:41 +0000 (10:43 +0200)]
Merge pull request #35850 from sebastian-philipp/cephadm-set-paused-health

mgr/cephadm: Add CEPHADM_PAUSED to test_cli

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #36147 from mgfritch/cephadm-service-fixup-mypy
Sebastian Wagner [Tue, 21 Jul 2020 08:21:23 +0000 (10:21 +0200)]
Merge pull request #36147 from mgfritch/cephadm-service-fixup-mypy

mgr/cephadm: clean-up service module type checking

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agolibrbd: propagate an error back when failed to invalidating 34059/head
songweibin [Tue, 24 Mar 2020 14:14:42 +0000 (22:14 +0800)]
librbd: propagate an error back when failed to invalidating

Signed-off-by: songweibin <song.weibin@zte.com.cn>
5 years agolibrbd: don't set objectmap invalid when load objectmap timed out
songweibin [Thu, 19 Mar 2020 12:51:59 +0000 (20:51 +0800)]
librbd: don't set objectmap invalid when load objectmap timed out

Add a new configuration option of `rbd_invalidate_object_map_on_timeout`,
if disabled and timed out to open/update object map, donot invalidating
object map and return -ETIMEDOUT to APP.

Signed-off-by: songweibin <song.weibin@zte.com.cn>
5 years agoMerge pull request #35509 from zdover23/wip-doc-cephadm-adoption-step-9
Sebastian Wagner [Mon, 20 Jul 2020 19:33:27 +0000 (21:33 +0200)]
Merge pull request #35509 from zdover23/wip-doc-cephadm-adoption-step-9

doc/cephadm: remove confusing fragment from cephadm adoption step 9

Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agomgr/dashboard: E2E: Increase defaultCommandTimeout 36212/head
Tiago Melo [Mon, 20 Jul 2020 16:54:12 +0000 (16:54 +0000)]
mgr/dashboard: E2E: Increase defaultCommandTimeout

Fixes: https://tracker.ceph.com/issues/46623
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: E2E: Disable GPU for Chrome Headless
Tiago Melo [Mon, 20 Jul 2020 10:47:08 +0000 (10:47 +0000)]
mgr/dashboard: E2E: Disable GPU for Chrome Headless

Fixes: https://tracker.ceph.com/issues/46624
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35916 from jschmid1/drivegroup_extension
Sebastian Wagner [Mon, 20 Jul 2020 14:40:47 +0000 (16:40 +0200)]
Merge pull request #35916 from jschmid1/drivegroup_extension

python-common/drivegroups: implement option to change filter_logic

5 years agoMerge pull request #35946 from jschmid1/extend_device_ls
Sebastian Wagner [Mon, 20 Jul 2020 14:40:05 +0000 (16:40 +0200)]
Merge pull request #35946 from jschmid1/extend_device_ls

mgr/cephadm: also list vendor/model/rotational in `device ls`

5 years agoMerge pull request #35961 from p-se/cephadm-custom-image-fix
Sebastian Wagner [Mon, 20 Jul 2020 14:39:24 +0000 (16:39 +0200)]
Merge pull request #35961 from p-se/cephadm-custom-image-fix

cephadm: fix usage of custom Prometheus image

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #36157 from rhcs-dashboard/fix-46601-master
Laura Paduano [Mon, 20 Jul 2020 13:48:21 +0000 (15:48 +0200)]
Merge pull request #36157 from rhcs-dashboard/fix-46601-master

mgr/dashboard/api: increase API health timeout

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #36164 from dsavineau/cephadm_remove_ktdreyer_copr_repo
Sebastian Wagner [Mon, 20 Jul 2020 08:23:39 +0000 (10:23 +0200)]
Merge pull request #36164 from dsavineau/cephadm_remove_ktdreyer_copr_repo

cephadm: remove ktdreyer's copr repository

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoosd/PrimaryLogPG: fix up replica read log messages 36206/head
Ilya Dryomov [Mon, 20 Jul 2020 08:19:54 +0000 (10:19 +0200)]
osd/PrimaryLogPG: fix up replica read log messages

Add missing spaces and don't repeat oid twice.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #36129 from matthewoliver/ipv6_cephadm_route_expiry
Sebastian Wagner [Mon, 20 Jul 2020 08:13:41 +0000 (10:13 +0200)]
Merge pull request #36129 from matthewoliver/ipv6_cephadm_route_expiry

cephadm: Fix ipv6 network regex to support routes with expiry

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge PR #36196 into master
Patrick Donnelly [Mon, 20 Jul 2020 00:29:57 +0000 (17:29 -0700)]
Merge PR #36196 into master

* refs/pull/36196/head:
mds/MDSRank: fix typo in "unrecognized"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomds/MDSRank: fix typo in "unrecognized" 36196/head
Nathan Cutler [Sun, 19 Jul 2020 06:40:21 +0000 (08:40 +0200)]
mds/MDSRank: fix typo in "unrecognized"

Fixes: beb12fa25315153e1a06a0104883de89776438a6
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #36081 from winndows/superfluous_break4
Kefu Chai [Sun, 19 Jul 2020 06:37:13 +0000 (14:37 +0800)]
Merge pull request #36081 from winndows/superfluous_break4

osd/OSDMap: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36083 from winndows/superfluous_break8
Kefu Chai [Sun, 19 Jul 2020 06:28:59 +0000 (14:28 +0800)]
Merge pull request #36083 from winndows/superfluous_break8

key_value_store: Remove superfluous breaks

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36080 from winndows/superfluous_break5
Kefu Chai [Sun, 19 Jul 2020 06:11:32 +0000 (14:11 +0800)]
Merge pull request #36080 from winndows/superfluous_break5

osd/PGBackend: Remove superfluous breaks

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36067 from winndows/superfluous_break1
Kefu Chai [Sun, 19 Jul 2020 06:00:05 +0000 (14:00 +0800)]
Merge pull request #36067 from winndows/superfluous_break1

mon/OSDMonitor: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36068 from winndows/superfluous_break2
Kefu Chai [Sun, 19 Jul 2020 05:59:07 +0000 (13:59 +0800)]
Merge pull request #36068 from winndows/superfluous_break2

common: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36078 from winndows/superfluous_break7
Kefu Chai [Sun, 19 Jul 2020 05:58:05 +0000 (13:58 +0800)]
Merge pull request #36078 from winndows/superfluous_break7

mgr: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35994 from jschmid1/osd_support_reweight
Kefu Chai [Sun, 19 Jul 2020 05:54:47 +0000 (13:54 +0800)]
Merge pull request #35994 from jschmid1/osd_support_reweight

mgr/osd_support: add unittests

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35836 from mgfritch/vstart-out-dir-logs
Kefu Chai [Sun, 19 Jul 2020 05:52:37 +0000 (13:52 +0800)]
Merge pull request #35836 from mgfritch/vstart-out-dir-logs

vstart: out dir can contain a large number of files

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36152 from sebastian-philipp/ceph-tell-cephadm
Kefu Chai [Sun, 19 Jul 2020 05:50:55 +0000 (13:50 +0800)]
Merge pull request #36152 from sebastian-philipp/ceph-tell-cephadm

ceph: Fix `tell` for cephadm

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35629 from dillaman/wip-librbd-asio-2
Mykola Golub [Sat, 18 Jul 2020 16:42:00 +0000 (19:42 +0300)]
Merge pull request #35629 from dillaman/wip-librbd-asio-2

librbd: switch IO path to use new librados asio API

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge PR #36134 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:30:42 +0000 (20:30 -0700)]
Merge PR #36134 into master

* refs/pull/36134/head:
mgr/nfs: Remove NParts and Cache_Size from MDCACHE block

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #36107 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:29:44 +0000 (20:29 -0700)]
Merge PR #36107 into master

* refs/pull/36107/head:
mds: fix mds forwarding request 'no_available_op_found'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #36097 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:28:50 +0000 (20:28 -0700)]
Merge PR #36097 into master

* refs/pull/36097/head:
mds: fix nullptr dereference in MDCache::finish_rollback

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35969 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:28:03 +0000 (20:28 -0700)]
Merge PR #35969 into master

* refs/pull/35969/head:
mds: optimize random threshold lookup for dentry load

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoMerge PR #35953 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:20:47 +0000 (20:20 -0700)]
Merge PR #35953 into master

* refs/pull/35953/head:
qa: Fix name collisions

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge PR #35902 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:19:33 +0000 (20:19 -0700)]
Merge PR #35902 into master

* refs/pull/35902/head:
ceph-dedup-tool: fix warning
mds: slave -> peer
mds: master -> leader

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #36139 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:17:30 +0000 (20:17 -0700)]
Merge PR #36139 into master

* refs/pull/36139/head:
mon: refactor ServiceMap::Service::get_task_summary()
mon: only dump non-empty "task status"
mgr/ServiceMap: move ServiceMap::Daemon implementation into .cc file

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge PR #36140 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:15:29 +0000 (20:15 -0700)]
Merge PR #36140 into master

* refs/pull/36140/head:
mgr/volumes: fix "ceph nfs export" help messages

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35851 from dang/wip-dang-zipper-6
Daniel Gryniewicz [Fri, 17 Jul 2020 19:35:47 +0000 (15:35 -0400)]
Merge pull request #35851 from dang/wip-dang-zipper-6

Wip dang zipper 6

5 years agorbd: Parenthesize constant macro expressions 36149/head
Adam C. Emerson [Fri, 17 Jul 2020 18:31:48 +0000 (14:31 -0400)]
rbd: Parenthesize constant macro expressions

So something can't bind to the shifted argument tighter than the shift
operator.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agopybind: Silence distutils/setuptools warning
Adam C. Emerson [Fri, 17 Jul 2020 07:15:48 +0000 (03:15 -0400)]
pybind: Silence distutils/setuptools warning

Setuptools would very much like to be imported BEFORE distutils

So move the conditional imports of setuptools above the import of
distutils.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotest/osdc: Silence implicit conversion warning
Adam C. Emerson [Fri, 17 Jul 2020 06:56:50 +0000 (02:56 -0400)]
test/osdc: Silence implicit conversion warning

By converting explicitly.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotest/objectstore: Remove unused value
Adam C. Emerson [Fri, 17 Jul 2020 06:54:53 +0000 (02:54 -0400)]
test/objectstore: Remove unused value

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotest/common: Fix pessimizing move
Adam C. Emerson [Fri, 17 Jul 2020 06:51:36 +0000 (02:51 -0400)]
test/common: Fix pessimizing move

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotest/cls_queue: Remove pessimizing move
Adam C. Emerson [Fri, 17 Jul 2020 06:51:16 +0000 (02:51 -0400)]
test/cls_queue: Remove pessimizing move

…and fix filetype in modeline.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotools/cephfs: Explicitly convert to char
Adam C. Emerson [Fri, 17 Jul 2020 06:44:31 +0000 (02:44 -0400)]
tools/cephfs: Explicitly convert to char

Whether char is signed or not is implementation defined, and if char
is signed converting 255 to a char will turn a positive value into a
negative.

Silence the warning by converting explicitly.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agotest/random: Turn off spurious warning
Adam C. Emerson [Fri, 17 Jul 2020 06:36:06 +0000 (02:36 -0400)]
test/random: Turn off spurious warning

Since we're testing deduction guides involving a type whose concrete
representation is unknown, this warning provides no value.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoosd: Remove unneeded copy in ranged loop initializer
Adam C. Emerson [Fri, 17 Jul 2020 06:31:34 +0000 (02:31 -0400)]
osd: Remove unneeded copy in ranged loop initializer

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw/picojson: Pragma out limit comparison warning
Adam C. Emerson [Fri, 17 Jul 2020 06:28:34 +0000 (02:28 -0400)]
rgw/picojson: Pragma out limit comparison warning

intmax_t may or may not be identical to int64_t, depending on
platform. On our platform, it is.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw: Remove unneded copy in ranged initializer
Adam C. Emerson [Fri, 17 Jul 2020 06:20:26 +0000 (02:20 -0400)]
rgw: Remove unneded copy in ranged initializer

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw: Fix dangling-gsl warning
Adam C. Emerson [Fri, 17 Jul 2020 06:18:45 +0000 (02:18 -0400)]
rgw: Fix dangling-gsl warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorbd: Remove unused lambda capture
Adam C. Emerson [Fri, 17 Jul 2020 06:17:40 +0000 (02:17 -0400)]
rbd: Remove unused lambda capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw: Remove unused lambda capture
Adam C. Emerson [Fri, 17 Jul 2020 06:15:01 +0000 (02:15 -0400)]
rgw: Remove unused lambda capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorbd_mirror: Remove unneded implicit conversions
Adam C. Emerson [Fri, 17 Jul 2020 06:12:38 +0000 (02:12 -0400)]
rbd_mirror: Remove unneded implicit conversions

Since we're comparing to uint64_ts and storing in a uint64_t, just
have the variable be a uint64_t.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw: Fix braced initializer warning
Adam C. Emerson [Fri, 17 Jul 2020 05:35:15 +0000 (01:35 -0400)]
rgw: Fix braced initializer warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorbd: Remove clashing definition of CephContext
Adam C. Emerson [Fri, 17 Jul 2020 05:33:52 +0000 (01:33 -0400)]
rbd: Remove clashing definition of CephContext

Fallout from the common_fwd change

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agokv/RocksDBStore: Remove unused variable
Adam C. Emerson [Fri, 17 Jul 2020 05:08:49 +0000 (01:08 -0400)]
kv/RocksDBStore: Remove unused variable

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agocommon: Clarify empty conditional body
Adam C. Emerson [Fri, 17 Jul 2020 04:49:48 +0000 (00:49 -0400)]
common: Clarify empty conditional body

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoclient: Remove unneeded copies in ranged for
Adam C. Emerson [Fri, 17 Jul 2020 04:49:15 +0000 (00:49 -0400)]
client: Remove unneeded copies in ranged for

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoosd/OSDMap: Use reference to avoid copying in loop initializer
Adam C. Emerson [Fri, 17 Jul 2020 04:43:34 +0000 (00:43 -0400)]
osd/OSDMap: Use reference to avoid copying in loop initializer

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoosd/OSDMap: Fix implicit conversion warning
Adam C. Emerson [Fri, 17 Jul 2020 04:42:49 +0000 (00:42 -0400)]
osd/OSDMap: Fix implicit conversion warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw/picojson: Fix assignment-used-as-value warning
Adam C. Emerson [Fri, 17 Jul 2020 00:53:45 +0000 (20:53 -0400)]
rgw/picojson: Fix assignment-used-as-value warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agorgw: Fix sign comparison warning
Adam C. Emerson [Fri, 17 Jul 2020 00:33:28 +0000 (20:33 -0400)]
rgw: Fix sign comparison warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years ago{tools,rbd,rados,rgw}: Fix Boost.Bind placeholder warning
Adam C. Emerson [Fri, 17 Jul 2020 00:31:33 +0000 (20:31 -0400)]
{tools,rbd,rados,rgw}: Fix Boost.Bind placeholder warning

Use of the Boost placeholders in the default namespace is
deprecated. Switching to <boost/bind/bind.hpp> defines them in
boost::placeholders and silences the warning.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
5 years agocephadm: remove ktdreyer's copr repository 36164/head
Dimitri Savineau [Fri, 17 Jul 2020 17:38:14 +0000 (13:38 -0400)]
cephadm: remove ktdreyer's copr repository

This was needed as a temporary solution until all missing EL8 packages
are built on EPEL 8.
Because we now have all dependencies on EPEL 8 then we can remove that
repository.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
5 years agoClean up some leaks in rgw_admin 35851/head
Daniel Gryniewicz [Wed, 17 Jun 2020 14:23:02 +0000 (10:23 -0400)]
Clean up some leaks in rgw_admin

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoNULL out g_ceph_context when deleting it
Daniel Gryniewicz [Wed, 17 Jun 2020 14:21:04 +0000 (10:21 -0400)]
NULL out g_ceph_context when deleting it

This avoids a use-after-free when there is a crash on shutdown (or when
something like ASAN triggers an ABORT on leak).

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoZipper Object
Daniel Gryniewicz [Thu, 19 Dec 2019 17:23:57 +0000 (12:23 -0500)]
Zipper Object

This pass modifies RGW to use RGWObject and RGWRadosObject.
Also improves RGWBucket usage.  This converts many of the APIs to
unique_ptr.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agomgr/cephadm: clean-up service module type checking 36147/head
Michael Fritch [Fri, 17 Jul 2020 15:26:52 +0000 (09:26 -0600)]
mgr/cephadm: clean-up service module type checking

mypy cast to avoid:

cephadm/module.py: note: In member "_config_fn" of class "CephadmOrchestrator":
cephadm/module.py:1797: error: Incompatible return value type (got "Optional[function]", expected "Optional[Callable[[ServiceSpec], None]]")

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/dashboard/api: increase API health timeout 36157/head
Ernesto Puerta [Fri, 17 Jul 2020 13:21:55 +0000 (15:21 +0200)]
mgr/dashboard/api: increase API health timeout

Fixes: https://tracker.ceph.com/issues/46601
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
5 years agocephadm: fix indentation 35961/head
Patrick Seidensal [Tue, 7 Jul 2020 12:29:49 +0000 (14:29 +0200)]
cephadm: fix indentation

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
5 years agocephadm: remove unused/commented out code
Patrick Seidensal [Tue, 7 Jul 2020 12:29:12 +0000 (14:29 +0200)]
cephadm: remove unused/commented out code

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
5 years agocephadm: fix creating custom Prometheus image
Patrick Seidensal [Tue, 7 Jul 2020 11:58:27 +0000 (13:58 +0200)]
cephadm: fix creating custom Prometheus image

Fix the code by improving a condition where a zero as uid or gid leads
to an additional attempt to extract the uid/gid instead of uid/gid
simply being used correctly.

Fixes: https://tracker.ceph.com/issues/46398
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
5 years agoMerge pull request #35553 from zdover23/wip-doc-iscsi-target-cli-daemon
Jason Dillaman [Fri, 17 Jul 2020 11:16:31 +0000 (07:16 -0400)]
Merge pull request #35553 from zdover23/wip-doc-iscsi-target-cli-daemon

doc/rbd: add rbd-target-gw enable and start

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agomgr/dashboard: Display cluster status in favicon 36153/head
Volker Theile [Fri, 17 Jul 2020 11:04:23 +0000 (13:04 +0200)]
mgr/dashboard: Display cluster status in favicon

Use radius of 2px like on GitHub to increase visibility of the status circle.

Follow up of PR https://github.com/ceph/ceph/pull/36000.

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35846 from sebastian-philipp/podman-pull-retry
Sebastian Wagner [Fri, 17 Jul 2020 11:02:27 +0000 (13:02 +0200)]
Merge pull request #35846 from sebastian-philipp/podman-pull-retry

cephadm: Retry pull on transient error

Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoceph: Fix `tell` for cephadm 36152/head
Sebastian Wagner [Fri, 17 Jul 2020 10:50:07 +0000 (12:50 +0200)]
ceph: Fix `tell` for cephadm

The tell target might contain dots now. Like
`mds.myfs.myhost.rnusmq` is now a valid
target.

Fixes: https://tracker.ceph.com/issues/46560
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34696 from tspmelo/wip-locl
Laura Paduano [Fri, 17 Jul 2020 09:20:28 +0000 (11:20 +0200)]
Merge pull request #34696 from tspmelo/wip-locl

mgr/dashboard: Use $localize and locl for TS translations

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
5 years agomgr/cephadm: Add CEPHADM_PAUSED to test_cli 35850/head
Sebastian Wagner [Tue, 30 Jun 2020 13:13:51 +0000 (15:13 +0200)]
mgr/cephadm: Add CEPHADM_PAUSED to test_cli

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #36000 from tspmelo/wip-favicon
Laura Paduano [Fri, 17 Jul 2020 07:55:09 +0000 (09:55 +0200)]
Merge pull request #36000 from tspmelo/wip-favicon

mgr/dashboard: Display cluster status in favicon

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35456 from sebastian-philipp/cephadm-events
Sebastian Wagner [Fri, 17 Jul 2020 07:49:14 +0000 (09:49 +0200)]
Merge pull request #35456 from sebastian-philipp/cephadm-events

mgr/cephadm: Add k8s-style event system

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35985 from bk201/wip-46413
Laura Paduano [Fri, 17 Jul 2020 07:33:15 +0000 (09:33 +0200)]
Merge pull request #35985 from bk201/wip-46413

mgr/dashboard: fix regression in delete OSD modal

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/nfs: Remove NParts and Cache_Size from MDCACHE block 36134/head
Varsha Rao [Thu, 16 Jul 2020 09:34:45 +0000 (15:04 +0530)]
mgr/nfs: Remove NParts and Cache_Size from MDCACHE block

As setting them to small value affects the performance and they are not related
to metadata caching. https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/495185

Fixes: https://tracker.ceph.com/issues/46579
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge PR #36124 into master
Patrick Donnelly [Fri, 17 Jul 2020 04:10:07 +0000 (21:10 -0700)]
Merge PR #36124 into master

* refs/pull/36124/head:
script/ptl-tool: add flag to turn off credits

Reviewed-by: Jos Collin <jcollin@redhat.com>
5 years agomgr/cephadm: assert the service_type during config/create
Michael Fritch [Wed, 15 Jul 2020 22:23:59 +0000 (16:23 -0600)]
mgr/cephadm: assert the service_type during config/create

ensure the passed ServiceSpec type matches the CephadmService type

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/cephadm: clean-up service module type checking
Michael Fritch [Mon, 13 Jul 2020 22:22:59 +0000 (16:22 -0600)]
mgr/cephadm: clean-up service module type checking

- convert to py3 style type checks
- other misc type checking fixups

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agotest/librbd: drop test_internal.ShrinkFlushCase test case 35629/head
Jason Dillaman [Thu, 16 Jul 2020 21:19:04 +0000 (17:19 -0400)]
test/librbd: drop test_internal.ShrinkFlushCase test case

It's a racey test that is better exercised by the existing resize
state machine mock tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agomgr/cephadm: clean-up service module type checking
Michael Fritch [Tue, 14 Jul 2020 13:18:48 +0000 (07:18 -0600)]
mgr/cephadm: clean-up service module type checking

- add return type to `config` func
- add missing `NFSServiceSpec` annotation to `config` func

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/cephadm: clean-up service module type checking
Michael Fritch [Mon, 13 Jul 2020 20:41:57 +0000 (14:41 -0600)]
mgr/cephadm: clean-up service module type checking

- add missing return type to `create` func

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agolibrbd: utilize neorados to issue async blacklist request
Jason Dillaman [Tue, 14 Jul 2020 22:38:17 +0000 (18:38 -0400)]
librbd: utilize neorados to issue async blacklist request

The librados API does not currently offer an async 'mon_command'
API method. Instead of adding one just to support this effort,
re-use the neorados API to issue an asynchronous 'mon_command'
for blacklisting a client.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: managed_lock::BreakRequest needs a reference to AsioEngine
Jason Dillaman [Tue, 14 Jul 2020 21:38:56 +0000 (17:38 -0400)]
librbd: managed_lock::BreakRequest needs a reference to AsioEngine

The current usage of the asio::ContextWQ to similate an asynchronous blocklist
API call is resulting in deadlock in the rbd-mirror HA tests when multiple
blocklists are occurring concurrently. The next commit will switch to use the
neorados async MON command API (since librados doesn't offer one).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: fix race condition with AIO completion callbacks
Jason Dillaman [Mon, 13 Jul 2020 17:45:44 +0000 (13:45 -0400)]
librbd: fix race condition with AIO completion callbacks

Now that librbd utilizes multiple threads for the IO path, it's
possible for a race condition to occur if a client app is waiting
on a completion to fire and the actual invokation of the
completion.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: directly post completions to the asio strand
Jason Dillaman [Fri, 10 Jul 2020 16:50:54 +0000 (12:50 -0400)]
librbd: directly post completions to the asio strand

Avoid the unnecessary wrapping of the strand completion in a
bind_executor by just directly posting the completion to the
strand.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: allocate the asio strands directly on the heap
Jason Dillaman [Fri, 10 Jul 2020 16:46:27 +0000 (12:46 -0400)]
librbd: allocate the asio strands directly on the heap

This will assist with potential race condition debugging since the
stand pointer will be invalidated by the time the strand has been
destructed and shut down.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: ensure all asio completions are complete at ImageCtx destruction
Jason Dillaman [Fri, 10 Jul 2020 15:24:08 +0000 (11:24 -0400)]
librbd: ensure all asio completions are complete at ImageCtx destruction

With multiple threads of execution possible, we need to ensure that
all completions have fired prior to the destruction of the AsioEngine.
We also need to ensure that the AsioEngine is destoyed outside the
context of its owned stands.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: increased logging for asio::ContextWQ
Jason Dillaman [Fri, 10 Jul 2020 14:00:46 +0000 (10:00 -0400)]
librbd: increased logging for asio::ContextWQ

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switch the IO path to utilize the neorados API
Jason Dillaman [Thu, 9 Jul 2020 21:04:50 +0000 (17:04 -0400)]
librbd: switch the IO path to utilize the neorados API

IO operations to the cluster are now dispatched via the neorados
API which allows multiple threads to be utilized for processing
incoming and outgoing IO.

This also involves switching from a map for tracking sparse extents
to a vector of pairs since that matches the new API for sparse
read operations.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>