2014-06-10 03:57:02 |
stanzgy |
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 |
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 |
|