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

Minimal image sizes aren't consistent #1311

Open
ondrejbudai opened this issue Jun 22, 2021 · 2 comments
Open

Minimal image sizes aren't consistent #1311

ondrejbudai opened this issue Jun 22, 2021 · 2 comments
Labels

Comments

@ondrejbudai
Copy link
Member

Minimal images are currently derived from the default ones, see:

minImageSize: defaultImageSize,

Default image sizes are basically hardcoded in cockpit-composer:

getDefaultImageSize(imageType) {
if (imageType === "ami") {
return 6;
}
if (imageType === undefined) {
return null;
}
return 2;

However, they definitely don't correspond to the default sizes in osbuild-composer:

Image type RHEL 8.4 Fedora 33
ami 6 6
qcow2 10 2
openstack 4 2
vhd 4 2
vmdk 4 2

I wonder if should add a route to the Weldr API to return these default sizes and then load them in cockpit-composer. That shouldn't be super-hard. Thoughts? @jkozol @teg @bcl ?

@ondrejbudai ondrejbudai changed the title Minal image sizes aren't consistent Minimal image sizes aren't consistent Jun 22, 2021
@teg
Copy link
Member

teg commented Jun 22, 2021

Maybe make this part of the filesystem work? Or change this in the UI to say "minimal size", and then accept that composer will round up? Default it to 0 in the UI.

@bcl
Copy link
Collaborator

bcl commented Jun 22, 2021

I wonder if should add a route to the Weldr API to return these default sizes

The data returned from /compose/types seems like the natural place to add them (using api/v1 of course). It looks like those numbers come from distro.ImageType.Size() so that should be fairly easy to add.

@jkozol jkozol added the large label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants