Bug 1136144 - recipe with <hostRequires force=""/> is dispatched to OpenStack
Summary: recipe with <hostRequires force=""/> is dispatched to OpenStack
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.18.1
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-02 03:18 UTC by xuezhi ma
Modified: 2018-02-06 00:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-12 07:36:26 UTC
Embargoed:


Attachments (Terms of Use)

Description xuezhi ma 2014-09-02 03:18:06 UTC
Description of problem:
I set force in <hostRequires> for testing broken system, but it does not work.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Choose a broken system.
2. Submit a job with the broken or manual system like
<hostRequires force="$brokensystem"/>
3. Check the job.

Actual results:
Job can *not* run with the broken or manual system.

Expected results:
Job can be run on the broken or manual system


Additional info:

Comment 1 xuezhi ma 2014-09-02 03:28:18 UTC
fore in <hostRequires> work well if I delete my openstack credentials in beaker.

Comment 2 Dan Callaghan 2014-09-02 03:37:49 UTC
So the bug is that <hostRequires force="$FQDN"/> should use $FQDN, but if OpenStack is enabled and the user has supplied credentials then Beaker will send the recipe to OpenStack instead of using the named system.

We are just missing a check for the 'force' attribute in XmlHost.virtualisable().

Comment 3 Dan Callaghan 2014-09-02 03:46:05 UTC
Looks like this has been broken since 0.17 introduced force="".

Comment 4 Dan Callaghan 2014-09-02 03:48:54 UTC
On Gerrit: http://gerrit.beaker-project.org/3304

Comment 5 Dan Callaghan 2014-09-02 08:14:36 UTC
This should probably go into 0.18.1, no reason to rush it into 0.18.

Comment 8 Dan Callaghan 2014-09-12 07:36:26 UTC
Beaker 0.18.1 has been released.


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