Bug 1608842
| Summary: | provision call failed with an ambiguous error | ||
|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Vatsal Parekh <vparekh> |
| Component: | Storage | Assignee: | Adam Litke <alitke> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Qingyu Wang <nobody+qwang> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.1 | CC: | alitke, fsimonce, ncredi, nobody+qwang, rhallise |
| Target Milestone: | --- | Keywords: | TestBlocker |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 1.1-3 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-09-04 20:15:53 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: | |||
(In reply to Vatsal Parekh from comment #0) > Description of problem: > importing any vm image using the import-vm-apb gives `provision call failed > with an ambiguous error` even when there's no VM provisioned with the same > name > > The logs of the pod shows > ``` > [root@cnv-executor-vatsal-ds0-master1 ~]# oc logs > apb-fba43d1b-59d9-4548-9f4e-8bc027455ba7 -n > localregistry-import-vm-apb-prov-bxg22 > ERROR! the role 'import-from-url' was not found in > /opt/apb/actions/roles:/etc/ansible/roles:/opt/ansible/roles:/opt/apb/actions > > The error appears to have been in '/opt/apb/actions/provision.yml': line 9, > column 5, but may > be elsewhere in the file depending on the exact syntax problem. > > The offending line appears to be: > > - role: ansibleplaybookbundle.asb-modules > - role: import-from-url > ^ here > ``` > > Version-Release number of selected component (if applicable): cnv1.1 on ocp3.10 import-vm-apb:0.6.2-1 > How reproducible: 100% > Steps to Reproduce: 1.Provision any service with importing a vm from a image url 2. 3. > > Actual results: Fails with the errors shown above > Expected results: Should import the VM from the image link given > Additional info: I was able to reproduce locally. Looking at the image located at: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/cnv11-tech-preview/import-vm-apb, the import-from-url role is located at: /opt/ansible/roles/import-vm-apb/ which does not appear in the list of expected role locations. Ryan I believe you worked on something similar for the kubevirt-apb. Does this ring a bell? I updated the rpm to install the roles in /etc/ansible/roles and rebuilt both the apb and rpm. I tested this again, and still see this error coming Ryan/Adam, which version fixes this issue? docker pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/cnv11-tech-preview/import-vm-apb:1.1 I tested this on 1.1 build, I still see the same error
```
[root@cnv-executor-vatsal-ds-master1 ~]# oc logs -n localregistry-import-vm-apb-prov-wxkxj apb-44111ee9-0988-40a4-a7ea-cc3ae9762b9b
ERROR! the role 'import-from-url' was not found in /opt/apb/actions/roles:/etc/ansible/roles:/opt/ansible/roles:/opt/apb/actions
The error appears to have been in '/opt/apb/actions/provision.yml': line 9, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- role: ansibleplaybookbundle.asb-modules
- role: import-from-url
^ here
```
and image used was
```
172.30.161.205:5000/openshift/import-vm-apb 1.1 c704f3c13564 4 days ago 453 MB
```
Can be closed |
Description of problem: importing any vm image using the import-vm-apb gives `provision call failed with an ambiguous error` even when there's no VM provisioned with the same name The logs of the pod shows ``` [root@cnv-executor-vatsal-ds0-master1 ~]# oc logs apb-fba43d1b-59d9-4548-9f4e-8bc027455ba7 -n localregistry-import-vm-apb-prov-bxg22 ERROR! the role 'import-from-url' was not found in /opt/apb/actions/roles:/etc/ansible/roles:/opt/ansible/roles:/opt/apb/actions The error appears to have been in '/opt/apb/actions/provision.yml': line 9, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - role: ansibleplaybookbundle.asb-modules - role: import-from-url ^ here ``` Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: