Bug 1608842 - provision call failed with an ambiguous error
Summary: provision call failed with an ambiguous error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 1.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Adam Litke
QA Contact: Qingyu Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 11:44 UTC by Vatsal Parekh
Modified: 2018-10-11 08:55 UTC (History)
5 users (show)

Fixed In Version: 1.1-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 20:15:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vatsal Parekh 2018-07-26 11:44:25 UTC
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:

Comment 1 Vatsal Parekh 2018-07-26 12:01:24 UTC
(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:

Comment 2 Adam Litke 2018-07-27 02:16:51 UTC
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?

Comment 3 Ryan Hallisey 2018-07-27 12:36:12 UTC
I updated the rpm to install the roles in /etc/ansible/roles and rebuilt both the apb and rpm.

Comment 4 Vatsal Parekh 2018-08-02 12:38:42 UTC
I tested this again, and still see this error coming

Ryan/Adam, which version fixes this issue?

Comment 5 Ryan Hallisey 2018-08-02 12:41:12 UTC
docker pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/cnv11-tech-preview/import-vm-apb:1.1

Comment 7 Vatsal Parekh 2018-08-07 11:28:05 UTC
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
```

Comment 9 Adam Litke 2018-08-08 15:04:20 UTC
Upstream PR: https://github.com/ansibleplaybookbundle/import-vm-apb/pull/56

Comment 15 Vatsal Parekh 2018-09-03 11:11:36 UTC
Can be closed


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