NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.36k stars 13.59k forks source link

Google compute engine fails to run google-startup-scripts.service #142581

Open mrkkrp opened 2 years ago

mrkkrp commented 2 years ago

Describe the bug

With current nixpkgs, commit 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be, Google compute engine uses this systemd service to run startup scripts (metadata startup script and such):

https://github.com/NixOS/nixpkgs/blob/f442ae9fc1a1f5a08d503dcedd490823a034af19/nixos/modules/virtualisation/google-compute-config.nix#L154-L170

As you can see it expects ${gce}/bin/google_metadata_script_runner to exist, which used to be the case, but for some reason, it's not there anymore:

$ ls /nix/store/y3nxrn3z6q6afqqhmrfdgwx2w56sqvj9-python3.9-google-compute-engine-20200113.0
lib  nix-support

The bin/ subdirectory is not there.

This means, that google-startup-scripts.service is going to always fail now and whatever setup it performed is not performed anymore. Which means nothing works anymore.

Metadata

picnoir commented 2 years ago

All the guest features are now handled by the google guest agent. https://github.com/GoogleCloudPlatform/guest-agent#features

We need to update that module to use the agent instead of the legacy python scripts. WIP there: https://github.com/NinjaTrappeur/nixpkgs/tree/nin/gce-fix

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info