Bug 1425793 - wait4guesttasks checks all tasks within host's recipe instead of guest recipe only
Summary: wait4guesttasks checks all tasks within host's recipe instead of guest recipe...
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Community
Component: tests
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: 24.2
Assignee: Dan Callaghan
QA Contact: Dan Callaghan
URL:
Whiteboard:
Keywords: Patch
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-22 12:56 UTC by Jan Tluka
Modified: 2017-03-02 15:00 UTC (History)
3 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2017-03-02 15:00:44 UTC


Attachments (Terms of Use)

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.


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