diff options
author | Niklas Hambüchen <mail@nh2.me> | 2024-01-19 12:56:44 +0000 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2024-01-24 14:29:24 +0000 |
commit | 506b21518dfaa747b022ff1850de86b8e5dc44d5 (patch) | |
tree | adfc1f46420c30346bd9102b522181c0b2ead769 /nixos/tests/ceph-single-node-bluestore.nix | |
parent | bf2c85fa691c0908740e1a1bc16435351f7bde2c (diff) |
ceph: Fix tests by adding back old required python libs. See #281858.
Fixes #241482.
Also fix test putting cluster in unhealthy `POOL_APP_NOT_ENABLED` state;
this seems to be the default state with Ceph 18.2.1 at least,
and it does not hurt to fix it now already in the way the Ceph docs say.
Also revert "nixosTests.ceph-single-node: remove dashboard check"
This reverts commit 41b27d7f4b3d9609c5b80ca67925c5827322f00d.
Diffstat (limited to 'nixos/tests/ceph-single-node-bluestore.nix')
-rw-r--r-- | nixos/tests/ceph-single-node-bluestore.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/tests/ceph-single-node-bluestore.nix b/nixos/tests/ceph-single-node-bluestore.nix index acaae4cf300e..8bd1a78244a2 100644 --- a/nixos/tests/ceph-single-node-bluestore.nix +++ b/nixos/tests/ceph-single-node-bluestore.nix @@ -145,6 +145,14 @@ let monA.succeed( "ceph osd pool create single-node-test 32 32", "ceph osd pool ls | grep 'single-node-test'", + + # We need to enable an application on the pool, otherwise it will + # stay unhealthy in state POOL_APP_NOT_ENABLED. + # Creating a CephFS would do this automatically, but we haven't done that here. + # See: https://docs.ceph.com/en/reef/rados/operations/pools/#associating-a-pool-with-an-application + # We use the custom application name "nixos-test" for this. + "ceph osd pool application enable single-node-test nixos-test", + "ceph osd pool rename single-node-test single-node-other-test", "ceph osd pool ls | grep 'single-node-other-test'", ) |