Container re-create: "No file was found when using with_first_found."

Bug #1711373 reported by Eos
This bug report is a duplicate of:  Bug #1709631: Docs: tips and tricks. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

Following the docs:
https://docs.openstack.org/openstack-ansible/latest/admin/maintenance-tasks/containers.html#destroy-and-recreate-containers

I've destroyed few containers with i.e.:
# openstack-ansible lxc-containers-destroy.yml --limit hq01_neutron_agents_container-4aad9786

Than I wanted to create it and got:
--------------------------------------------------------------------------------------------------
# openstack-ansible lxc-containers-create.yml --limit hq01_neutron_agents_container-4aad9786
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "

PLAY [Create container(s)] *****************************************************

TASK [lxc_container_create : Ansible version and LXC backing store check] ******
Thursday 17 August 2017 14:49:34 +0200 (0:00:00.263) 0:00:00.263 *******

TASK [lxc_container_create : Kernel version and LXC backing store check] *******
Thursday 17 August 2017 14:49:34 +0200 (0:00:00.008) 0:00:00.272 *******

TASK [lxc_container_create : Gather variables for each operating system] *******
Thursday 17 August 2017 14:49:34 +0200 (0:00:00.008) 0:00:00.280 *******
fatal: [hq01_neutron_agents_container-4aad9786]: FAILED! => {"failed": true, "msg": "No file was found when using with_first_found. Use the 'skip: true' option to allow this task to be skipped if no files are found"}

NO MORE HOSTS LEFT *************************************************************

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
hq01_neutron_agents_container-4aad9786 : ok=0 changed=0 unreachable=0 failed=1

Thursday 17 August 2017 14:49:35 +0200 (0:00:00.521) 0:00:00.802 *******
===============================================================================
lxc_container_create : Gather variables for each operating system ------- 0.52s
lxc_container_create : Ansible version and LXC backing store check ------ 0.01s
lxc_container_create : Kernel version and LXC backing store check ------- 0.01s
--------------------------------------------------------------------------------------------------

I got it running with:
# openstack-ansible lxc-containers-create.yml --limit hq01:hq01_neutron_agents_container-4aad9786

Maybe it should be reflected in the docs or fixed in the sources.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.