-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download & use versioned images #1526
Conversation
ec842b8
to
4b876e7
Compare
4b876e7
to
8d3af48
Compare
d54aa7a
to
cd545b0
Compare
8d3af48
to
89e7fdf
Compare
7808104
to
c4c45ca
Compare
c4c45ca
to
2e1a6f1
Compare
adding @bsatzger for allocator changes |
2e1a6f1
to
434929e
Compare
434929e
to
5a9d7f8
Compare
5a9d7f8
to
7435a7c
Compare
7435a7c
to
ad4983e
Compare
Previously, we ran LearnStorage after an image was downloaded to update StorageDevice::available_storage_gib of storage devices on the host. However, this caused problems when there were existing storage volumes on the host: A storage volume's file can be sparse, in which case `df` will report a lower occupied space for it. This causes problems down the road. This PR changes that so we instead deduct the downloaded image size from available_storage_gib.
ad4983e
to
ef8654f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After all hosts have been associated with boot images, we'll force the allocator to select a host with this image, correct?
yes |
c8f4f5b
to
6b43e9a
Compare
In #1524 we changed rhizome to be able to download versioned boot images. In this change, we actually use that infrastructure. To download a versioned boot image, one can do: ``` > vmh.download_boot_image("ubuntu-jammy", version: "20240319") ``` After this has been done, all VMs on that host which want to use the `ubuntu-jammy` image will use the latest boot image. This allows us to be able to download new image versions without impacting previous VMs at all. Previous VMs will continue to use the older images. As follow up items: * VmHost setup will include downloading some default images (e.g. `ubuntu-jammy`) with explicit. vm_setup won't download the images automatically. * We will enforce to use versioned images always * Add a program to remove unused images
6b43e9a
to
522340d
Compare
In #1524 we changed rhizome to be able to download versioned boot images. In this change, we actually use that infrastructure.
To download a versioned boot image, one can do:
After this has been done, all VMs on that host which want to use the
ubuntu-jammy
image will use the latest boot image.This allows us to be able to download new image versions without impacting previous VMs at all. Previous VMs will continue to use the older images.
As follow up items:
ubuntu-jammy
) with explicit. vm_setup won't download the images automatically.