Actions
Bug #3138
closedinventory from Centos 5.7 node on Xen domu missing UUID
Status:
Released
Priority:
2
Assignee:
Jonathan CLARKE
Category:
Web - Nodes & inventories
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
I had errors with the Inventory with a Centos 5.7 Xen domu.
On the server the error looks like this when running /var/rudder/cfengine-community/bin/cf-agent -KI
:
!! Finished command related to promiser "/var/rudder/inventories/incoming" -- an error occurred (returned 22) -> Transformer /var/rudder/inventories/incoming/server.fqdn-2013-01-02-17-56-45.ocs => /var/rudder/tools/send-clean.sh http://localhost:8080/endpoint/upload/ /var/rudder/inventories/incoming/server.fqdn-2013-01-02-17-56-45.ocs /var/rudder/inventories/received/ returned error R: @@DistributePolicy@@result_error@@root-DP@@root-distributePolicy@@11@@Send inventories to CMDB@@None@@2013-01-03 17:07:38+01:00##root@#Some inventories failed to add successfully to Rudder
in /var/log/rudder/webapp/(last date).stderrout.log
[2013-01-03 01:15:55] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - New input report: 'server.fqdn-2013-01-02-17-56-45.ocs' [2013-01-03 01:15:55] ERROR com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Error when trying to parse report: Can't parse the input report, aborting cause: Error when post processing report with 'post_process_inventory:check_consistency', abort cause: Missing node ID attribute 'UUID' in report. This attribute is mandatory and must contains node ID. cause: Missing XML element: 'UUID'.
on the node we have following error when forcing the inventory with cf-agent -KDforce_inventory -b doInventory -I
:
Proposed executable file "/usr/sbin/xenstore-read" doesn't exist
on the node effectively the path for xenstore-read is wrong:
which xenstore-read /usr/sbin/xenstore-read
issue fixed with these changes in /var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf
and /opt/rudder/share/initial-promises/inventory/1.0/fusionAgent.cf
, line 302 :
"VMRUDDERUUID" string => execresult("/usr/bin/xenstore-read vm","noshell");
Actions