Bug 965917

Summary: /distribution/virt/start fails when optional repo is not present
Product: [Retired] Beaker Reporter: Raymond Mancy <rmancy>
Component: testsAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.12CC: jburke, qwan, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-21 14:14:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Raymond Mancy 2013-05-22 03:20:24 UTC
Description of problem:

/distribution/virt/start fails when there is no optional repo available

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

virt/start: 2.0-4
virt/install: 4.0-47

How reproducible:

Always

Steps to Reproduce:
1. Start a host/guest recipe with optional repos disabled
2.
3.

Actual results:

/distribution/virt/install WARNs, then /distribution/virt/start FAILS

Expected results:

Both pass

Additional info:

virt/install will warn if Xvfb is not available. No remedial action is taken though to rectify this, and the recipe task will install in the background and the following task (often virt/start) will assume that the guest is ready to be started. This is the same if we try to connect to the console and it fails.

We should either FAIL in the above scenarios, or somehow ensure that the recipe task is not completed until the guest has completed installing

Comment 1 Nick Coghlan 2013-05-22 03:40:04 UTC
A good starting point might be to open source the /distribution/virt helper tasks and add them to the Beaker repo...

Comment 2 Gurhan Ozen 2013-05-23 19:45:51 UTC
(In reply to Raymond Mancy from comment #0)
> Additional info:
> 
> virt/install will warn if Xvfb is not available. No remedial action is taken
> though to rectify this, and the recipe task will install in the background
> and the following task (often virt/start) will assume that the guest is
> ready to be started. This is the same if we try to connect to the console
> and it fails.
> 
> We should either FAIL in the above scenarios, or somehow ensure that the
> recipe task is not completed until the guest has completed installing

The guest install doesn't fail? It should fail if it's not able to install? 

The WARN is given out as information, there should also be a FAIL result submitted. 

Also I am not sure what to do to rectify it. Especially in this case, Xvfb is needed for the graphical installations, for example for paravirt guests it's not needed. I can have the test abort the recipe, but that would probably be stepping out of the boundaries, no?