summary refs log tree commit diff
path: root/nixos/tests/ceph-single-node-bluestore.nix
diff options
context:
space:
mode:
authorJohan Thomsen <jth@dbc.dk>2021-04-21 16:19:00 +0200
committerJohan Thomsen <jth@dbc.dk>2021-04-22 13:17:57 +0200
commit8a6e130c71ed25f4eae8eadd62ef48450ccf8750 (patch)
tree7bc2f84bbc038af97adaac664bc8c9c6694693f5 /nixos/tests/ceph-single-node-bluestore.nix
parentc3bd75c75255c993fb1ec61c590a23ac31169744 (diff)
downloadnixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar.gz
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar.bz2
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar.lz
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar.xz
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.tar.zst
nixpkgs-8a6e130c71ed25f4eae8eadd62ef48450ccf8750.zip
nixos/ceph: fix tests
- 512 -> 1024MB vm memory (had sporadic oom-failures with the lower setting)

- set "auth_allow_insecure_global_id_reclaim=false" as described here: https://docs.ceph.com/en/latest/security/CVE-2021-20288/
Diffstat (limited to 'nixos/tests/ceph-single-node-bluestore.nix')
-rw-r--r--nixos/tests/ceph-single-node-bluestore.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/ceph-single-node-bluestore.nix b/nixos/tests/ceph-single-node-bluestore.nix
index cc873e8aee5..f706d4d56fc 100644
--- a/nixos/tests/ceph-single-node-bluestore.nix
+++ b/nixos/tests/ceph-single-node-bluestore.nix
@@ -34,7 +34,7 @@ let
 
   generateHost = { pkgs, cephConfig, networkConfig, ... }: {
     virtualisation = {
-      memorySize = 512;
+      memorySize = 1024;
       emptyDiskImages = [ 20480 20480 20480 ];
       vlans = [ 1 ];
     };
@@ -95,6 +95,7 @@ let
     )
     monA.wait_for_unit("ceph-mon-${cfg.monA.name}")
     monA.succeed("ceph mon enable-msgr2")
+    monA.succeed("ceph config set mon auth_allow_insecure_global_id_reclaim false")
 
     # Can't check ceph status until a mon is up
     monA.succeed("ceph -s | grep 'mon: 1 daemons'")