Hide Forgot
Description of problem: Running certain tests I need to avoid the selection of a host with specific key/value. However, there is an issue when there are multiple entries for the key/value, as the undersired host can still be chosen. For instance I need to avoid the selection of a system that has "cciss" key/value. I have tried using both of the following: ------------------------------------------------------------------ <hostRequires> <and> <key_value key="BOOTDISK" op="!=" value="cciss"/> </and> </hostRequires> -and- <hostRequires> <and> <key_value key="MODULE" op="!=" value="cciss"/> </and> </hostRequires> ------------------------------------------------------------------ Issue is when the system has multplie key/vales of BOOTDISK or MODULE, an undesired system can still be selected. How reproducible: See job example in next comment. Actual results: System with undesired key/value is selected. Expected results: System with undesired key/value omitted. Additional info: See next comment for details.
This is how SQL joins work: - op="=" -- there exists a node with value equall to the value attribute - op="!=" -- there exists a node with value not equall to the value attribte We need a way to request a LEFT OUTER JOINs to specify there is no node (not) matching criteria, e.g. <not><key_value .../></not> Is there a better way?
*** Bug 688906 has been marked as a duplicate of this bug. ***