Project

General

Profile

Bug #11902

Inventory from a node on Xen dom0 is missing UUID and is invalid

Added by Nicolas CHARLES 12 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Very Small
Priority:
120

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


Related issues

Has duplicate Rudder - Bug #11798: Inventory error on xen VMRejected

Associated revisions

Revision 5a06f06b (diff)
Added by Nicolas CHARLES 12 months ago

Fixes #11902: inventory from a node on Xen dom0 is missing UUID and is invalid

History

#1 Updated by Nicolas CHARLES 12 months 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

#2 Updated by Nicolas CHARLES 12 months 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

#3 Updated by Nicolas CHARLES 12 months 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

#4 Updated by Nicolas CHARLES 12 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES

#5 Updated by Nicolas CHARLES 12 months 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

#6 Updated by Normation Quality Assistant 12 months ago

  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES

#7 Updated by Nicolas CHARLES 12 months ago

  • Status changed from Pending technical review to Pending release

#8 Updated by Nicolas CHARLES 11 months ago

  • Has duplicate Bug #11798: Inventory error on xen VM added

#9 Updated by Vincent MEMBRÉ 10 months 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

#10 Updated by Vincent MEMBRÉ 10 months 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.

Also available in: Atom PDF