Project

General

Profile

Bug #12041

No Machine Inventory in nodes list while the details are complete

Added by Alexis MOUSSET 11 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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
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

Related issues

Related to Rudder - Bug #12026: When a network interface is deleted from a node, it is not removed on the Rudder serverReleased
Has duplicate Rudder - Bug #6685: Wrong inventory display in the "List nodes" pageRejected

Associated revisions

Revision 9652acab (diff)
Added by François ARMAND 11 months ago

Fixes #12041: No Machine Inventory in nodes list while the details are complete

History

#1 Updated by Alexis MOUSSET 11 months 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

#2 Updated by Alexis MOUSSET 11 months ago

The problem is fixed by a "Clear Cache"

#3 Updated by François ARMAND 11 months 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.

#4 Updated by Nicolas CHARLES 11 months 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 !

#5 Updated by Nicolas CHARLES 11 months ago

attaching generated inventory

#6 Updated by Nicolas CHARLES 11 months ago

Ok, once an inventory has been accepted, receving a new inventory for this node break the link to the container

#7 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 4.3.0~beta1 to 4.3.0~rc1

#8 Updated by François ARMAND 11 months ago

  • Related to Bug #12026: When a network interface is deleted from a node, it is not removed on the Rudder server added

#9 Updated by François ARMAND 11 months 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.

#10 Updated by François ARMAND 11 months ago

  • Target version changed from 4.3.0~rc1 to 4.1.10

#11 Updated by François ARMAND 11 months ago

  • Status changed from New to In progress

#12 Updated by François ARMAND 11 months 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

#13 Updated by Normation Quality Assistant 10 months ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND

#14 Updated by François ARMAND 10 months ago

  • Status changed from Pending technical review to Pending release

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

#16 Updated by François ARMAND about 1 month ago

  • Has duplicate Bug #6685: Wrong inventory display in the "List nodes" page added

Also available in: Atom PDF