]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/ceph: provide configuration for setting configs via mon
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 8 Aug 2023 01:09:21 +0000 (21:09 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Jun 2024 17:57:56 +0000 (13:57 -0400)
commit9d485ae1f450f7ce582f3d1e92045314532d5fe7
treead0f04b5ee583859072e7c6ca29f2df39cc372d1
parentddc57388ce058d4c3d6a0e8bccc04a7ca7383128
qa/tasks/ceph: provide configuration for setting configs via mon

These configs may be set using:

ceph:
  cluster-config:
    entity:
      foo: bar

same as the current:

ceph:
  config:
    entity:
      foo: bar

The configs will be set in parallel using the `ceph config set` command.

The main benefit here is to avoid using the ceph.conf to set configs which
cannot be overriden using subsequent `ceph config` command. The only way to
override is to change the ceph.conf in the test (yuck) or the admin socket
(which gets reset when the daemon restarts).

Finally, we can now exploit the `ceph config reset` command will let us
trivially rollback config changes after a test completes. That is exposed
as the `ctx.config_epoch` variable.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/ceph.py
qa/tasks/ceph_manager.py
qa/tasks/cephadm.py
qa/tasks/vstart_runner.py