#134 Problem with loading /usr/share/ansible/inventory/standard-inventory-qcow2, syntax error.
Closed: INVALID Opened by phracek.

In this GitHub repo (https://github.com/container-images/tools/pull/5), for some reason, I have these warnings.
Because of that problem I am not able to run QCOW2 image and ansible-playbook does not work properly.

Can you please fix it? If you need more traces, let me know.

Version of standard-test-roles: standard-test-roles-2.8-1.fc27.noarch

make -C tests/ check-in-vm IMAGE_NAME=docker.io/modularitycontainers/tools ANSIBLE_EXTRA_ARGS=-vv
make[1]: Entering directory '/home/phracek/work/container-images/tools/tests'
TEST_SUBJECTS=../Fedora-Cloud-Base-27-1.6.x86_64.qcow2 ansible-playbook -vv -e ansible_python_interpreter=/usr/bin/python3 -e subject=docker.io/modularitycontainers/tools -e ansible_ssh_private_key_file=/home/phracek/.ssh/id_rsa.pub -i /usr/share/ansible/inventory/standard-inventory-qcow2 -e setup=true -e vm_image= ./in-vm.yml
ansible-playbook 2.4.3.0
  config file = /home/phracek/work/container-images/tools/tests/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible-playbook
  python version = 2.7.14 (default, Feb 17 2018, 10:42:17) [GCC 7.3.1 20180130 (Red Hat 7.3.1-2)]
Using /home/phracek/work/container-images/tools/tests/ansible.cfg as config file
Launching virtual machine for ../Fedora-Cloud-Base-27-1.6.x86_64.qcow2
standard-inventory-qcow2: could not access launched qcow2 image: ../Fedora-Cloud-Base-27-1.6.x86_64.qcow2
 [WARNING]:  * Failed to parse /usr/share/ansible/inventory/standard-inventory-qcow2 with script plugin: Inventory script (/usr/share/ansible/inventory/standard-inventory-qcow2) had an
execution error:
 [WARNING]:  * Failed to parse /usr/share/ansible/inventory/standard-inventory-qcow2 with yaml plugin: Syntax Error while loading YAML.   The error appears to have been in
'/usr/share/ansible/inventory/standard-inventory-qcow2': line 49, column 6, but may be elsewhere in the file depending on the exact syntax problem.  The offending line appears to be:
USER_DATA = """#cloud-config users:      ^ here  exception type: <class 'yaml.scanner.ScannerError'> exception: mapping values are not allowed in this context   in "<unicode string>", line
49, column 6
 [WARNING]:  * Failed to parse /usr/share/ansible/inventory/standard-inventory-qcow2 with ini plugin: /usr/share/ansible/inventory/standard-inventory-qcow2:3: Expected key=value host
variable assignment, got: argparse
 [WARNING]: Unable to parse /usr/share/ansible/inventory/standard-inventory-qcow2 as an inventory source
 [WARNING]: No inventory was parsed, only implicit localhost is available
 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
statically imported: /etc/ansible/roles/str-common/tasks/inspect.yml
statically imported: /etc/ansible/roles/str-common/tasks/trunner.yml
statically imported: /etc/ansible/roles/str-common/tasks/inspect.yml
statically imported: /etc/ansible/roles/str-common/tasks/pkgs.yml

After reading through once more, it seems that ansible fails to parse it as an executable inventory script.

Launching virtual machine for ../Fedora-Cloud-Base-27-1.6.x86_64.qcow2
standard-inventory-qcow2: could not access launched qcow2 image: ../Fedora-Cloud-Base-27-1.6.x86_64.qcow2

Is the qcow image present on that path?

Image is present but empty. download command is wrong.

Metadata Update from @phracek:
- Issue close_status updated to: INVALID
- Issue status updated to: Closed (was: Open)

Metadata