-
-
Save sc68cal/385c93e8ab44d55deb7b70cc3fe1cc5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider_networks: | |
- network: | |
container_bridge: "br-mgmt" | |
container_type: "veth" | |
container_interface: "eth1" | |
ip_from_q: "container" | |
type: "raw" | |
group_binds: | |
- all_containers | |
- hosts | |
is_container_address: true | |
is_ssh_address: true | |
- network: | |
container_bridge: "br-vxlan" | |
container_type: "veth" | |
container_interface: "eth10" | |
ip_from_q: "tunnel" | |
type: "vxlan" | |
range: "1:1000" | |
net_name: "vxlan" | |
group_binds: | |
- neutron_linuxbridge_agent | |
- network: | |
container_bridge: "br-storage" | |
container_type: "veth" | |
container_interface: "eth2" | |
ip_from_q: "storage" | |
type: "raw" | |
group_binds: | |
- glance_api | |
- cinder_api | |
- cinder_volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failed: [network.projwrigley.com_neutron_agents_container-6e529465 -> 10.171.203.36] (item={'key': u'eth12_address', 'value': {u'interface': u'eth12', u'bridge': u'br-vlan', u'netmask': None, u'type': u'veth'}}) => {"changed": false, "cmd": ["/usr/local/bin/lxc-veth-wiring", "network.projwrigley.com_neutron_agents_container-6e529465", "6e529465_eth12", "eth12", "br-vlan"], "delta": "0:00:00.069806", "end": "2017-04-17 10:53:36.148513", "failed": true, "failed_when_result": true, "item": {"key": "eth12_address", "value": {"bridge": "br-vlan", "interface": "eth12", "netmask": null, "type": "veth"}}, "rc": 1, "start": "2017-04-17 10:53:36.078707", "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 \"6e529465_eth12\" 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\ncan't get info No such device\nbridge br-vlan does not exist!", "stdout": "26: 895433c1@6e529465_eth12: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000\n link/ether 66:c6:56:6a:96:46 brd ff:ff:ff:ff:ff:ff", "stdout_lines": ["26: 895433c1@6e529465_eth12: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000", " link/ether 66:c6:56:6a:96:46 brd ff:ff:ff:ff:ff:ff"], "warnings": []} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment