← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1328076] [NEW] ovs-agent launch failed if br-int not existed

 

Public bug reported:

ovs-agent failed to launch if br-int is not existed.

$ sudo neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
....
2014-06-09 18:55:04.780 20321 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', '-o', 'link', 'show', 'br-int'] create_process /usr/local/lib/python2.7/dist-packages/neutr
on/agent/linux/utils.py:48
2014-06-09 18:55:04.791 20321 DEBUG neutron.agent.linux.utils [-]
Command: ['ip', '-o', 'link', 'show', 'br-int']
Exit code: 1
Stdout: ''
Stderr: 'Device "br-int" does not exist.\n' execute /usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:74
2014-06-09 18:55:04.792 20321 CRITICAL neutron [-]
Command: ['ip', '-o', 'link', 'show', 'br-int']
Exit code: 1
Stdout: ''
Stderr: 'Device "br-int" does not exist.\n'
2014-06-09 18:55:04.792 20321 TRACE neutron Traceback (most recent call last):
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/bin/neutron-openvswitch-agent", line 10, in <module>
2014-06-09 18:55:04.792 20321 TRACE neutron     sys.exit(main())
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1358, in main
2014-06-09 18:55:04.792 20321 TRACE neutron     agent = OVSNeutronAgent(**agent_config)
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 195, in __init__
2014-06-09 18:55:04.792 20321 TRACE neutron     self.setup_rpc()
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 248, in setup_rpc
2014-06-09 18:55:04.792 20321 TRACE neutron     mac = self.int_br.get_local_port_mac()
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 434, in get_local_port_mac
2014-06-09 18:55:04.792 20321 TRACE neutron     address = ip_lib.IPDevice(self.br_name, self.root_helper).link.address
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 258, in address
2014-06-09 18:55:04.792 20321 TRACE neutron     return self.attributes.get('link/ether')
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 282, in attributes
2014-06-09 18:55:04.792 20321 TRACE neutron     return self._parse_line(self._run('show', self.name, options='o'))
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 212, in _run
2014-06-09 18:55:04.792 20321 TRACE neutron     return self._parent._run(kwargs.get('options', []), self.COMMAND, args)
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 58, in _run
2014-06-09 18:55:04.792 20321 TRACE neutron     return self._execute(options, command, args)
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute
2014-06-09 18:55:04.792 20321 TRACE neutron     root_helper=root_helper)
2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 76, in execute
2014-06-09 18:55:04.792 20321 TRACE neutron     raise RuntimeError(m)
2014-06-09 18:55:04.792 20321 TRACE neutron RuntimeError:
2014-06-09 18:55:04.792 20321 TRACE neutron Command: ['ip', '-o', 'link', 'show', 'br-int']
2014-06-09 18:55:04.792 20321 TRACE neutron Exit code: 1
2014-06-09 18:55:04.792 20321 TRACE neutron Stdout: ''
2014-06-09 18:55:04.792 20321 TRACE neutron Stderr: 'Device "br-int" does not exist.\n'
2014-06-09 18:55:04.792 20321 TRACE neutron

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1328076

Title:
  ovs-agent launch failed if br-int not existed

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  ovs-agent failed to launch if br-int is not existed.

  $ sudo neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
  ....
  2014-06-09 18:55:04.780 20321 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', '-o', 'link', 'show', 'br-int'] create_process /usr/local/lib/python2.7/dist-packages/neutr
  on/agent/linux/utils.py:48
  2014-06-09 18:55:04.791 20321 DEBUG neutron.agent.linux.utils [-]
  Command: ['ip', '-o', 'link', 'show', 'br-int']
  Exit code: 1
  Stdout: ''
  Stderr: 'Device "br-int" does not exist.\n' execute /usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:74
  2014-06-09 18:55:04.792 20321 CRITICAL neutron [-]
  Command: ['ip', '-o', 'link', 'show', 'br-int']
  Exit code: 1
  Stdout: ''
  Stderr: 'Device "br-int" does not exist.\n'
  2014-06-09 18:55:04.792 20321 TRACE neutron Traceback (most recent call last):
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/bin/neutron-openvswitch-agent", line 10, in <module>
  2014-06-09 18:55:04.792 20321 TRACE neutron     sys.exit(main())
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1358, in main
  2014-06-09 18:55:04.792 20321 TRACE neutron     agent = OVSNeutronAgent(**agent_config)
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 195, in __init__
  2014-06-09 18:55:04.792 20321 TRACE neutron     self.setup_rpc()
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 248, in setup_rpc
  2014-06-09 18:55:04.792 20321 TRACE neutron     mac = self.int_br.get_local_port_mac()
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 434, in get_local_port_mac
  2014-06-09 18:55:04.792 20321 TRACE neutron     address = ip_lib.IPDevice(self.br_name, self.root_helper).link.address
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 258, in address
  2014-06-09 18:55:04.792 20321 TRACE neutron     return self.attributes.get('link/ether')
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 282, in attributes
  2014-06-09 18:55:04.792 20321 TRACE neutron     return self._parse_line(self._run('show', self.name, options='o'))
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 212, in _run
  2014-06-09 18:55:04.792 20321 TRACE neutron     return self._parent._run(kwargs.get('options', []), self.COMMAND, args)
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 58, in _run
  2014-06-09 18:55:04.792 20321 TRACE neutron     return self._execute(options, command, args)
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 81, in _execute
  2014-06-09 18:55:04.792 20321 TRACE neutron     root_helper=root_helper)
  2014-06-09 18:55:04.792 20321 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 76, in execute
  2014-06-09 18:55:04.792 20321 TRACE neutron     raise RuntimeError(m)
  2014-06-09 18:55:04.792 20321 TRACE neutron RuntimeError:
  2014-06-09 18:55:04.792 20321 TRACE neutron Command: ['ip', '-o', 'link', 'show', 'br-int']
  2014-06-09 18:55:04.792 20321 TRACE neutron Exit code: 1
  2014-06-09 18:55:04.792 20321 TRACE neutron Stdout: ''
  2014-06-09 18:55:04.792 20321 TRACE neutron Stderr: 'Device "br-int" does not exist.\n'
  2014-06-09 18:55:04.792 20321 TRACE neutron

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1328076/+subscriptions


Follow ups

References