Project

General

Profile

Actions

Bug #11902

closed

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

Added by Nicolas CHARLES almost 7 years ago. Updated over 6 years ago.

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

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 1 (0 open1 closed)

Has duplicate Rudder - Bug #11798: Inventory error on xen VMRejectedActions
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Nicolas CHARLES almost 7 years ago

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

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
Actions #6

Updated by Rudder Quality Assistant almost 7 years ago

  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
Actions #7

Updated by Nicolas CHARLES almost 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #8

Updated by Nicolas CHARLES almost 7 years ago

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

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
Actions #10

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.

Actions

Also available in: Atom PDF