+2
-2
nixos/tests/all-tests.nix
+2
-2
nixos/tests/all-tests.nix
···
···
+240
-244
nixos/tests/ceph-single-node-bluestore-dmcrypt.nix
+240
-244
nixos/tests/ceph-single-node-bluestore-dmcrypt.nix
···-# this shouldn't be required on production systems which have their required packages in the unit paths only-# distribute by OSD, not by host, as per https://docs.ceph.com/en/reef/cephadm/install/#single-host-"!${config.services.ceph.osd.package.out}/bin/ceph-volume lvm activate --bluestore ${id} ${osd-fsid-map.${id}} --no-systemd"-"${config.services.ceph.osd.package.lib}/libexec/ceph/ceph-osd-prestart.sh --id ${id} --cluster ${config.services.ceph.global.clusterName}"-"ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'",-"ceph-authtool --create-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring --gen-key -n client.bootstrap-osd --cap mon 'profile bootstrap-osd' --cap mgr 'allow r'",-"ceph-authtool /tmp/ceph.mon.keyring --import-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring",-"monmaptool --create --fsid ${cluster} --addv 0 'v2:[${ip}]:3300/0' --clobber /tmp/ceph.initial-monmap",-# should the mon not start or bind for some reason this gives us a better error message than the config commands running into a timeout-# Bootstrap OSDs (do this before starting the mgr because cryptsetup and the mgr both eat a lot of memory)-# this will automatically do what's required for LVM, cryptsetup, and stores all the data in Ceph's internal databases-"ceph-volume lvm prepare --bluestore --data /dev/vdb --dmcrypt --no-systemd --osd-id 0 --osd-fsid ${osd-fsid-map."0"}",-"ceph-volume lvm prepare --bluestore --data /dev/vdc --dmcrypt --no-systemd --osd-id 1 --osd-fsid ${osd-fsid-map."1"}",-"ceph-volume lvm prepare --bluestore --data /dev/vdd --dmcrypt --no-systemd --osd-id 2 --osd-fsid ${osd-fsid-map."2"}",-"ceph auth get-or-create -o /var/lib/ceph/mgr/ceph-ceph/keyring mgr.ceph mon 'allow profile mgr' osd 'allow *' mds 'allow *'",-# See: https://docs.ceph.com/en/reef/rados/operations/pools/#associating-a-pool-with-an-application-"ceph osd pool delete single-node-other-test single-node-other-test --yes-i-really-really-mean-it",
···+# this shouldn't be required on production systems which have their required packages in the unit paths only+# distribute by OSD, not by host, as per https://docs.ceph.com/en/reef/cephadm/install/#single-host+"!${config.services.ceph.osd.package.out}/bin/ceph-volume lvm activate --bluestore ${id} ${osd-fsid-map.${id}} --no-systemd"+"${config.services.ceph.osd.package.lib}/libexec/ceph/ceph-osd-prestart.sh --id ${id} --cluster ${config.services.ceph.global.clusterName}"+"ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'",+"ceph-authtool --create-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring --gen-key -n client.bootstrap-osd --cap mon 'profile bootstrap-osd' --cap mgr 'allow r'",+"ceph-authtool /tmp/ceph.mon.keyring --import-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring",+"monmaptool --create --fsid ${cluster} --addv 0 'v2:[${ip}]:3300/0' --clobber /tmp/ceph.initial-monmap",+# should the mon not start or bind for some reason this gives us a better error message than the config commands running into a timeout+# Bootstrap OSDs (do this before starting the mgr because cryptsetup and the mgr both eat a lot of memory)+# this will automatically do what's required for LVM, cryptsetup, and stores all the data in Ceph's internal databases+"ceph-volume lvm prepare --bluestore --data /dev/vdb --dmcrypt --no-systemd --osd-id 0 --osd-fsid ${osd-fsid-map."0"}",+"ceph-volume lvm prepare --bluestore --data /dev/vdc --dmcrypt --no-systemd --osd-id 1 --osd-fsid ${osd-fsid-map."1"}",+"ceph-volume lvm prepare --bluestore --data /dev/vdd --dmcrypt --no-systemd --osd-id 2 --osd-fsid ${osd-fsid-map."2"}",+"ceph auth get-or-create -o /var/lib/ceph/mgr/ceph-ceph/keyring mgr.ceph mon 'allow profile mgr' osd 'allow *' mds 'allow *'",+# See: https://docs.ceph.com/en/reef/rados/operations/pools/#associating-a-pool-with-an-application+"ceph osd pool delete single-node-other-test single-node-other-test --yes-i-really-really-mean-it",