Description of problem:
I tried following job with wait4guesttasks script:
I ran the script on baremetal:
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):
Task version: beaker-core-tasks-distribution-virt-image-install-1.0-6.noarch
Steps to Reproduce:
1. rerun the job in description
script checks both guest's and host's tasks for completion
script checks guest's task completion only
Sent a patch for review: https://gerrit.beaker-project.org/#/c/5646/
/distribution/virt/install 4.0-93 and /distribution/virt/image-install 1.0-7 have been released.