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

Fixes #37519 - Host form - Libvirt improvements #10190

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

stejskalleos
Copy link
Contributor

@stejskalleos stejskalleos commented May 30, 2024

  • Provisioning a host with an image that does not exist has the correct error.
  • Fixed error for the Libvirt capacity storage.
  • Added error to the field when the image is not found

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I'm tempted to ask to split this up so they show up as individual bug fixes in the changelog.

@MariaAga
Copy link
Member

not sure how to recreate the bug, and the pr needs splitting but the .erb and .js code looks ok

@stejskalleos stejskalleos changed the title Fixes #37519 - Host create form - UI improvements Fixes #37519 - Host form - Libvirt improvements Jul 1, 2024
@stejskalleos
Copy link
Contributor Author

Updated and split into two (#10232)

@MariaAga MariaAga removed their assignment Jul 11, 2024
@nofaralfasi
Copy link
Contributor

nofaralfasi commented Aug 5, 2024

  • Fixed error for the Libvirt capacity storage.

@stejskalleos What is exactly fixed here? I'm not sure how to test that.

Update: I see now that capacity was undefined before. However, that still doesn't fix the issue. The values are not taken from the form but from somewhere else (capacity is always 128G), so I don't know what's the point of checking that.

@stejskalleos
Copy link
Contributor Author

@nofaralfasi I don't have that problem, when I set 33G size, then it works as expected:

qemu-img info /home/lstejska/VirtualMachines/ken-hentges.virtual.lan-disk1
=>
image: /home/lstejska/VirtualMachines/ken-hentges.virtual.lan-disk1
file format: qcow2
virtual size: 33 GiB (35433480192 bytes)
disk size: 196 KiB
cluster_size: 65536
Format specific information:
    compat: 0.10
    compression type: zlib
    refcount bits: 16
Child node '/file':
    filename: /home/lstejska/VirtualMachines/ken-hentges.virtual.lan-disk1
    protocol type: file
    file length: 193 KiB (197632 bytes)
    disk size: 196 KiB


@nofaralfasi
Copy link
Contributor

nofaralfasi commented Aug 21, 2024

@nofaralfasi I don't have that problem, when I set 33G size, then it works as expected:

That's my point. The result is not affected by the JS code inside the imageSelected function. Neither the format_type nor the size (capacity) are impacted.

How did you test it? Did you use network-based or image-based provisioning? Keep in mind that this function is only triggered during image-based provisioning.

@nofaralfasi nofaralfasi reopened this Aug 21, 2024
@nofaralfasi
Copy link
Contributor

I accidentally closed the PR :)

@stejskalleos
Copy link
Contributor Author

Even when I use imaged-based provisioning (qcow2 image), it works fine for me.

- Provisioning a host with an image that does not exist has the correct error.
- Fixed error for the Libvirt capacity storage.
- Added error to the field when the image is not found
- Fix automatic change of storage type and size
@ekohl
Copy link
Member

ekohl commented Aug 22, 2024

Random thought: could it be thin provisioning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants