Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2095753

Summary: [Machines] The memory is wrongly shown after importing vm
Product: Red Hat Enterprise Linux 9 Reporter: Xianghua Chen <xchen>
Component: cockpit-machinesAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact: Xianghua Chen <xchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: kkoukiou, mmarusak, mpitt, qzhang, wshi, ymao, yunyang
Target Milestone: rcKeywords: Triaged
Target Release: 9.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:24:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: cockpit-machines-286
Embargoed:

Description Xianghua Chen 2022-06-10 13:05:32 UTC
Description of problem:
[Machines] The memory is wrongly shown after importing vm

Packages:
cockpit-machines-268-1.el9.noarch
cockpit-269-1.el9.x86_64
libvirt-8.4.0-1.el9.x86_64

How reproducible:
100%

Steps:
1 Prepare a cirros image
2 Import vm with the cirros image and choose "Alpine Linux 3.11" as OS
The memory is 128 as default
3. Click "Import and edit"
In the vm details page, check the memory

Actual results:
The Memory is shown as 134MB

Expected results:
It should be 128MB

Comment 1 Xianghua Chen 2022-06-10 13:08:05 UTC
Not sure whether this bug has root cause with https://bugzilla.redhat.com/show_bug.cgi?id=2058992 , please help to take a look, thanks.

Comment 2 Katerina Koukiou 2023-01-24 19:09:04 UTC
Hi, can you still reproduce this issue with latest available update? I tried with cockpit-machines 280 and I don't seem to be able to reproduce this.

Comment 3 Xianghua Chen 2023-02-06 03:31:23 UTC
Hi , sorry for late update, I've tried with latest version, it's got fixed now:

Packages:
cockpit-machines-284-1.el8.noarch
cockpit-284-1.el9.x86_64
libvirt-8.10.0-2.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64

Steps:
1 Prepare a cirros image
2 Import vm with the cirros image and choose "Alpine Linux 3.17" as OS
The memory is 128 as default
3. Click "Import and edit"
In the vm details page, check the memory, it's 128 now. 

So fixed, could you please change the bug status so that I can verify?

Comment 5 Martin Pitt 2023-04-19 12:26:33 UTC
Will do, Xianghua, I'll add it to the advisory. Thanks!

Comment 8 Xianghua Chen 2023-04-24 02:51:23 UTC
Packages:
cockpit-machines-288-1.el9.noarch
cockpit-290-1.el9.x86_64
libvirt-daemon-9.0.0-10.el9_2.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64

How reproducible:
100%

Steps:
1 Prepare a cirros image
2 Import vm with the cirros image and choose "Alpine Linux 3.12" as OS
The memory is 128 as default
3. Click "Import and edit"
In the vm details page, check the memory is shown as 128MB now.

So verified.

Comment 11 errata-xmlrpc 2023-11-07 08:24:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cockpit-machines bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6336