]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/ceph: provide configuration for setting configs via mon v8.0-squid-nvmeof
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 8 Aug 2023 01:09:21 +0000 (21:09 -0400)
committerAlexander Indenbaum <aindenba@redhat.com>
Wed, 8 Jan 2025 14:01:09 +0000 (16:01 +0200)
commit8c67e8da488712c1466afd67cee8a290f4f01e2b
tree60656e1c931e7156a6258db91a1b9e8c1c71911b
parent8c38faddf861f53315c938730e9103855ca6c1ad
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>
(cherry picked from commit 9d485ae1f450f7ce582f3d1e92045314532d5fe7)
qa/tasks/ceph.py
qa/tasks/ceph_manager.py
qa/tasks/cephadm.py
qa/tasks/vstart_runner.py