Bug #12041
closedNo Machine Inventory in nodes list while the details are complete
Added by Alexis Mousset over 6 years ago. Updated over 6 years ago.
Description
In the nodes list i see "No Machine Inventory" for the root server while the inventory has been sent and the details are available.
I attach the output of
ldapsearch -o ldif-wrap=no -v -h localhost -p 389 -x -D "cn=Manager,cn=rudder-configuration" -w 09a056f47a45 -b "ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration" -s sub
Files
inventories.txt (96.9 KB) inventories.txt | Alexis Mousset, 2018-01-24 13:00 | ||
server-root.ocs (379 KB) server-root.ocs | Inventory with no machine | Nicolas CHARLES, 2018-01-31 10:51 |
Updated by Alexis Mousset over 6 years ago
The webapp logs:
[2018-01-24 11:52:22] ERROR com.normation.rudder.rest.RestAuthentication - Authentication API forbids read access to Techniques for user REST Account: "Rudder system account" (rudder-system-api-account) [2018-01-24 11:52:22] WARN bootchecks - Could not authenticate in ncf API, maybe it was not initialized yet, retrying in 5 seconds [2018-01-24 11:52:26] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - New input inventory: 'server-root.ocs' [2018-01-24 11:52:27] ERROR com.normation.inventory.provisioning.fusion.RudderAgentNameParsing - No key for agent Community defined, a key is mandatory [2018-01-24 11:52:27] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Inventory 'server-root.ocs' parsed in 658 milliseconds ms, now checking signature [2018-01-24 11:52:27] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Inventory 'server-root.ocs' signature checked in 221 milliseconds ms, now saving [2018-01-24 11:52:27] ERROR com.normation.rudder.rest.RestAuthentication - Authentication API forbids read access to Techniques for user REST Account: "Rudder system account" (rudder-system-api-account) [2018-01-24 11:52:27] WARN bootchecks - Could not authenticate in ncf API, maybe it was not initialized yet, retrying in 5 seconds [2018-01-24 11:52:31] INFO com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Report file processed in 3 seconds and 966 milliseconds ms [2018-01-24 11:52:32] ERROR com.normation.rudder.rest.RestAuthentication - Authentication API forbids read access to Techniques for user REST Account: "Rudder system account" (rudder-system-api-account) [2018-01-24 11:52:32] WARN bootchecks - Could not authenticate in ncf API, maybe it was not initialized yet, retrying in 5 seconds [2018-01-24 11:52:37] ERROR com.normation.rudder.domain.nodes.NodeInfo - Error when trying to get the CFEngine-MD5 digest of CFEngine public key for node 'server.rudder.local' (root) <- unable to decode base64 string: invalid characters encountered in base64 data [2018-01-24 11:52:37] ERROR com.normation.rudder.rest.RestAuthentication - Authentication API forbids read access to Techniques for user REST Account: "Rudder system account" (rudder-system-api-account) [2018-01-24 11:52:37] WARN bootchecks - Could not authenticate in ncf API, maybe it was not initialized yet, retrying in 5 seconds
Updated by Alexis Mousset over 6 years ago
The problem is fixed by a "Clear Cache"
Updated by François ARMAND over 6 years ago
LDAP content is consistant and contains all the needed information.
After a "clear cache", the correct information are displayed in node list => we missed a cache invalidation somewhere when the node was accepted. It's unlikely that the bug is 4.3 specific.
Updated by Nicolas CHARLES over 6 years ago
I got the same issue: No Machine Inventory, then Inventory, then No Machine Inventory
On the web interface, I don't have everything (no machine type, no manufacturer, etc)
In the LDAP, entry DN: nodeId=root,ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration is missing the "container" attribute
Could happen on 4.1 also !
Updated by Nicolas CHARLES over 6 years ago
- File server-root.ocs server-root.ocs added
attaching generated inventory
Updated by Nicolas CHARLES over 6 years ago
Ok, once an inventory has been accepted, receving a new inventory for this node break the link to the container
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.3.0~beta1 to 4.3.0~rc1
Updated by François ARMAND over 6 years ago
- Related to Bug #12026: When a network interface is deleted from a node, it is not removed on the Rudder server added
Updated by François ARMAND over 6 years ago
So, this is kind of funny:
- we never set correctly when a node and its machine were both accepted the machine ID in the node (other cases were set correctly);
- with #12026, we enforce that the content of the node is strictly saved to LDAP, and that non existing attribute are removed;
- so the machine id was removed, as it wasn't set in the node.
Double bugs can make tests API for 7 years.
Updated by François ARMAND over 6 years ago
- Target version changed from 4.3.0~rc1 to 4.1.10
Updated by François ARMAND over 6 years ago
- Status changed from New to In progress
Updated by François ARMAND over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/ldap-inventory/pull/126
Updated by Rudder Quality Assistant over 6 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by François ARMAND over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset ldap-inventory|9652acab2d27bf44ae1077e29427b5c906d1a665.
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
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/
Updated by François ARMAND almost 6 years ago
- Has duplicate Bug #6685: Wrong inventory display in the "List nodes" page added