Bug 1780530
Summary: | [machines] import vm always failed as "The selected Operating System has minimum memory requirement of 2 GiB" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Frank Liang <xiliang> | ||||
Component: | cockpit-appstream | Assignee: | Katerina Koukiou <kkoukiou> | ||||
Status: | CLOSED ERRATA | QA Contact: | YunmingYang <yunyang> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 8.2 | CC: | kkoukiou, leiwang, linl, mmarusak, mpitt, wshi, xchen, ymao, yunyang | ||||
Target Milestone: | rc | ||||||
Target Release: | 8.2 | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-04-28 15:43:05 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: | |||||
Embargoed: | |||||||
Attachments: |
|
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. 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. 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 |
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