Project

General

Profile

Actions

Bug #12041

closed

No Machine Inventory in nodes list while the details are complete

Added by Alexis Mousset almost 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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

Related issues 2 (0 open2 closed)

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

Updated by Alexis Mousset almost 7 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
Actions #2

Updated by Alexis Mousset almost 7 years ago

The problem is fixed by a "Clear Cache"

Actions #3

Updated by François ARMAND almost 7 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.

Actions #4

Updated by Nicolas CHARLES almost 7 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 !

Actions #5

Updated by Nicolas CHARLES almost 7 years ago

attaching generated inventory

Actions #6

Updated by Nicolas CHARLES almost 7 years ago

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

Actions #7

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.3.0~beta1 to 4.3.0~rc1
Actions #8

Updated by François ARMAND almost 7 years ago

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

Updated by François ARMAND almost 7 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.

Actions #10

Updated by François ARMAND almost 7 years ago

  • Target version changed from 4.3.0~rc1 to 4.1.10
Actions #11

Updated by François ARMAND almost 7 years ago

  • Status changed from New to In progress
Actions #12

Updated by François ARMAND almost 7 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
Actions #13

Updated by Rudder Quality Assistant almost 7 years ago

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

Updated by François ARMAND almost 7 years ago

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

Updated by Vincent MEMBRÉ almost 7 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.

Actions #16

Updated by François ARMAND about 6 years ago

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

Also available in: Atom PDF