Bug #14430
closedIncoherent state when accepting a Node, where node is accepted but now available in UI (error when creating Node entry)
Description
We face that case:
- node inventory in pending,
- user accept nodes,
- rudder node entry can't be created because "node" entry has an unknow attribute (ldap schema not up to date)
- exception is ignored, node is accepted
- node doesn't really exists.
Exact exception was:
[2019-03-07 15:57:04] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to add entry 'nodeId=78b15f0a-37cf-4f54-a91a-213d35d9673d,ou=Nodes,cn=rudder-configuration'. Reported exception was: state: attribute type undefined com.unboundid.ldap.sdk.LDAPException: state: attribute type undefined at com.unboundid.ldap.sdk.LDAPConnection.add(LDAPConnection.java:2099) at com.normation.ldap.sdk.RwLDAPConnection.$anonfun$addAction$3(LDAPConnection.scala:522) at scala.util.control.Exception$Catch.apply(Exception.scala:224) at com.normation.ldap.sdk.RwLDAPConnection.$anonfun$addAction$1(LDAPConnection.scala:522) at com.normation.ldap.sdk.RwLDAPConnection.applyMod(LDAPConnection.scala:487) at com.normation.ldap.sdk.RwLDAPConnection.$anonfun$applyAdd$2(LDAPConnection.scala:533) at com.normation.ldap.sdk.RwLDAPConnection.save(LDAPConnection.scala:591) ... [2019-03-07 15:57:04] INFO hooks - Executing post-node-acceptance hooks for node with id '78b15f0a-37cf-4f54-a91a-213d35d9673d' [2019-03-07 15:57:04] INFO nodes.pending - New node accepted and managed by Rudder: 78b15f0a-37cf-4f54-a91a-213d35d9673d [2019-03-07 15:57:04] INFO hooks - Executing post-node-acceptance hooks for node with id '78b15f0a-37cf-4f54-a91a-213d35d9673d' ...
We should really check that node entry was created.
Once we are in that state, a normal user (one who doesn't speak LDAP) can't really do anything anymore.
Files
Updated by François ARMAND over 5 years ago
- Category set to Web - Nodes & inventories
- Assignee set to François ARMAND
Updated by François ARMAND over 5 years ago
- Status changed from New to In progress
Updated by François ARMAND over 5 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/rudder/pull/2165
Updated by François ARMAND over 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|e0a7c6c020676fda0802befbece62a46b7a9a4b1.
Updated by François ARMAND over 5 years ago
- File 2019-03-30_22.21.32-Rudder_-_New_Nodes_Management.png 2019-03-30_22.21.32-Rudder_-_New_Nodes_Management.png added
We now have the error in the screenshot (I removed the "state" attribute from schema before accepting the node, which may have been somehow the situation in the first bug)
Updated by Vincent MEMBRÉ over 5 years ago
- Subject changed from We can successfully accept a node even if Node entry wasn't created to Incoherent state when accepting a Node, where node is accepted but now available in UI (error when creating Node entry)
- Priority changed from 70 to 69
Updated by Vincent MEMBRÉ over 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.11 and 5.0.9 which were released today.