summaryrefslogtreecommitdiffstats
path: root/nixos/tests/ceph-multi-node.nix
AgeCommit message (Collapse)Author
2021-04-22nixos/ceph: fix testsJohan Thomsen
- 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/
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-07-11nixos/ceph: (test) ceph now has device monitoring and pg_autoscaler enabled ↵Johan Thomsen
by default - the pg_autoscaler will force new empty pools down to 32 pgs - device monitoring metrics consumes 1 pool with 1 pg
2020-04-02nixos/tests/ceph: Fix pg number to power of 2Sarah Brofeldt
2020-01-09nixos/tests/ceph: Use 3 osds, the default minimumSarah Brofeldt
2019-11-20nixosTests.ceph-multi-node: port to pythonFlorian Klink
2019-11-09nixos/ceph: Clarify comments in tests and add source reference for the ↵Daniel Kuehn
bootstraping method
2019-11-09nixos/ceph: use ConditionPathExists to delay ceph daemon startFlorian Klink
This prevents services to be started before they're initialized, and renders the `systemd.targets.ceph.wantedBy = lib.mkForce [];` hack in the vm tests obsolete - The config now starts up ceph after a reboot, too. Let's take advantage of that, crash all VMs, and boot them up again.
2019-11-09nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass ↵Florian Klink
extraServiceConfig Don't pass user and group to ceph, and rely on it to drop ceps, but let systemd handle running it as the appropriate user. This also inlines the extraServiceConfig into the makeService function, as we have conditionals depending on daemonType there anyways. Use StateDirectory to create directories in /var/lib/ceph/${daemonType}/${clusterName}-${daemonId}. There previously was a condition on daemonType being one of mds,mon,rgw or mgr. We only instantiate makeServices with these types, and "osd" was special. In the osd case, test examples suggest it'd be in something like /var/lib/ceph/osd/ceph-${cfg.osd0.name} - so it's not special at all, but exactly like the pattern for the others. During initialization, we also need these folders, before the unit is started up. Move the mkdir -p commands in the vm tests to the line immediately before they're required.
2019-11-09nixos/ceph: create /etc/ceph and /var/lib/ceph via tmpfilesFlorian Klink
We seem to be relying on those being present during runtime anyways.
2019-10-29nixos/ceph: Rewrite test to take all important values from a single attrsetDaniel Kuehn
2019-10-27nixos/ceph: Reduce RAM allocation for the test machines and change the ↵Daniel Kuehn
sharing of the admin keyring to the shared directory instead of netcat
2019-10-27nixos/ceph: Rename old ceph test and add new multi-node testDaniel Kuehn
Rename the old ceph test to ceph-single-node and add a new test ceph-multi-node. The ceph-single-node represents a dev cluster whereas ceph-multi-node is closer to a prod cluster.