Open
Description
I'm trying to use GCE with autoLuks but the local-fs.target
keeps timing out. I'm using a bootstrap image built off of 18.03 commit ef74caf
: BitKitchen/nixpkgs-channels@664e4ee with this patch applied: NixOS/nixpkgs#39654
The relevant part of my GCE config is:
{
deployment.gce.blockDeviceMapping."/dev/sdb" = {
disk_name = "data";
diskType = "ssd";
size = 40; # in GB
};
deployment.autoLuks.data = {
device = "/dev/sdb";
autoFormat = true;
passphrase = luksPassphrase;
};
fileSystems."/var/lib/consul" = {
fsType = "ext4";
options = ["noatime" "nodiratime"];
autoFormat = true;
device = "/dev/mapper/data";
};
}
It fails about 75% percent of the time with, in nixops output:
consul3........> starting the following units: audit.service, google-accounts-daemon.service, google-clock-skew-daemon.service, google-ip-forwarding-daemon.service, google-shutdown-scripts.service, kmod-static-nodes.service, network-local-commands.service, network-setup.service, nix-daemon.socket, nscd.service, systemd-journal-catalog-update.service, systemd-modules-load.service, systemd-sysctl.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-update-done.service
consul3........> A dependency job for local-fs.target failed. See 'journalctl -xe' for details.
consul3........> the following new units were started: configure-forwarding-rules.service, firewall.service, keys.target, network-pre.target, nixops-keys.service, ntpd.service, unbound.service
consul3........> error: Traceback (most recent call last):
File "/nix/store/g29r9m0ch3dsdvbz4s5ygxqfnc05il7l-python2.7-nixops-1.6.1pre0_abcdef/lib/python2.7/site-packages/nixops/deployment.py", line 731, in worker
raise Exception("unable to activate new configuration (exit code {})".format(res))
Exception: unable to activate new configuration (exit code 4)
Is there some kind of timeout on the formatting perhaps?