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 1780530 - [machines] import vm always failed as "The selected Operating System has minimum memory requirement of 2 GiB"
Summary: [machines] import vm always failed as "The selected Operating System has mini...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.2
Assignee: Katerina Koukiou
QA Contact: YunmingYang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-06 09:58 UTC by Frank Liang
Modified: 2023-02-12 22:16 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 15:43:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
cockpit_import_vm.png (100.58 KB, image/png)
2019-12-06 09:58 UTC, Frank Liang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-31526 0 None None None 2023-02-12 22:16:01 UTC
Red Hat Product Errata RHBA-2020:1639 0 None None None 2020-04-28 15:43:19 UTC

Description Frank Liang 2019-12-06 09:58:23 UTC
Created attachment 1642598 [details]
cockpit_import_vm.png

Try to import vm from cockpit, set the vm memory size over 2GiB, but it always fails to create vm as "The selected Operating System has minimum memory requirement of 2 GiB".

[root@hp-dl360g9-16 mnt]# rpm -qa|grep cockpit
cockpit-bridge-208-1.el8.x86_64
subscription-manager-cockpit-1.25.17-1.el8.noarch
cockpit-ws-208-1.el8.x86_64
cockpit-system-208-1.el8.noarch
cockpit-208-1.el8.x86_64
cockpit-machines-208-1.el8.noarch
[root@hp-dl360g9-16 mnt]# uname -r
4.18.0-159.el8.x86_64

[root@hp-dl360g9-16 mnt]# gdbus call --system --dest org.libvirt --object-path /org/libvirt/QEMU --method org.libvirt.Connect.NodeGetMemoryStats 0 0 
({'total': uint64 16130240, 'free': 12764248},)
[root@hp-dl360g9-16 mnt]# gdbus call --system --dest org.libvirt --object-path /org/libvirt/QEMU --method org.libvirt.Connect.NodeGetMemoryStats 1 0
({'total': uint64 16512992, 'free': 13979476},)
[root@hp-dl360g9-16 mnt]# numactl --hardware
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 6 7 8
node 0 size: 15752 MB
node 0 free: 12465 MB
node 1 cpus: 3 4 5 9 10 11
node 1 size: 16125 MB
node 1 free: 13651 MB
node distances:
node   0   1 
  0:  10  21 
  1:  21  10 
[root@hp-dl360g9-16 mnt]# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              12
On-line CPU(s) list: 0-11
Thread(s) per core:  1
Core(s) per socket:  6
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               63
Model name:          Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Stepping:            2
CPU MHz:             1198.917
CPU max MHz:         3200.0000
CPU min MHz:         1200.0000
BogoMIPS:            4794.24
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            15360K
NUMA node0 CPU(s):   0-2,6-8
NUMA node1 CPU(s):   3-5,9-11
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
[root@hp-dl360g9-16 mnt]# free -h
              total        used        free      shared  buff/cache   available
Mem:           31Gi       2.2Gi        25Gi        17Mi       3.4Gi        28Gi
Swap:          15Gi          0B        15Gi

Version-Release number of selected component (if applicable):

RHEL Version:
RHEL8.2(4.18.0-159.el8.aarch64)

How reproducible:
100%

Steps to Reproduce:
1. Start a RHEL8.2 system with cockpit enabled.
2. Try to import a RHEL8.2 guest image.

Actual results:
unable to create vm
Expected results:
should import vm successfully

Additional info:
- N/A

Comment 1 Katerina Koukiou 2020-01-03 11:19:08 UTC
From the screenshot and the details you pasted above it's clear that the dialog has wrong information regarding the memory that it's available on the host.
This is probably because of a bug that we fixed on 210 where we were not checking the memory from all cells with VIR_NODE_MEMORY_STATS_ALL_CELLS when fetching the available memory on the system.
That was recently fixed with:


commit 95b814bb361febb4caa86ffb91705c0881a06081
Author: Michael Zamot <7987869+mzamot.github.com>
Date:   Tue Dec 17 05:26:22 2019 -0600

    machines: Use all cells when getting Host Max Memory
    
    Closes #13300

$ git describe 95b814bb361febb4caa86ffb91705c0881a06081
209-30-g95b814bb3

If that fix does not work for you please re-open the bug.

Comment 3 Xianghua Chen 2020-01-15 08:28:10 UTC
Verified with packages:
cockpit-machines-210-1.el8.noarch
libvirt-dbus-1.2.0-3.module+el8.1.0+4066+0f1aadab.x86_64

Steps:
1. Reserve a env with 2 cpu in Beaker with parameters:
System/Arch contains x86_64
CPU/Sockets greater than 1
2. Install cockpit and set up env:
# yum install cockpit* libvirt* -y
# systemctl enable --now cockpit.socket
# systemctl enable --now libvirtd
# firewall-cmd --add-service=cockpit
# firewall-cmd --add-service=cockpit --permanent
3. Check the memory on the host:
# free -h
              total        used        free      shared  buff/cache   available
Mem:           62Gi       1.0Gi        58Gi        17Mi       2.5Gi        60Gi
Swap:          27Gi          0B        27Gi
4. Open the cockpit web console, click Create VM /Import VM, the Max Memory is the same as the total memory in step 3.

So verified.

Comment 5 errata-xmlrpc 2020-04-28 15:43:05 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, 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-2020:1639


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