Openstack instances register as real machines instead of virtual ones
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
The client is no longer able to detect when it's running on an openstack instance. This is the current detection code:
if "QEMU Virtual CPU" in cpuinfo:
Turns out that string is nowhere in that file when running on an openstack instance:
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
microcode : 0x1
cpu MHz : 2532.612
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc up rep_good nopl pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips : 5065.22
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
As a result, clients running on openstack will register as physical machines, and not virtual ones.
Related branches
- Geoff Teale (community): Approve
- Björn Tillenius (community): Approve
-
Diff: 348 lines (+131/-114)2 files modifiedlandscape/lib/tests/test_vm_info.py (+106/-91)
landscape/lib/vm_info.py (+25/-23)
summary: |
- Client sends an empty vm-info message when running on an openstack - instance + Openstack instances register as real machines instead of virtual ones |
tags: | removed: kanban |
Changed in landscape-client: | |
importance: | High → Medium |
Changed in landscape-client: | |
milestone: | 13.06 → 13.07 |
Changed in landscape-client: | |
assignee: | nobody → Alberto Donato (ack) |
Changed in landscape-client: | |
status: | New → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
tags: |
added: verification-done removed: verification-needed |
Hello Andreas, or anyone else affected,
Accepted landscape-client into lucid-proposed. The package will build now and be available at http:// launchpad. net/ubuntu/ +source/ landscape- client/ 13.07.3- 0ubuntu0. 10.04 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!