Status: New
Owner: ----
CC: [email protected]
Labels: Type-Defect Milestone-Release2.12 Priority-Medium

New issue 780 by [email protected]: Composed filter does not yield correct results
http://code.google.com/p/ganeti/issues/detail?id=780

What steps will reproduce the problem?
1. When I issue this query in the code with:

candidate_filter = ["|", ["=", "role", "M"], ["=", "role", "C"]]
result_candidates = cl.Query(constants.QR_NODE, ["uuid"], candidate_filter)

I only receive the master node as a result, but none of the master candidates. It seems like that second part of the filter is ignored.

I tried the two clauses separately and get the expected results with these filters:
candidate_filter = ["=", "role", "C"]
master_filter = ["=", "role", "M"]

On the commandline on the other hand, everything works like expected:

gnt-node list -o uuid,role -F 'role == "M" or role == "C"'
UUID                                 Role
619dddbe-37dc-42d7-bb72-376c36b2b74e M
aba22660-d18a-4d59-bd56-76b953719c4c C
42da7d68-4174-4f3a-92b4-70950982c891 C


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to