← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: neutron/icehouse
   Importance: Undecided
       Status: New

** Changed in: neutron/icehouse
       Status: New => Fix Committed

** Changed in: neutron/icehouse
    Milestone: None => 2014.1.2

-- 
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):
  Fix Released
Status in neutron icehouse series:
  Fix Committed

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-10 11:54:11.613 4624 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=1
  0', '--', 'set-fail-mode', 'br-int', 'secure'] create_process /usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:48
  2014-06-10 11:54:11.777 4624 ERROR neutron.agent.linux.utils [-]
  Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', 'set-fail-mode', 'br-int', 'secure']
  Exit code: 1
  Stdout: ''
  Stderr: 'ovs-vsctl: no bridge named br-int\n'
  2014-06-10 11:54:11.779 4624 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--', 'set-fail-mode', 'br-int', 'secure']. Exception:
  Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', 'set-fail-mode', 'br-int', 'secure']
  Exit code: 1
  Stdout: ''
  Stderr: 'ovs-vsctl: no bridge named br-int\n'
  2014-06-10 11:54:11.780 4624 CRITICAL neutron [-]
  Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', 'set-fail-mode', 'br-int', 'secure']
  Exit code: 1
  Stdout: ''
  Stderr: 'ovs-vsctl: no bridge named br-int\n'
  2014-06-10 11:54:11.780 4624 TRACE neutron Traceback (most recent call last):
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/bin/neutron-openvswitch-agent", line 10, in <module>
  2014-06-10 11:54:11.780 4624 TRACE neutron     sys.exit(main())
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1485, in main
  2014-06-10 11:54:11.780 4624 TRACE neutron     agent = OVSNeutronAgent(**agent_config)
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 175, in __init__
  2014-06-10 11:54:11.780 4624 TRACE neutron     self.int_br.set_secure_mode()
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 128, in set_secure_mode
  2014-06-10 11:54:11.780 4624 TRACE neutron     check_error=True)
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 72, in run_vsctl
  2014-06-10 11:54:11.780 4624 TRACE neutron     ctxt.reraise = False
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__
  2014-06-10 11:54:11.780 4624 TRACE neutron     six.reraise(self.type_, self.value, self.tb)
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 65, in run_vsctl
  2014-06-10 11:54:11.780 4624 TRACE neutron     return utils.execute(full_args, root_helper=self.root_helper)
  2014-06-10 11:54:11.780 4624 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 77, in execute
  2014-06-10 11:54:11.780 4624 TRACE neutron     raise RuntimeError(m)
  2014-06-10 11:54:11.780 4624 TRACE neutron RuntimeError:
  2014-06-10 11:54:11.780 4624 TRACE neutron Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--', 'set-fail-mode', 'br
  -int', 'secure']
  2014-06-10 11:54:11.780 4624 TRACE neutron Exit code: 1
  2014-06-10 11:54:11.780 4624 TRACE neutron Stdout: ''
  2014-06-10 11:54:11.780 4624 TRACE neutron Stderr: 'ovs-vsctl: no bridge named br-int\n'
  2014-06-10 11:54:11.780 4624 TRACE neutron

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


References