From e0a734ef6b6e1c729085de6032e0f24406e71058 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Mon, 3 Feb 2020 10:44:53 +0900 Subject: [PATCH 1/2] nixos/tests/openstack-image: add stdenv to image for nixos-rebuild Fixes #79100 --- nixos/tests/openstack-image.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/tests/openstack-image.nix b/nixos/tests/openstack-image.nix index 8a21dd1b599..97c9137fe1d 100644 --- a/nixos/tests/openstack-image.nix +++ b/nixos/tests/openstack-image.nix @@ -16,6 +16,12 @@ let ../maintainers/scripts/openstack/openstack-image.nix ../modules/testing/test-instrumentation.nix ../modules/profiles/qemu-guest.nix + { + # Needed by nixos-rebuild due to lack of network access. + system.extraDependencies = with pkgs; [ + stdenv + ]; + } ]; }).config.system.build.openstackImage + "/nixos.qcow2"; From 6e40a8e484c64c6a48674d36602b43625fde9821 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Tue, 4 Feb 2020 02:07:57 +0900 Subject: [PATCH 2/2] nixosTests.openstack-image-userdata: re-enable --- nixos/tests/all-tests.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 282d31005f0..a290906b599 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -213,8 +213,7 @@ in openldap = handleTest ./openldap.nix {}; opensmtpd = handleTest ./opensmtpd.nix {}; openssh = handleTest ./openssh.nix {}; - # openstack-image-userdata doesn't work in a sandbox as the simulated openstack instance needs network access - #openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {}; + openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {}; openstack-image-metadata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).metadata or {}; orangefs = handleTest ./orangefs.nix {}; os-prober = handleTestOn ["x86_64-linux"] ./os-prober.nix {};