Skip to content
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 the default boot image in host setup #1578

Closed
wants to merge 2 commits into from

Conversation

pykello
Copy link
Contributor

@pykello pykello commented May 10, 2024

UPDATE: Alternatively, we can merge #1597

Since clover is going to only allocate boot images that have already been downloaded to storage volumes, we need at least one boot image when host setup finishes. This commit downloads the default boot image (configurable, currently ubuntu-jammy) when setting up the host.

In addition, we don't need image download in vm_setup. So, we remove it.

@pykello pykello requested review from enescakir and fdr May 10, 2024 18:23
@pykello pykello force-pushed the pykello/vmsetup_images branch 2 times, most recently from 508c213 to b5daf77 Compare May 11, 2024 01:27
@pykello pykello changed the base branch from main to pykello/image_cert May 11, 2024 02:00
end
donate
end

label def download_boot_image
bud Prog::DownloadBootImage, {"image_name" => Config.default_boot_image_name, "version" => Config.default_boot_image_version}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fdr expressed concerns about automatically downloading images during development previously in the one of @furkansahin PRs.
#772 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about #1597?

prog/vm/host_nexus.rb Outdated Show resolved Hide resolved
Since clover is going to only allocate boot images that have already
been downloaded to storage volumes, we need at least one boot image when
host setup finishes. This commit downloads the default boot image
(configurable, currently ubuntu-jammy) when setting up the host.
Since clover is going to only allocate boot images that have already
been downloaded before, and since we already download the default boot
image on host setup, we don't need image download in vm_setup.
@pykello pykello requested a review from enescakir May 14, 2024 19:27
@pykello pykello closed this May 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants