Open asymmetric opened 3 years ago
@bryanasdev000 for context, there are 3 places where images are stored:
gs://nixos-images
(mostly old ones)gs://nixos-cloud-images
(apparently now deprecated)nixos-cloud
(no bucket here)Seems like the switch nixos-images
-> nixos-cloud-images
happened in b894dd8b821 (3 years ago).
@bryanasdev000 for context, there are 3 places where images are stored:
gs://nixos-images
(mostly old ones)gs://nixos-cloud-images
(apparently now deprecated)nixos-cloud
(no bucket here)Seems like the switch
nixos-images
->nixos-cloud-images
happened in b894dd8 (3 years ago).
Makes sense, but someone uploaded a 20.03 release, that's the one I am using for quite some time (since I found in nixos.wiki).
397747554 2020-05-03T02:36:23Z gs://nixos-images/google-cloud-nixos-20.03.1639.73e73c7d6b5.raw.tar.gz
256556736 2014-12-17T10:51:00Z gs://nixos-images/nixos-14.10pre-git-x86_64-linux.raw.tar.gz
291081495 2015-01-16T16:36:46Z gs://nixos-images/nixos-14.12.323.91643074-x86_64-linux.raw.tar.gz
290985235 2014-12-19T12:45:58Z gs://nixos-images/nixos-14.12.542.4c9ef9f7-x86_64-linux.raw.tar.gz
TOTAL: 4 objects, 1236371020 bytes (1.15 GiB)
Yeah, I think there should be a policy about refraining from manually pushing images IMO
Yeah, I think there should be a policy about refraining from manually pushing images IMO
Ideally, yes, this way we guarantee the reliability of the image, which ends up being an important step to guarantee NixOS in the main cloud providers.
@asymmetric We haven't switched from nixos-cloud-images
bucket, see https://github.com/NixOS/nixpkgs/blob/master/nixos/maintainers/scripts/gce/create-gce.sh#L6 which is the script that creates the images.
I researched a bit if we can allow compute.images.list
to all authenticated users but so far I haven't found a way, I see in the documentation they mention:
Caution: Publicly shared images do not appear in the images list for users. Users must know the image name explicitly. Users cannot rely on getting the information by making an images.list request.
So maybe it's not even possible. If you find a way let me know and I can apply that, so far seems we can allow using the image given a name which is now hardcoded and updated in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/gce-images.nix#L13. Listing the bucket can be used but likely not very reliable as there might be images created for testing for example. But I guess we can have a policy to not leave images unless it's officially added.
@asymmetric We haven't switched from
nixos-cloud-images
bucket, see https://github.com/NixOS/nixpkgs/blob/master/nixos/maintainers/scripts/gce/create-gce.sh#L6 which is the script that creates the images. I researched a bit if we can allowcompute.images.list
to all authenticated users but so far I haven't found a way, I see in the documentation they mention:Caution: Publicly shared images do not appear in the images list for users. Users must know the image name explicitly. Users cannot rely on getting the information by making an images.list request.
So maybe it's not even possible. If you find a way let me know and I can apply that, so far seems we can allow using the image given a name which is now hardcoded and updated in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/gce-images.nix#L13. Listing the bucket can be used but likely not very reliable as there might be images created for testing for example. But I guess we can have a policy to not leave images unless it's officially added.
I don't know how it works behind the scenes, but it would be interesting to have the images available for use equal to that of Debian for example, it would help a lot, both in the use and in the visualization of NixOS.
I'll see if I can find anything about it and comment again here.
So far I haven't found anything, just that certain images are only supported by the community, like Debian, but no information on how to submit a new image in this "format".
https://cloud.google.com/compute/docs/images#os-compute-support
https://cloud.google.com/compute/docs/images#lifecycle_policy
Maybe by contacting GCP or talking to someone from Debian we can get an idea of what we need to do.
I marked this as stale due to inactivity. → More info
Hey y'all, I know this is an old issue, but I don't intend to necro idly here and would be happy to help with the effort.
Lately I've been doing a lot of work with GCE images and found the same things noted here in addition to some other requirements like GCP marketplace base images being limited to "supported" images which it sounds like they're blessed in some way by GCP.
I infer that there's probably two paths forward here:
The easiest next steps would be if somebody has connections with maintainers in other distros that are in the supported OS list or connections at GCP to try and kickstart the conversations. I don't have either, so I'll wait a little while to see if anybody does, and if not, we can start a thread somewhere (mailing list, etc.) to at least learn about what the requirements are.
Describe the bug Since the switch away from the
nixos-cloud-images
bucket for NixOS images, the images can't be listed anymore:To Reproduce Steps to reproduce the behavior:
Expected behavior The
gcloud
command above should return a list of images, namely (at the moment) 20.09.Additional context 20.09 is still available on the
nixos-cloud-images
bucket:But since this is apparently deprecated, I'm not relying on these images anymore.
Notify maintainers
cc @AmineChikhaoui
Maintainer information: