Bug #11902
closedInventory from a node on Xen dom0 is missing UUID and is invalid
Description
As reported by Florian, on a dom0 the uuid is not available, and so inventory is invalid and fails on a dom0
Indeed, command xenstore-read vm does not return what is expected (at least on recent system)
Suggested solution is to run
"RUDDERUUID" string => execresult("/usr/sbin/dmidecode -s system-uuid", "noshell");
also on dom0, as it should return the exact same value as the dmidecode
If it is indeed the same value, this should be a really fast to fix
Setting to critical, as the only workaround is to patch the policies
Updated by Nicolas CHARLES almost 7 years ago
dmidecode does work on dom0 on recent version (tested up to centos5)
xenstore-read vm does fail on centos7 and sles12, but not on centos5
so it must have started to fail somewhere in-between
as dmidecode seems to always work, we could simply replace, on dom0, xenstore-read by dmidecode
Updated by Nicolas CHARLES almost 7 years ago
interestingly, on a sles11sp3 dom0, I get
root@agent3:/home/vagrant# xenstore-read vm /vm/00000000-0000-0000-0000-000000000000 root@agent3:/home/vagrant# dmidecode -s system-uuid A861BCFC-9838-4F47-9E85-A312F64EB050 root@agent3:/home/vagrant# uname -a Linux agent3 3.0.76-0.11-xen #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux
so uuid seem false
Updated by Nicolas CHARLES almost 7 years ago
on a sles11 domU,
linux-ff08:~ # dmidecode # dmidecode 2.9 /dev/mem: mmap: Operation not permitted linux-ff08:~ # xenstore-read vm /vm/cedc8702-85c1-a3af-67fb-b643320e8cc2
Updated by Nicolas CHARLES almost 7 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES almost 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1236
Updated by Rudder Quality Assistant almost 7 years ago
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
Updated by Nicolas CHARLES almost 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|5a06f06b9cd0338d2044ec4b37e3caac7f6e35bd.
Updated by Nicolas CHARLES almost 7 years ago
- Has duplicate Bug #11798: Inventory error on xen VM added
Updated by Vincent MEMBRÉ almost 7 years ago
- Subject changed from inventory from a node on Xen dom0 is missing UUID and is invalid to Inventory from a node on Xen dom0 is missing UUID and is invalid
- Priority changed from 122 to 121
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
- Priority changed from 121 to 120
This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.
- 4.1.10: Announce Changelog
- 4.2.4: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/