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

Jean-Philippe Evrard jean-philippe at evrard.me
Mon Oct 16 11:17:16 UTC 2017


On 13 October 2017 at 11:29, andres sanchez ramos
<andressanchezramos at hotmail.com> wrote:
> 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
> <192.168.100.30> ESTABLISH SSH CONNECTION FOR USER: lab232
> 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 192.168.100.0./24 since I already have this set
> up for other equipment.
>
>
>
>
> Enviado desde Outlook
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>

Sorry, I forgot to reply all.

With the information you gave me, I think the user could be the cause.
Our connection plugin doesn't seem to
work with the sudo trick you did.

May I suggest you to file a bug to list what you did in practice,
explain this issue, and you'd expect?

In the meantime, could you try running as root on your destination
node? And maybe later on your deploy node too, to see the results?

Best regards,
Jean-Philippe Evrard (evrardjp)



More information about the OpenStack-operators mailing list