Bug #3138
closedinventory from Centos 5.7 node on Xen domu missing UUID
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");
Updated by Nicolas CHARLES almost 12 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
- Priority changed from N/A to 2
- Target version set to 2.4.3
Updated by Nicolas CHARLES almost 12 years ago
- Status changed from In progress to Pending technical review
The pull request is there
https://github.com/Normation/rudder-techniques/pull/27
Updated by François ARMAND almost 12 years ago
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
Updated by Nicolas CHARLES almost 12 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:ba39e0499913579e683ba0f44ffd173e002e7dcc.
Updated by Jonathan CLARKE almost 12 years ago
Applied in changeset commit:973557b635e73f1147fdd742c14134c170c01e43.
Updated by Nicolas PERRON almost 12 years ago
Applied in changeset commit:63721341c37136d714ecc163bd49cf725d40584f.
Updated by Nicolas PERRON almost 12 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Category changed from 26 to Web - Nodes & inventories