Bug #12338
closed"Error when trying to find dependencies for that group" when accepting a node
Description
- a group "my group linux" Rudder ID "be995359-2194-4389-9388-98d16aa3ea96", with all linux node (excluding policy server)
- a group "dependant group", Rudder ID "046bac3d-0ef0-4a0c-a767-5f0099729113", with node that are in group id "be995359-2194-4389-9388-98d16aa3ea96"
A directive MOTD, a Rule "dependant rule", Rudder ID "616660fe-0d2a-4d77-a268-fab14764ed3c", with directive MOTD and target "dependant group"
On accept new nodes page, if I click on the magnifying glass, I have the following error message
"Error when trying to find dependencies for that group"
Logs say
[2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] Start search for { returnType:'NodeAndPolicyServerReturnType' with 'And' criteria [node.agentName eq cfengine] } [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |- (final query) LDAPObjectType(ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration,One,LDAPObjectTypeFilter((objectClass=*)),Some((|(agentName=*"agentType":"cfengine-community"*)(agentName=*"agentType":"community"*)(agentName=community)(agentName=*"agentType":"cfengine-nova"*)(agentName=*"agentType":"nova"*)(agentName=nova))),DNJoin,Set()) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- SearchRequest(baseDN='ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', scope=ONE, deref=NEVER, sizeLimit=0, timeLimit=0, filter='(&(objectClass=*)(|(agentName=*"agentType":"cfengine-community"*)(agentName=*"agentType":"community"*)(agentName=community)(agentName=*"agentType":"cfengine-nova"*)(agentName=*"agentType":"nova"*)(agentName=nova)))', attrs={1.1}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after ldap search request 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after post-processing: 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- results are: [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=1221422b-4576-4f53-b8a9-b2184063a00b,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'1221422b-4576-4f53-b8a9-b2184063a00b'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=ada7da88-1fe3-4f2f-aa7f-818e29163ccf,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'ada7da88-1fe3-4f2f-aa7f-818e29163ccf'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] `-> 1 results [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] Start search for { returnType:'NodeAndPolicyServerReturnType' with 'And' criteria [node.agentName eq cfengine ; node.policyServerId eq root] } [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |- (final query) LDAPObjectType(ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration,One,LDAPObjectTypeFilter((objectClass=*)),Some((&(|(agentName=*"agentType":"cfengine-community"*)(agentName=*"agentType":"community"*)(agentName=community)(agentName=*"agentType":"cfengine-nova"*)(agentName=*"agentType":"nova"*)(agentName=nova))(policyServerId=root))),DNJoin,Set()) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- SearchRequest(baseDN='ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', scope=ONE, deref=NEVER, sizeLimit=0, timeLimit=0, filter='(&(objectClass=*)(&(|(agentName=*"agentType":"cfengine-community"*)(agentName=*"agentType":"community"*)(agentName=community)(agentName=*"agentType":"cfengine-nova"*)(agentName=*"agentType":"nova"*)(agentName=nova))(policyServerId=root)))', attrs={1.1}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after ldap search request 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after post-processing: 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- results are: [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=1221422b-4576-4f53-b8a9-b2184063a00b,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'1221422b-4576-4f53-b8a9-b2184063a00b'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=ada7da88-1fe3-4f2f-aa7f-818e29163ccf,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'ada7da88-1fe3-4f2f-aa7f-818e29163ccf'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] `-> 1 results [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] Start search for { returnType:'NodeReturnType' with 'And' criteria [node.OS eq Linux] } [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |- (final query) LDAPObjectType(ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration,One,LDAPObjectTypeFilter((objectClass=*)),Some((objectClass=linuxNode)),DNJoin,Set()) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- SearchRequest(baseDN='ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', scope=ONE, deref=NEVER, sizeLimit=0, timeLimit=0, filter='(&(objectClass=*)(objectClass=linuxNode))', attrs={1.1}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after ldap search request 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |---- after post-processing: 2 result(s) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- results are: [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=1221422b-4576-4f53-b8a9-b2184063a00b,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'1221422b-4576-4f53-b8a9-b2184063a00b'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |--- Entry(dn='nodeId=ada7da88-1fe3-4f2f-aa7f-818e29163ccf,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration', attributes={Attribute(name=nodeId, values={'ada7da88-1fe3-4f2f-aa7f-818e29163ccf'})}) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] `-> 1 results [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] Start search for { returnType:'NodeReturnType' with 'And' criteria [] } [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] |- (final query) LDAPObjectType(ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration,One,LDAPObjectTypeFilter((objectClass=*)),None,DNJoin,Set()) [2018-04-03 08:43:13] DEBUG com.normation.rudder.services.queries.InternalLDAPQueryProcessor - [0] `-> error: Failure(No filter (neither standard nor special) for request, can not process!,Empty,Empty) [2018-04-03 08:43:13] ERROR com.normation.rudder.web.components.popup.ExpectedPolicyPopup - Error when trying to find dependencies for that group: Error when building the map of dynamic group to update by node
Updated by Nicolas CHARLES over 6 years ago
If there is no dependant group, then it works as expected
Updated by Nicolas CHARLES over 6 years ago
it doesn't prevent accepting the node though
Updated by Nicolas CHARLES over 6 years ago
Adding a criterai in the dependant group solves the issue
Updated by François ARMAND over 6 years ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND over 6 years ago
- Related to Bug #12060: Incomplete "Rules to be applied" summary when accepting a new nodes when using groups of groups added
Updated by François ARMAND over 6 years ago
OK, the problem is that when dealing with dependant group, the algo remove the criteria for the groups. But we don't check is any criteria remains :)
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 Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/1884
Updated by François ARMAND over 6 years ago
- Related to Bug #12343: LDAP query checker must succeed when criteria is empty added
Updated by François ARMAND over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|14d8067d3ca098b71f5b39372e84182dd6f793a6.
Updated by François ARMAND over 6 years ago
Applied in changeset rudder|9bbb1500a457e3be5c36534eac40f98e0ef91082.
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.0~rc3 which was released today.
- 4.3.0~rc3: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/