Machine not being detected as VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Committed
|
Undecided
|
Simon Poirier | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Some KVM hypervisors are incorrectly detected by landscape-client,
thus making it impossible to make use of VM license seats.
* This upload extend the scanning to additional sys/class/dmi/id fields
for known VM markers
[Test Case]
The issue can be reproduced on libvirt/kvm.
uvt-kvm create vm
virsh edit vm
<os>
...
<smbios mode='sysinfo'/>
</os>
...
<sysinfo type="smbios">
<system>
<entry name='manufactu
<entry name='product'>my fancy KVM</entry>
</system>
<chassis>
<entry name='manufactu
</chassis>
</sysinfo>
virsh destroy vm && virsh start vm
uvt-kvm ssh vm --insecure
sudo landscape-config --log-level=debug -a devel --silent -t testclient
# will fail registering, but that's not relevant to the vm-type detection
grep vm-info /var/log/
# expected output is "KVM", and will be empty because of this bug
[Regression Potential]
* The change is simple and scans an additional file for vm info.
It's very similar to previous patches and is unlikely to regress.
* Assuming this patch goes wrong, false positives may be detected as
KVM. This would have minimal user impact VM can be used on full seats.
[Original description]
For a customer, he was unable to approve his VMs on Landscape hosted by Canonical.
Customer is running trusty which originally had installed:
ii landscape-client 14.12-0ubuntu6.
ii landscape-common 14.12-0ubuntu6.
We also tried to install from PPA ppa:landscape/
Example of /proc/cpuinfo:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : QEMU Virtual CPU version (cpu64-rhel6)
stepping : 3
microcode : 0x1
cpu MHz : 2393.998
cache size : 4096 KB
physical id : 3
siblings : 1
core id : 0
cpu cores : 1
apicid : 3
initial apicid : 3
fdiv_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm eagerfpu pni cx16 hypervisor lahf_lm
bogomips : 4787.99
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
SF case: 00225757
Let me know if you require further information.
Related branches
- Andreas Hasenack (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 377 lines (+326/-1)6 files modifieddebian/changelog (+12/-0)
debian/landscape-client.init (+2/-1)
debian/landscape-client.postinst (+3/-0)
debian/patches/product-name-vminfo-1828217.patch (+49/-0)
debian/patches/series (+2/-0)
debian/patches/stagger-launch-1788518.patch (+258/-0)
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
-
Diff: 338 lines (+287/-1)6 files modifieddebian/changelog (+12/-0)
debian/landscape-client.init (+2/-1)
debian/landscape-client.postinst (+3/-0)
debian/patches/product-name-vminfo-1828217.patch (+49/-0)
debian/patches/series (+2/-0)
debian/patches/stagger-launch-1788518.patch (+219/-0)
- Andreas Hasenack (community): Approve
- git-ubuntu developers: Pending requested
-
Diff: 377 lines (+326/-1)6 files modifieddebian/changelog (+12/-0)
debian/landscape-client.init (+2/-1)
debian/landscape-client.postinst (+3/-0)
debian/patches/product-name-vminfo-1828217.patch (+49/-0)
debian/patches/series (+2/-0)
debian/patches/stagger-launch-1788518.patch (+258/-0)
- Andreas Hasenack (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 377 lines (+326/-1)6 files modifieddebian/changelog (+12/-0)
debian/landscape-client.init (+2/-1)
debian/landscape-client.postinst (+3/-0)
debian/patches/product-name-vminfo-1828217.patch (+49/-0)
debian/patches/series (+2/-0)
debian/patches/stagger-launch-1788518.patch (+258/-0)
Changed in landscape-client: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
assignee: | nobody → Simon Poirier (simpoir) |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in landscape-client (Ubuntu): | |
status: | New → Fix Released |
https:/ /github. com/CanonicalLt d/landscape- client/ pull/66