[Openstack-operators] [openstack-ansible]: Container errors on task "lxc_container_create : Drop container network file (interfaces)"

andres sanchez ramos andressanchezramos at hotmail.com
Fri Oct 13 10:29:44 UTC 2017

Hello guys,

I am trying to deploy a lab Openstack environment using ansible in order to get acquainted with this tool. Actually i am stuck with an error i am not being able to resolve. It happens on the following task:

TASK [lxc_container_create : Drop container network file (interfaces)] *********

task path: /etc/ansible/roles/lxc_container_create/tasks/container_create.yml:262

The console prints out this error for each one of the containers:

container_name: "infra1_cinder_scheduler_container-8054b2be"
physical_host: "infra1"
Container confirmed
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 98, in run
    item_results = self._run_loop(items)
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 290, in _run_loop
    res = self._execute(variables=task_vars)
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 511, in _execute
    result = self._handler.run(task_vars=variables)
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/plugins/action/template.py", line 149, in run
    tmp = self._make_tmp_path(remote_user)
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 224, in _make_tmp_path
    tmpdir =  self._remote_expand_user(C.DEFAULT_REMOTE_TMP, sudoable=False)
  File "/opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/plugins/action/__init__.py", line 506, in _remote_expand_user
    initial_fragment = data['stdout'].strip().splitlines()[-1]
IndexError: list index out of range

fatal: [infra1_nova_scheduler_container-92a94180]: FAILED! => {
    "failed": true,
    "msg": "Unexpected failure during module execution.",
    "stdout": ""

Regarding my setup i have one infrastructure node and one compute node. I am attaching the interface config for each node and the openstack_user_config.yml file so you get a complete picture of my setup. I would deeply appreciate any help or any pointers that might help me troubleshoot this!

I think the only relevant change i make regarding the instructions is my management network which is since I already have this set up for other equipment.

Enviado desde Outlook<http://aka.ms/weboutlook>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20171013/b1398d3f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Compute interfaces
Type: application/octet-stream
Size: 1919 bytes
Desc: Compute interfaces
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20171013/b1398d3f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openstack_user_config.yml
Type: application/x-yaml
Size: 28220 bytes
Desc: openstack_user_config.yml
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20171013/b1398d3f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Infra interfaces
Type: application/octet-stream
Size: 1635 bytes
Desc: Infra interfaces
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20171013/b1398d3f/attachment-0001.obj>

More information about the OpenStack-operators mailing list