]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Matthew Oliver [Thu, 16 Jul 2020 06:38:29 +0000 (06:38 +0000)]
cephadm: Fix ipv6 network regex to support routes with expiry
The regex I previously added didn't take into account ipv6 networks that
had an expiry, this patch updates the regex and includes an ipv6 route
version in the test.
Signed-off-by: Matthew Oliver <moliver@suse.com>
(cherry picked from commit
f4a986cbffccbf00b499d2d0546ac4623c12ddad )
Joshua Schmid [Thu, 9 Jul 2020 09:40:54 +0000 (11:40 +0200)]
mgr/osd_support: add unittests
Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit
0fcfc5455dde176bc1bc82fb3176c8be4788c15d )
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>
(cherry picked from commit
d5b8e3d61cd42d23857d7066660e03aecc89d9ce )
Sebastian Wagner [Tue, 14 Jul 2020 13:11:46 +0000 (15:11 +0200)]
cephadm: also retry on digest mismatch
Fixes: https://tracker.ceph.com/issues/46534
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
ea080e669a83bc2f7478587ef5f4c6a658738a62 )
Sebastian Wagner [Tue, 30 Jun 2020 09:26:58 +0000 (11:26 +0200)]
cephadm: Retry pull on transient error
Fixes: https://tracker.ceph.com/issues/46271
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
f3e770f3541c716b4f568cf73255f25243c655e5 )
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>
(cherry picked from commit
502c574c36f49947cb7a501cafd5530455451773 )
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>
(cherry picked from commit
f8186bd72f807df3c8a31b8c515d2a9e4bb69d09 )
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>
(cherry picked from commit
2bcdcef8ecc256cd86bc7744d392cda875341cb3 )
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>
(cherry picked from commit
414e5507034f6380edac78de86419cd98dc59295 )
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>
(cherry picked from commit
6c020b697e400461760ef41f246e94913923f9df )
Patrick Seidensal [Tue, 7 Jul 2020 12:29:49 +0000 (14:29 +0200)]
cephadm: fix indentation
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit
8844ff41b6547d82c6f900493e830de8686660bc )
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>
(cherry picked from commit
6aa87f7b0dfd516439a6c75681e20d7dffacaf4d )
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>
(cherry picked from commit
3c98f1553fe3b91777ee81d887d02462132475fb )
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>
(cherry picked from commit
aee1aed64131e615bbf5b9453f52fec5eef36bf9 )
Sebastian Wagner [Sat, 6 Jun 2020 23:25:21 +0000 (01:25 +0200)]
mgr/cephadm: Set exception context to populate orch events.
Like when if daemon deployment fails
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
1dd2c5c4fbce49495736c12c3aea2c96f6ad4696 )
Sebastian Wagner [Sat, 6 Jun 2020 22:54:35 +0000 (00:54 +0200)]
mgr/cephadm: Add event when deploying a daemon
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
960f6bfac0d18eb92a017ea21ca97efa1a12b7cf )
Sebastian Wagner [Sat, 6 Jun 2020 22:53:34 +0000 (00:53 +0200)]
mgr/cephadm: Add an event when creating a service
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
05ade49a0900ae0714a8bfe53a8b993d46d5be50 )
Sebastian Wagner [Sat, 6 Jun 2020 22:51:38 +0000 (00:51 +0200)]
mgr/cephadm: Add inventory.EventStore
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
f5b0155e04ab23beecea5d832a59d4e14cd4e898 )
Sebastian Wagner [Fri, 26 Jun 2020 10:44:44 +0000 (12:44 +0200)]
mgr/orch: Add events to tests/test_orchestrator
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
83c163683d3da644de9985c4da0f94ca31b48004 )
Sebastian Wagner [Sat, 6 Jun 2020 22:49:43 +0000 (00:49 +0200)]
mgr/orch: Add OrchestratorEvent class
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
b9ff9118470a1a0cfa94bf3ea4a3d341b25a6bd8 )
Varsha Rao [Tue, 14 Jul 2020 10:26:07 +0000 (15:56 +0530)]
vstart: Remove old ceph images if new cluster is deployed
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit
d8c6e0d97b20be8a0feb53ecaaee0caf16c812ff )
Sebastian Wagner [Thu, 2 Jul 2020 14:28:14 +0000 (16:28 +0200)]
cephadm: refactor update_firewalld
* split into three different methods
* untangle service and port lists
This helps in making our firewall handling more dynamic.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit
4f341819ec746d0a04b76e88b84b64158905e5b6 )
Adam King [Tue, 30 Jun 2020 21:49:09 +0000 (17:49 -0400)]
mgr/cephadm: check-host should not fail as hard using fqdn
Print error message instead of traceback when check-host
fails in due to host address not being found
Fixes: https://tracker.ceph.com/issues/45724
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit
fb1ebb9dc1071a96b3b2e4e85be5744e4a18416c )
Sebastian Wagner [Thu, 18 Jun 2020 12:07:54 +0000 (14:07 +0200)]
mgr/cephadm: Add test for _check_daemons()
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
1aeb0be49b3dc26f456da5d0d850b1d68aec88cf )
Sebastian Wagner [Mon, 8 Jun 2020 10:45:14 +0000 (12:45 +0200)]
mgr/cephadm: refactor `_create_daemon()`
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
69ed3d9cffda243275ab7c9e89d5f9a615f2ab98 )
Sebastian Wagner [Mon, 8 Jun 2020 07:36:20 +0000 (09:36 +0200)]
mgr/cephadm: Add CephadmDaemonSpec class
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
7bc22f61cd69dcb5e7ee2aaa275f9f8cef3b3b26 )
Michael Fritch [Wed, 1 Jul 2020 14:27:02 +0000 (08:27 -0600)]
python-common: RGW service_id might not contain a zone
also adds missing RGWSpec.validate()
Fixes: https://tracker.ceph.com/issues/46268
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit
b54a800b748dc94cb847cc44e23b481c8c3a85b4 )
Zac Dover [Thu, 11 Jun 2020 19:11:09 +0000 (05:11 +1000)]
doc/cephadm: remove a confusing sentence fragment
Removed a confusing sentence fragment: "For each file system:"
Fixes: https://tracker.ceph.com/issues/46546
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Co-authored-by: Varsha <rvarsha016@gmail.com>
(cherry picked from commit
dcce296eea99fa025135d68f079008421de14fa3 )
Volker Theile [Thu, 9 Jul 2020 10:41:49 +0000 (12:41 +0200)]
mgr/cephadm: Adapt Vagrantbox to el8
After el7 has been dropped with https://github.com/ceph/ceph/pull/35722 the Vagrantbox need to be adapted to el8.
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit
d8623ff67bb57ecb3e7b0ae814ea21f1fda54c9b )
Conflicts:
src/pybind/mgr/cephadm/Vagrantfile
Juan Miguel Olmo Martínez [Wed, 24 Jun 2020 09:57:51 +0000 (11:57 +0200)]
doc/mgr/orchestrator: Add information about unmanaged parameter
Explain parameter 'unmanaged' in OSDs creation and deletion
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit
da62f752c5c233b5bac687ac6be5e00fe35084b9 )
Zac Dover [Tue, 14 Jul 2020 13:51:08 +0000 (23:51 +1000)]
doc/cephadm: add yaml infor for orch apply mon
This commit breaks one of the long sentences into
three shorter sentences, and adds a parenthetical
comment walking the reader through a series of commands,
explaining what each command does and why only the last
of the commands ends up having a lasting effect on the Ceph
environment.
Fixes: https://tracker.ceph.com/issues/46133
Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit
b02c98bfa5f0ebe442abd97fab16d65b0ebfbf83 )
Joshua Schmid [Tue, 7 Jul 2020 08:33:51 +0000 (10:33 +0200)]
mgr/cephadm: do not accept filestore osds in osdspecs
Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit
4974a2c1b8e67426db12b7bb2ea3d1af892ca16e )
Joshua Schmid [Mon, 6 Jul 2020 09:40:36 +0000 (11:40 +0200)]
doc: add note about filter_logic
Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit
73475f3b396bf7892b921985b5b4fcf3e9732f42 )
Joshua Schmid [Wed, 1 Jul 2020 09:10:14 +0000 (11:10 +0200)]
python-common/drivegroups: implement option to change filter_logic
Filters are applied to disks using an AND gate by default. In some
scenarios you can only achieve the desired behavior when using an OR
gate without expanding the available filters.
This patch allows to switch between `AND` and `OR` gates.
Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit
f00fba87925f6f72448128649694d98b4df3e748 )
Joshua Schmid [Mon, 6 Jul 2020 15:41:25 +0000 (17:41 +0200)]
mgr/cephadm: also list vendor/model/rotational in device ls
Fixes: https://tracker.ceph.com/issues/45872
Signed-off-by: Joshua Schmid <jschmid@suse.de>
(cherry picked from commit
7c18893f94b01f10aa35ebcec13ee3a3a785c94a )
Jan Fajerski [Thu, 23 Jul 2020 07:42:17 +0000 (09:42 +0200)]
Merge pull request #35880 from ceph/wip-octopus-34744
octopus: ceph-volume: handle idempotency with batch and explicit scenarios
Yuri Weinstein [Wed, 22 Jul 2020 16:05:25 +0000 (09:05 -0700)]
Merge pull request #36137 from rhcs-dashboard/wip-46570-octopus
octopus: mgr/dashboard: fix pool usage calculation
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Yuri Weinstein [Wed, 22 Jul 2020 16:04:34 +0000 (09:04 -0700)]
Merge pull request #36049 from smithfarm/wip-46009-octopus
octopus: tests: objectstore/store_test: kill ExcessiveFragmentation test case.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 16:03:49 +0000 (09:03 -0700)]
Merge pull request #36048 from smithfarm/wip-46015-octopus
octopus: common: log: fix timestap precision of log can't set to millisecond.
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 16:03:19 +0000 (09:03 -0700)]
Merge pull request #36037 from smithfarm/wip-46489-octopus
octopus: pybind/mgr/pg_autoscaler/module.py: do not update event if ev.pg_num== ev.pg_num_target
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Wed, 22 Jul 2020 16:02:34 +0000 (09:02 -0700)]
Merge pull request #36036 from smithfarm/wip-46460-octopus
octopus: pybind/mgr/balancer: use "==" and "!=" for comparing str
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Laura Paduano [Mon, 20 Jul 2020 07:30:14 +0000 (09:30 +0200)]
Merge pull request #35889 from s0nea/wip-46328-octopus
octopus: mgr/dashboard: remove cdCopy2ClipboardButton `formatted` attribute
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Yuri Weinstein [Fri, 17 Jul 2020 17:32:36 +0000 (10:32 -0700)]
Merge pull request #36076 from smithfarm/wip-46514-octopus
octopus: mgr/progress: Skip pg_summary update if _events dict is empty.
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:49:04 +0000 (09:49 -0700)]
Merge pull request #36085 from smithfarm/wip-46511-octopus
octopus: rgw: lc: fix Segmentation Fault when the tag of the object was not found
Reviewed-by: Friedmann <ofriedma@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:45:19 +0000 (09:45 -0700)]
Merge pull request #36028 from smithfarm/wip-46467-octopus
octopus: rgw: radoslist incomplete multipart uploads fix marker progression
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:44:41 +0000 (09:44 -0700)]
Merge pull request #36027 from smithfarm/wip-46459-octopus
octopus: rgw: orphan list teuthology test & fully-qualified domain issue
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:44:00 +0000 (09:44 -0700)]
Merge pull request #36025 from smithfarm/wip-46005-octopus
octopus: rgw: add check for index entry's existing when adding bucket stats during bucket reshard.
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:40:20 +0000 (09:40 -0700)]
Merge pull request #36024 from smithfarm/wip-45951-octopus
octopus: rgw: add access log to the beast frontend
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:35:56 +0000 (09:35 -0700)]
Merge pull request #36023 from smithfarm/wip-45933-octopus
octopus: rgw: Add subuser to OPA request
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:34:32 +0000 (09:34 -0700)]
Merge pull request #36022 from smithfarm/wip-45931-octopus
octopus: rgw: Add support wildcard subuser for bucket policy
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:30:38 +0000 (09:30 -0700)]
Merge pull request #36021 from smithfarm/wip-45928-octopus
octopus: rgw: fix loop problem with swift stat on account.
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:30:05 +0000 (09:30 -0700)]
Merge pull request #36020 from smithfarm/wip-45926-octopus
octopus: rgw: add quota enforcement to CopyObj
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:29:28 +0000 (09:29 -0700)]
Merge pull request #36019 from smithfarm/wip-45924-octopus
octopus: rgw: bucket list/stats truncates for user w/ >1000 buckets
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Yuri Weinstein [Fri, 17 Jul 2020 16:28:15 +0000 (09:28 -0700)]
Merge pull request #36017 from smithfarm/wip-45913-octopus
octopus: rgw: cls/rgw_gc: Fixing the iterator used to access urgent data map
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:35:21 +0000 (09:35 -0700)]
Merge pull request #36046 from smithfarm/wip-46469-octopus
octopus: cephfs: client: release the client_lock before copying data in read
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:34:56 +0000 (09:34 -0700)]
Merge pull request #36045 from smithfarm/wip-46410-octopus
octopus: cephfs: client: fix setxattr for 0 size value (NULL value)
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:34:22 +0000 (09:34 -0700)]
Merge pull request #36044 from smithfarm/wip-46348-octopus
octopus: tests: qa/tasks: make sh() in vstart_runner.py identical with teuthology.orchestra.remote.sh
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:33:55 +0000 (09:33 -0700)]
Merge pull request #36043 from smithfarm/wip-46311-octopus
octopus: tests: qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps when in program case
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:33:07 +0000 (09:33 -0700)]
Merge pull request #36042 from smithfarm/wip-46199-octopus
octopus: tests: Revert "Revert "qa/suites/rados/mgr/tasks/module_selftest: whitelist …
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:31:42 +0000 (09:31 -0700)]
Merge pull request #36040 from smithfarm/wip-46188-octopus
octopus: mds: reset heartbeat in EMetaBlob replay
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:31:02 +0000 (09:31 -0700)]
Merge pull request #36039 from smithfarm/wip-46186-octopus
octopus: cephfs: client: fix snap directory atime
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:30:35 +0000 (09:30 -0700)]
Merge pull request #36038 from smithfarm/wip-46152-octopus
octopus: mds: do not defer incoming mgrmap when mds is laggy
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:30:00 +0000 (09:30 -0700)]
Merge pull request #36035 from smithfarm/wip-46286-octopus
octopus: mon/MDSMonitor: copy MDS info which may be removed
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Thu, 16 Jul 2020 16:29:30 +0000 (09:29 -0700)]
Merge pull request #35842 from Vicente-Cheng/wip-46190-octopus
octopus: mds: fix filelock state when Fc is issued
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sebastian Wagner [Thu, 16 Jul 2020 14:21:46 +0000 (16:21 +0200)]
Merge pull request #36109 from sebastian-philipp/octopus-backport-35890-35913-35908-35927-35813-35717-35990-35915-35747-36013
octopus: cephadm batch backport July (2)
Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Laura Paduano [Thu, 16 Jul 2020 13:07:09 +0000 (15:07 +0200)]
Merge pull request #35819 from bk201/wip-46197-octopus
octopus: mgr/dashboard: fix Source column i18n issue in RBD configuration tables
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Ernesto Puerta [Thu, 25 Jun 2020 09:17:22 +0000 (11:17 +0200)]
mgr/dashboard: fix pool usage calculation
Currently Dashboard Pool usage calculation does not match the output of
'ceph df' command.
Fixes: https://tracker.ceph.com/issues/45185
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
b4a9dc17a3de90379964443d26b29f1759824f28 )
Conflicts:
qa/tasks/mgr/dashboard/test_pool.py: relative import
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.html: change place of new chunk
Laura Paduano [Thu, 16 Jul 2020 08:04:00 +0000 (10:04 +0200)]
Merge pull request #36073 from rhcs-dashboard/wip-46354-octopus
octopus: mgr/dashboard: fix backporting issue #35926
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Laura Paduano [Thu, 16 Jul 2020 07:10:01 +0000 (09:10 +0200)]
Merge pull request #35997 from ricardoasmarques/wip-46436-octopus
octopus: mgr/dashboard: Allow to edit iSCSI target with active session
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
pcuzner [Thu, 16 Jul 2020 06:09:29 +0000 (18:09 +1200)]
Merge pull request #35684 from smithfarm/wip-46121-octopus
octopus: mgr/k8sevents: sanitise kubernetes events
Yuri Weinstein [Wed, 15 Jul 2020 21:50:49 +0000 (14:50 -0700)]
Merge pull request #35958 from callithea/wip-46394-octopus
octopus: mon/PGMap: do not consider changing pg stuck
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Stephan Müller [Wed, 1 Jul 2020 14:27:50 +0000 (16:27 +0200)]
cephadm: Make Vagrantfile more flexible
Now you can use a JSON or pass multiple variable to vagrant in order to
configure the outcome of VMs you get. Similar to vstart.sh you can use
OSDS, MGRS and MONS as arguments to pass. As OSDS behave a bit different
in this scenario you can also specify the amount of extra disks and OSD
VM has.
Fixes: https://tracker.ceph.com/issues/46376
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit
c767a0c0e8ffed4448e4d2cacef72674e7ada883 )
Adam King [Tue, 23 Jun 2020 19:25:41 +0000 (15:25 -0400)]
mgr/cephadm: allow custom dashboard grafana url
Instead of resetting grafana url to a default with
each run of the service loop, only set it when
initally deployed or when it's placement changes
Fixes: https://tracker.ceph.com/issues/44877
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit
fc14c11b4f767b46794ab6b5eb70d53ea38af384 )
Juan Miguel Olmo Martínez [Fri, 3 Jul 2020 11:06:07 +0000 (13:06 +0200)]
mgr/rook: Fix error creating OSDs
https://github.com/ceph/ceph/pull/34860 broke Rook Integration tests (Rook orchestrator module)
This fix the error that can be seen in:
https://jenkins.rook.io/blue/rest/organizations/jenkins/pipelines/rook/pipelines/rook/branches/master/runs/2046/nodes/63/steps/121/log/?start=0
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit
9fd4b481fc4d18e9794806167588d6c6cb1aa46a )
Volker Theile [Thu, 9 Jul 2020 09:16:42 +0000 (11:16 +0200)]
cephadm: Fix Python formating issues
Fix obvious Python formating errors reported by my IDE.
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit
906fa6da4a602d097b740a4d0146bef2d8dd5c59 )
Conflicts:
src/cephadm/cephadm
Dan Mick [Mon, 22 Jun 2020 23:05:33 +0000 (23:05 +0000)]
doc/dev/cephadm.rst: clarify, fix spelling nits
Signed-off-by: Dan Mick <dmick@redhat.com>
(cherry picked from commit
d108444fedeffd9f2268e5277af58f2b1030aa33 )
Patrick Donnelly [Sat, 27 Jun 2020 17:49:08 +0000 (10:49 -0700)]
vstart.sh: use output of hostname for cephadm
Otherwise I get this error on a dev machine:
/home/pdonnell/ceph/build/bin/ceph -c /home/pdonnell/ceph/build/ceph.conf -k /home/pdonnell/ceph/build/keyring orch host add senta03
Error ENOENT: New host senta03 (senta03) failed check: ['INFO:cephadm:podman|docker (/bin/podman) is present', 'INFO:cephadm:systemctl is present', 'INFO:cephadm:lvcreate is present', 'INFO:cephadm:Unit chronyd.service is enabled and running', 'INFO:cephadm:Hostname "senta03" matches what is expected.', 'ERROR: hostname "senta03.front.sepia.ceph.com" does not match expected hostname "senta03"']
If `hostname` is configured to give the fqdn, we get the above error
from cephadm.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
4aba413337e4f9041ade9b5b9e9daee9a08eb419 )
Georgios Kyratsas [Fri, 3 Jul 2020 14:01:54 +0000 (16:01 +0200)]
qa/tasks: fix cephadm config image check
Check container_image_name only if ceph cluster image is not pre-defined in config.
We shouldn't care about container_image_name if there cephadm or ceph already have image defined.
Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
(cherry picked from commit
390ca4d92fe2e0467eec9161de1b7bdc1c62891f )
Kiefer Chang [Fri, 3 Jul 2020 02:32:17 +0000 (10:32 +0800)]
mgr/cephadm: fix Dashboard ganesha setting duplication error
Fix the problem when there are multiple daemons in a NFS service,
redundant Ganesha locations are set.
This change also fixes the setting is wrong when no namespace is used for
a Ganesha config pool.
Fixes: https://tracker.ceph.com/issues/46329
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit
c233ef9099685276de39e799469aebfcb438b1ea )
Deepika Upadhyay [Mon, 6 Jul 2020 10:49:28 +0000 (16:19 +0530)]
docker/podman: tag crimson flavor container as 'sha-1-flavor'
see also: ceph/ceph-container#1704
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
(cherry picked from commit
b0a14d6e1eb194fe654fe160430d953a96a7e355 )
Matthew Oliver [Thu, 2 Jul 2020 08:21:53 +0000 (18:21 +1000)]
cephadm: Make list_networks ipv6 enabled
Currently the list_network command and methods in cephadm only run and
parse ipv4 output from `ip route`.
This patch extends the list_network command and internal methods to be
ipv6 enabled. It now also checks `ip -6 route` and `ip -6 addr` to
gather gather all networks from both protocol families.
Signed-off-by: Matthew Oliver <moliver@suse.com>
(cherry picked from commit
c64d273084bcd3d43c6b63dc070de3f244f86ca8 )
Yuri Weinstein [Tue, 14 Jul 2020 16:19:01 +0000 (09:19 -0700)]
Merge pull request #36034 from smithfarm/wip-46261-octopus
octopus: common, osd: add sanity checks around osd_scrub_max_preemptions
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Tue, 14 Jul 2020 16:18:26 +0000 (09:18 -0700)]
Merge pull request #36033 from smithfarm/wip-46089-octopus
octopus: osd/PG: fix history.same_interval_since of merge target again
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Tue, 14 Jul 2020 16:17:57 +0000 (09:17 -0700)]
Merge pull request #36032 from smithfarm/wip-46086-octopus
octopus: osd: wakeup all threads of shard rather than one thread.
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 14 Jul 2020 16:17:29 +0000 (09:17 -0700)]
Merge pull request #36030 from smithfarm/wip-46016-octopus
octopus: test: osd-backfill-stats.sh use nobackfill to avoid races in remainin…
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Yuri Weinstein [Tue, 14 Jul 2020 16:16:16 +0000 (09:16 -0700)]
Merge pull request #36029 from smithfarm/wip-46007-octopus
octopus: osd/PrimaryLogPG: don't populate watchers if replica
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Sebastian Wagner [Tue, 14 Jul 2020 13:49:06 +0000 (15:49 +0200)]
Merge pull request #35898 from sebastian-philipp/octopus-backport-35018-35472-35524-35412-35510-35493-35549-35547-35581-35567-35578-3563
octopus: cephadm batch backport July (1)
Reviewed-by: Michael Fritch <mfritch@suse.com>
Ricardo Marques [Fri, 26 Jun 2020 17:44:45 +0000 (18:44 +0100)]
cephadm: Add "--format" option to "ceph orch status"
Fixes: https://tracker.ceph.com/issues/46233
Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit
83ff83157c3c5bc3c825d09c8724310e02aea988 )
Michael Fritch [Mon, 15 Jun 2020 20:44:53 +0000 (14:44 -0600)]
mgr/test_orchestrator: add iscsi
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit
37826d41b0bcf755fc9a837c72741542022a019a )
Daniel-Pivonka [Thu, 11 Jun 2020 14:28:44 +0000 (10:28 -0400)]
cephadm: add sudo ssh user option
add the ability to use a non-root users for connecting to hosts, this user requires pass wordless sudo access
useful for clusters that have root ssh access disabled
Fixes: https://tracker.ceph.com/issues/44866
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
(cherry picked from commit
1052b9db7bdc50f61705e1f1331c5cbb20120586 )
Sebastian Wagner [Mon, 15 Jun 2020 16:12:42 +0000 (18:12 +0200)]
mgr/cephadm: Manage /etc/ceph/ceph.conf
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
c18ad7c8a3e63e6eb26947bb7ab47078ebfd0d60 )
Sebastian Wagner [Wed, 17 Jun 2020 12:39:59 +0000 (14:39 +0200)]
mgr/tests: _ceph_get_module_option returns proper type now.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
acdd26ab4e30ff5abee1d555c5e45787e3d4f02f )
Sebastian Wagner [Wed, 17 Jun 2020 12:37:58 +0000 (14:37 +0200)]
mgr/cephadm: config_notify now provides a hook
reason is, we want to use this hook to schedule a
ceph.conf update for all hosts.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
1cd4d0f32380e7ad0fbaf365df5f45a343fcb458 )
Sebastian Wagner [Mon, 15 Jun 2020 16:10:32 +0000 (18:10 +0200)]
mgr/cephadm: refactor _run_cephadm
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
a0c39f3dda40e2ce6e3877fcd1176f5bb003a542 )
Sebastian Wagner [Mon, 15 Jun 2020 16:09:30 +0000 (18:09 +0200)]
python-common: Add simple str(HostSpec)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
e60a2a5dede1ad4e4f4c9e9aefc402032d28320c )
Sebastian Wagner [Mon, 15 Jun 2020 16:11:09 +0000 (18:11 +0200)]
mgr/cephadm: add type hints for _refresh_host_*()
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
c37412deb0598a5985da8097d6891d4516601c10 )
Matthew Oliver [Fri, 26 Jun 2020 00:15:12 +0000 (00:15 +0000)]
cephadm: ceph-iscsi remove pool from cap
When we create a ceph-iscsi daemon/continer in cephadm we create a user
and set some caps. Turns out we were a little too restrictive.
We were locking down to only access the pool that was given in the spec,
which happens to be the pool the iscsi config is stored. But in reality
we need to be able to attach any rbd images which could exist in other
pools.
So this patch removes the `pool=` from the osd cap, so from:
osd = allow rwx pool={spec.pool}
To:
osd = allow rwx
Fixes: https://tracker.ceph.com/issues/46138
Signed-off-by: Matthew Oliver <moliver@suse.com>
(cherry picked from commit
8cf51251a3299bf5a65ea338f9fb06c4f3052ad1 )
Jan Fajerski [Fri, 26 Jun 2020 13:18:18 +0000 (15:18 +0200)]
py-common/deployment/translate: drop unneeded ctor arg
The DriveGroupSpec is already part of the DriveSelection.
Fixes: https://tracker.ceph.com/issues/46231
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit
1a485406da49977a1fc83dda8204b9b94634bec1 )
Kiefer Chang [Mon, 29 Jun 2020 06:53:17 +0000 (14:53 +0800)]
mgr/cephadm: reconfig ssh after setting or clearing ssh_config
Fixes: https://tracker.ceph.com/issues/46245
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit
027b4e154a70b82408de1b19d34a7d4706acded7 )
Sebastian Wagner [Thu, 25 Jun 2020 10:31:36 +0000 (12:31 +0200)]
python-common: service_spec.from_json: Add docstring explaining histroy
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit
5150e957844354861f8adc916f87b6b15ccb3d6a )