Ask Your Question
0

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

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

vgeorga gravatar image

Hello everyone,

I'm trying to follow the OSA test environment deployment ( https://docs.openstack.org/project-de... ).

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
    :OSA-NODE-2).

I have used the same subnets for management, XVLAN (tunneling) and storage as the Appendix A with fully network connectivity on the management (172.29.236.0/22) and storage (172.29.244.0/22) 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 -> 172.29.236.11] (item={'value': {u'interface': u'eth1', u'bridge': u'br-mgmt', u'netmask': u'255.255.252.0', u'type': u'veth', u'address': u'172.29.238.151'}, '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": "172.29.238.151", "bridge": "br-mgmt", "interface": "eth1", "netmask": "255.255.252.0", "type": "veth"}}, "rc": 1, "start": "2017-02-20 15:06:14.314552", "stderr": "\n# Execution example: lxc-veth-wiring.sh 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

Comments

@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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 452 times

Last updated: Mar 24 '17