Bug 2231844 - [machines] The "Current allocation" could not be changed when the VM is running
Summary: [machines] The "Current allocation" could not be changed when the VM is running
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: 8.9
Hardware: ppc64le
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Simon Kobyda
QA Contact: YunmingYang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-14 12:23 UTC by YunmingYang
Modified: 2023-08-16 12:06 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description YunmingYang 2023-08-14 12:23:42 UTC
Description of problem:
If creating VM with "GiB", then setting "Current allocation" memory for a running VM will not take effect.

Version-Release number of selected components (if applicable):
cockpit-297-1.el8.ppc64le
cockpit-machines-297-1.el8.noarch
libvirt-dbus-1.3.0-2.module+el8.9.0+18724+20190c23.ppc64le

How reproducible:
100%

Steps to Reproduce:
1 Create a running VM with 2 GiB and Fedora 38, then enter the VM detail page
2 Click "edit" of "Memory", then change the "Current allocation" to 2038 MiB, then click "Save" on the dialog
3 Re-click "edit" to check the "Current allocation"
4 Check in the backend by "virsh dumpxml ${vm}"

Actual results:
1 After step 3, the "Current allocation" is still 2048
2 After step 4, the "memory" in the VM XML is also 2097152

Expected results:
1 After step 3, the "Current allocation" should be 2038
2 After step 4, the "memory" in the VM XML should be 2086912

Additional info:


Note You need to log in before you can comment on or make changes to this bug.