Project

General

Profile

Actions

Bug #3910

closed

Two softwares criteria matching anything

Added by Anonymous almost 11 years ago. Updated over 10 years ago.

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

Description

Hello,

I have a nodes with mysql-server and jboss4 packet installed.
I want to create a groups with all the nodes wich have mysql-server and jboss4 packets.
But with the 2 software name criteria (mysql-server and jboss4) and the operand AND , the nodes not apparaid.
Why ?

The name of packets and the name in the inventory are the same.

Actions #1

Updated by Nicolas PERRON almost 11 years ago

  • Subject changed from [2.7.1] Two softwares criteria matching anything to Two softwares criteria matching anything
  • Category set to Web - Nodes & inventories
  • Status changed from New to 8
  • Assignee set to François ARMAND
  • Target version set to 2.4.9

Thanks for reporting this bug. I'm able to reproduce it on Rudder 2.4.

François could you look into this issue please ?

Actions #2

Updated by Anonymous almost 11 years ago

Hi,

I upgrade Rudder to 2.7.2 and the bug is always present.

Actions #3

Updated by François ARMAND over 10 years ago

  • Status changed from 8 to Discussion

Well, I fear it's the expected behaviour. I know that it's not what you think, and actually what you want is the intersting thing, but we can't express it for now.

What the query is actually doing is:

nodes with software named (jboss and mysql). Clearly, I don't think you have such softwares. 

Just to be sure, what you want is "(all nodes with software named jboss) intersection (all nodes with software named mysql-server), i.e:

nodes with ( (software named jboss) and (software named mysql) ).

The problem of what you want is that it can be expressed thanks to two subqueries ("get software with nane jboss" and "get software with name mysql"), for each of them find node with such software, and then do the intersection of the set of nodes. And well, we don't support sub-request.

I'm very sorry, perhaps you could form a gang with coredumb and dnss to ask for that feature?

Actions #4

Updated by François ARMAND over 10 years ago

  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/316

Pull request here to explain the problem: https://github.com/Normation/rudder/pull/316

Actions #5

Updated by Anonymous over 10 years ago

For confirmation :

If the query is actually doing is : nodes with software named (jboss and mysql)

Then if i have one node with jboss AND mysql installed

Then this node is selected ?

Thank you

Actions #6

Updated by François ARMAND over 10 years ago

No, with that request, you ask for node which have ONE software with both "jboss" and "mysql" for name - that should not happen.

But it allows to search for Apache in version 2.2.xxx (else, you would have all nodes with apache 1.3 (yes, I'm old) and SomeSoft v2.2.xxx).

Currently, I don't know any way to do what you want.

Actions #7

Updated by Anonymous over 10 years ago

Ok , i understand.

Thank for your time !

Actions #8

Updated by François ARMAND over 10 years ago

Well, thanks for your question, and sorry for the answer :/

Actions #9

Updated by Matthieu CERDA over 10 years ago

bump

Actions #10

Updated by Nicolas PERRON over 10 years ago

  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Target version changed from 2.4.9 to 2.4.10

What's the conclusion for this issue ? Rejected ? to do in a short-term/long-terme future ?

Actions #11

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.4.10 to 2.4.11
Actions #12

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.4.11 to 2.4.12
Actions #13

Updated by François ARMAND over 10 years ago

  • Status changed from Discussion to Rejected

Yes, rejected as "expected behaviour". And we could thing to a way to improve search.

Actions

Also available in: Atom PDF