Bug 2053003
| Summary: | [MTV] Plan execution is stuck on hooks | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Migration Toolkit for Virtualization | Reporter: | Igor Braginsky <ibragins> | ||||
| Component: | General | Assignee: | Marek Aufart <maufart> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Igor Braginsky <ibragins> | ||||
| Severity: | high | Docs Contact: | Richard Hoch <rhoch> | ||||
| Priority: | high | ||||||
| Version: | 2.3.0 | CC: | istein, jortel, maufart | ||||
| Target Milestone: | --- | Keywords: | Regression | ||||
| Target Release: | 2.3.0 | ||||||
| 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: | 2022-04-04 18:03:45 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: | |||||||
| Attachments: |
|
||||||
Development note, the error in job's created pod is:
$ oc logs pods/plan1hook-vm-3696-prehook-m--1-qfn7n -n openshift-mtv -f
usage: ansible-runner [-h] [--version] [--debug] [--logfile LOGFILE]
[-b BINARY] [-i IDENT]
[--rotate-artifacts ROTATE_ARTIFACTS]
[--artifact-dir ARTIFACT_DIR]
[--project-dir PROJECT_DIR] [--inventory INVENTORY] [-j]
[--omit-event-data] [--only-failed-event-data] [-q] [-v]
{run,start,stop,is-alive,transmit,worker,process} ...
ansible-runner: error: argument command: invalid choice: '/tmp/hook/playbook.yml' (choose from 'run', 'start', 'stop', 'is-alive', 'transmit', 'worker', 'process')
The hook running in MTV has not changed. The regression must have been introduced by an update to the quay.io/konveyor/hook-runner:latest image updated 16 days ago. Fixed in MTV-2.3.0-32 Index image v4.9: iib:178078 Index image v4.10: iib:178080 Validated on MTV 2.3.0-32, pre-hook passed normally. Moving to verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (MTV 2.3.0 images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2022:1183 |
Created attachment 1860343 [details] Logs of plan Description of problem:Plan execution is stuck on hooks, both pre-hook and post-hook Version-Release number of selected component (if applicable): MTV 2.3.0-24 How reproducible: 100% Steps to Reproduce: 1. Create a new plan 2. Add a hook on respective step 3. Run the plan Actual results: Plan is stuck on pre-hook or post-hook depending on which of them was configured Expected results: Plan succeeds and hooks are performed Additional info: Example hook was tried that worked before: ``` --- - name: Main hosts: localhost tasks: - name: Load Plan include_vars: file: plan.yml name: plan - name: Load Workload include_vars: file: workload.yml name: workload ```