Bug 1425793

Summary: wait4guesttasks checks all tasks within host's recipe instead of guest recipe only
Product: [Retired] Beaker Reporter: Jan Tluka <jtluka>
Component: testsAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Dan Callaghan <dcallagh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: dcallagh, mjia, rjoost
Target Milestone: 24.2Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-02 15:00:44 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 Jan Tluka 2017-02-22 12:56:09 UTC
Description of problem:

I tried following job with wait4guesttasks script:
https://beaker.engineering.redhat.com/jobs/1727979

I ran the script on baremetal:
https://beaker.engineering.redhat.com/recipes/3545012#task51893232

The timestamp shows: 19:25:18

The run-command log states that the task has completed but virtual guest's task 
has start timestamp one minute later: 19:26:49
The guest's task: https://beaker.engineering.redhat.com/recipes/3545013#tasks

Obviously the script finished sooner than the guest's task even started. I tried to rerun this script manually and noticed that it checks the host's recipe instead of guest's one. I have the same task in host and guest and therefore the host's task completion made the script exit.

Version-Release number of selected component (if applicable):
Beaker 24.0
Task version: beaker-core-tasks-distribution-virt-image-install-1.0-6.noarch


How reproducible:
100%

Steps to Reproduce:
1. rerun the job in description
2.
3.

Actual results:
script checks both guest's and host's tasks for completion

Expected results:
script checks guest's task completion only

Additional info:

Comment 1 Jan Tluka 2017-02-22 13:19:10 UTC
Sent a patch for review: https://gerrit.beaker-project.org/#/c/5646/

Comment 5 Dan Callaghan 2017-03-02 15:00:44 UTC
/distribution/virt/install 4.0-93 and /distribution/virt/image-install 1.0-7 have been released.