Bug 886816 - <hypervisor/> with op="!=" in hostRequires does not include bare metal systems
Summary: <hypervisor/> with op="!=" in hostRequires does not include bare metal systems
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.15.4
Assignee: Dan Callaghan
QA Contact:
URL:
Whiteboard: Misc
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-13 09:05 UTC by Marian Ganisin
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-18 01:38:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Ganisin 2012-12-13 09:05:24 UTC
Description of problem:

This line in hostRequires of xml recipe:

<hypervisor op="!=" value="KVM"/>

selects just all other hypervisors. Bare metal machines are not included.

Actual results:

Just machines with hypervisor, but the specified are selected. machines without hypervisor (bare metal) are not included.

Expected results:

Filter out just machines as defined, include all other hypervisors as well as bare metal.

Comment 1 Dan Callaghan 2012-12-13 23:16:14 UTC
An unfortunate result of SQL's NULL comparison rules (NULL != 'KVM' is NULL, not 1).

Comment 3 Dan Callaghan 2014-02-05 03:13:27 UTC
On Gerrit: http://gerrit.beaker-project.org/2776

Comment 6 Dan Callaghan 2014-02-18 01:38:55 UTC
Beaker 0.15.4 has been released.


Note You need to log in before you can comment on or make changes to this bug.