Project

General

Profile

Bug #12338

"Error when trying to find dependencies for that group" when accepting a node

Added by Nicolas CHARLES 8 months ago. Updated 8 months ago.

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

Description

On a freshly installed Rudder 4.3 rc2, I created:
  1. a group "my group linux" Rudder ID "be995359-2194-4389-9388-98d16aa3ea96", with all linux node (excluding policy server)
  2. 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


Related issues

Related to Rudder - Bug #12060: Incomplete "Rules to be applied" summary when accepting a new nodes when using groups of groupsReleased
Related to Rudder - Bug #12343: LDAP query checker must succeed when criteria is emptyReleased

Associated revisions

Revision 14d8067d (diff)
Added by François ARMAND 8 months ago

Fixes #12338: \"Error when trying to find dependencies for that group\" when accepting a node

Revision 9bbb1500 (diff)
Added by François ARMAND 8 months ago

Fixes #12338: \"Error when trying to find dependencies for that group\" when accepting a node

History

#1 Updated by Nicolas CHARLES 8 months ago

If there is no dependant group, then it works as expected

#2 Updated by Nicolas CHARLES 8 months ago

it doesn't prevent accepting the node though

#3 Updated by Nicolas CHARLES 8 months ago

Adding a criterai in the dependant group solves the issue

#4 Updated by François ARMAND 8 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND

#5 Updated by François ARMAND 8 months ago

  • Related to Bug #12060: Incomplete "Rules to be applied" summary when accepting a new nodes when using groups of groups added

#6 Updated by François ARMAND 8 months 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 :)

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

#8 Updated by François ARMAND 8 months ago

  • Related to Bug #12343: LDAP query checker must succeed when criteria is empty added

#9 Updated by François ARMAND 8 months ago

  • Status changed from Pending technical review to Pending release

#11 Updated by Vincent MEMBRÉ 8 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc3 which was released today.

Also available in: Atom PDF