yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00883
[Bug 1090621] Re: addr.list() in ip_lib.py fails when broadcast ipv4 address is not set
** Changed in: quantum
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1090621
Title:
addr.list() in ip_lib.py fails when broadcast ipv4 address is not set
Status in OpenStack Quantum (virtual network service):
Fix Released
Bug description:
To reproduce:
set "tenant_network_type = flat" in linuxbridge_conf.ini
set "physical_interface_mappings = default:eth1" in linuxbridge_conf.ini
sudo ip addr add 10.0.0.1/24 dev eth1
run quantum router-gateway-set
then:
DEBUG:quantum.agent.linux.utils:Running command: ip addr show eth1 scope global
2012-12-14 17:20:53 DEBUG [quantum.agent.linux.utils] Running command: ip addr show eth1 scope global
DEBUG:quantum.agent.linux.utils:
Command: ['ip', 'addr', 'show', 'eth1', 'scope', 'global']
Exit code: 0
Stdout: '105: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP \n link/ether 00:21:9b:8c:e7:bd brd ff:ff:ff:ff:ff:ff\n inet 10.0.0.1/24 scope global eth1\n'
Stderr: ''
2012-12-14 17:20:53 DEBUG [quantum.agent.linux.utils]
Command: ['ip', 'addr', 'show', 'eth1', 'scope', 'global']
Exit code: 0
Stdout: '105: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP \n link/ether 00:21:9b:8c:e7:bd brd ff:ff:ff:ff:ff:ff\n inet 10.0.0.1/24 scope global eth1\n'
Stderr: ''
Traceback (most recent call last):
File "/opt/stack/quantum/bin/quantum-linuxbridge-agent", line 24, in <module>
main()
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 803, in main
plugin.daemon_loop()
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 759, in daemon_loop
sync = self.process_network_devices(device_info)
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 689, in process_network_devices
resync_a = self.treat_devices_added(device_info['added'])
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 714, in treat_devices_added
details['port_id'])
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 335, in add_interface
tap_device_name)
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 311, in add_tap_interface
vlan_id)
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 288, in ensure_physical_in_bridge
self.ensure_flat_bridge(network_id, physical_interface)
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 185, in ensure_flat_bridge
ips, gateway = self.get_interface_details(physical_interface)
File "/opt/stack/quantum/quantum/plugins/linuxbridge/agent/linuxbridge_quantum_agent.py", line 176, in get_interface_details
ips = device.addr.list(scope='global')
File "/opt/stack/quantum/quantum/agent/linux/ip_lib.py", line 277, in list
scope = parts[5]
IndexError: list index out of range
To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1090621/+subscriptions