cephadm: cephfs-mirror#39640
Conversation
|
|
|
| ret, keyring, err = self.mgr.check_mon_command({ | ||
| 'prefix': 'auth get-or-create', | ||
| 'entity': self.get_auth_entity(daemon_spec.daemon_id), | ||
| 'caps': ['mon', 'allow r', |
There was a problem hiding this comment.
FYI, this may become profile cephfs-mirror. See also: #39657 (review)
| 'caps': ['mon', 'allow r', | ||
| 'mds', 'allow r', | ||
| 'osd', 'allow rw tag cephfs metadata=*, allow r tag cephfs data=*', | ||
| 'mgr', 'allow r'], |
There was a problem hiding this comment.
@vshankar does cephfs-mirror require talking to the mgr?
There was a problem hiding this comment.
in any case, please keep the docs up to date: https://docs.ceph.com/en/latest/dev/cephfs-mirroring/#creating-users
There was a problem hiding this comment.
with the service daemon changes (PR #39408), mirror daemon registers itself as a service daemon with the manager and periodically forwards mirror stats to ceph-mgr.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
3a2841f to
c262089
Compare
|
removing DNM, as cephfs-mirror is happy when deployed even without the required parameters. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
c262089 to
104414b
Compare
| def test_cephfs_mirror(self): | ||
| self._orch_cmd('apply', 'cephfs-mirror') | ||
| self.wait_until_true(lambda: 'cephfs-mirror' in self._orch_cmd('ps'), 30) | ||
| self.wait_for_health_clear(30) | ||
| self._orch_cmd('rm', 'cephfs-mirror') | ||
| self.wait_until_true(lambda: 'cephfs-mirror' not in self._orch_cmd('ps'), 30) |
There was a problem hiding this comment.
works!
2021-03-02T19:44:23.056 INFO:teuthology.orchestra.run.smithi119.stdout:NAME HOST STATUS REFRESHED AGE VERSION IMAGE NAME IMAGE ID CONTAINER ID
2021-03-02T19:44:23.057 INFO:teuthology.orchestra.run.smithi119.stdout:cephfs-mirror.smithi119.ibwgsg smithi119 running (2s) 0s ago 2s 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b 6584290460dc
2021-03-02T19:44:23.058 INFO:teuthology.orchestra.run.smithi119.stdout:mds.a.smithi119.mbsbao smithi119 running (7m) 0s ago 7m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b f70354890707
2021-03-02T19:44:23.059 INFO:teuthology.orchestra.run.smithi119.stdout:mds.nfs-cephfs.smithi119.cspdll smithi119 running (90s) 0s ago 90s 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b 31820a428e41
2021-03-02T19:44:23.059 INFO:teuthology.orchestra.run.smithi119.stdout:mgr.a smithi119 running (18s) 0s ago 10m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph:668039098c77157a4f5b86625878033d89b30dd2 9cb9ba24e77b fe9f2793c1d0
2021-03-02T19:44:23.059 INFO:teuthology.orchestra.run.smithi119.stdout:mon.a smithi119 running (10m) 0s ago 10m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph:668039098c77157a4f5b86625878033d89b30dd2 9cb9ba24e77b 4387ac5efb2b
2021-03-02T19:44:23.060 INFO:teuthology.orchestra.run.smithi119.stdout:osd.0 smithi119 running (9m) 0s ago 9m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b ac43728b9b17
2021-03-02T19:44:23.060 INFO:teuthology.orchestra.run.smithi119.stdout:osd.1 smithi119 running (8m) 0s ago 8m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b 51f64fc30e0b
2021-03-02T19:44:23.061 INFO:teuthology.orchestra.run.smithi119.stdout:osd.2 smithi119 running (8m) 0s ago 8m 17.0.0-1350-g66803909 quay.ceph.io/ceph-ci/ceph@sha256:af9d1955f9cd6de7664701020fcc2c1d662bbc71e97a2c9bbd6de81d42eccfad 9cb9ba24e77b 221d1c3f3f39
2021-03-02T19:44:29.721 INFO:tasks.cephfs_test_runner:test_cephfs_mirror (tasks.cephadm_cases.test_cli.TestCephadmCLI) ... ok
|
104414b to
e1dbd45
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
e1dbd45 to
c31b9e4
Compare
|
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Mostly for making my IDE aware of things Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Fixes: https://tracker.ceph.com/issues/47261 Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
c31b9e4 to
f885072
Compare
https://tracker.ceph.com/issues/47261
DNM, cause this PR depends on changes in cephfs-mirror itself.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox