Help!!! Openstack-Ansible error on container eth1 interfaces

asked 2017-02-22 02:06:19 -0500

vgeorga gravatar image

Hello everyone,

I'm trying to follow the OSA test environment deployment ( ).

I'm using 3 physical machines (exactly the way the Appendix A guide suggests)

  • 1 as infrastructure + deployment host (hostname : localhost),
  • 1 as storage (hostname : OSA-NODE-1)

  • and 1 as compute (hostname

I have used the same subnets for management, XVLAN (tunneling) and storage as the Appendix A with fully network connectivity on the management ( and storage ( networks. Additionally, all 3 machines are connected to the same switch so they are on the same L2 network.

During the execution of this script

openstack-ansible setup-hosts.yml

I got numerous failed reports on my ansible.log file that are similar to the one below.

 failed: [localhost_horizon_container-9dca9901 ->] (item={'value': {u'interface': u'eth1', u'bridge': u'br-mgmt', u'netmask': u'', u'type': u'veth', u'address': u''}, 'key': u'container_address'}) => {"changed": false, "cmd": "/usr/local/bin/lxc-veth-wiring \"localhost_horizon_container-9dca9901\" \"9dca9901_eth1\" \"eth1\" \"br-mgmt\"", "delta": "0:00:00.351877", "end": "2017-02-20 15:06:14.666429", "failed": true, "failed_when_result": true, "item": {"key": "container_address", "value": {"address": "", "bridge": "br-mgmt", "interface": "eth1", "netmask": "", "type": "veth"}}, "rc": 1, "start": "2017-02-20 15:06:14.314552", "stderr": "\n# Execution example: testing VETHTEST eth1 br-mgmt\n\n# CLI variables\nCONTAINER_NAME=\"${1}\"\nVETH=\"${2}\"\nINTERFACE=\"${3}\"\nBRIDGE=\"${4}\"\nVETH_PEER=\"$(openssl rand -hex 4)\"\nopenssl rand -hex 4\n\n# PID of running container\nPID=\"$(lxc-info -pHn ${CONTAINER_NAME})\"\nlxc-info -pHn ${CONTAINER_NAME}\n\n# Exit 0 means no change, exit 3 is changed, any other exit is fail.\nEXIT_CODE=0\n\nif ! ip a l \"${VETH}\";then\n  ip link add name \"${VETH}\" type veth peer name \"${VETH_PEER}\"\n  ip link set dev \"${VETH}\" up\n  EXIT=3\nelse\n  ip link set dev \"${VETH}\" up\nfi\nDevice \"9dca9901_eth1\" does not exist.\n\nif ip a l \"${VETH_PEER}\";then\n  ip link set dev \"${VETH_PEER}\" up\n  ip link set dev \"${VETH_PEER}\" netns \"${PID}\" name \"${INTERFACE}\"\n  EXIT=3\nfi\n\nif ! brctl show \"${BRIDGE}\" | grep -q \"${VETH}\"; then\n  brctl addif \"${BRIDGE}\" \"${VETH}\"\n  EXIT=3\nfi\n\nlxc-attach --name \"${CONTAINER_NAME}\" <<EOC\n  ip link set dev \"${INTERFACE}\" up\n  ifdown \"${INTERFACE}\"\n  ifup \"${INTERFACE}\"\nEOC\nUnknown interface eth1\nUnknown interface eth1", "stdout": "54: b1debbc8@9dca9901_eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000\n    link/ether 12:bd:bc:2c:09:ac brd ff:ff:ff:ff:ff:ff", "stdout_lines": ["54: b1debbc8@9dca9901_eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000", "    link/ether 12:bd:bc:2c:09:ac brd ff:ff:ff:ff:ff:ff"], "warnings": []}.

What does this error mean? How can I fix it?

Thank you in advance for your time.

edit retag flag offensive close merge delete


@vgeorga: have you been able to solve this problem? I'm having the exact same issue. Checked network config in my openstack_user_config.yml and it looks good to me.

tomri2012 gravatar imagetomri2012 ( 2018-06-18 09:05:42 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-24 13:40:33 -0500

tze gravatar image

Its problem with network config. Make the config correct and run the installation from the scrutch.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-02-22 02:06:19 -0500

Seen: 524 times

Last updated: Mar 24 '17