neutron-openvswitch-agent.service not starting [closed]
Hi, I am following a openstack liberty http://openstack-xenserver.readthedocs.io/en/latest/11-install-networking-neutron-on-compute-vm.htmll (setup document) and in compute-vm node I am unable to start neutron-openvswitch-agent.service. neutron is running fine in controller, nova is also good in both.
I am using CentOS 7 and here log:
[root@compute-vm ~]# systemctl status neutron-openvswitch-agent.service
● neutron-openvswitch-agent.service - OpenStack Neutron Open vSwitch Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-openvswitch-agent.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-04-18 10:45:07 CEST; 114ms ago
Process: 2648 ExecStart=/usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-openvswitch-agent --log-file /var/log/neutron/openvswitch-agent.log (code=exited, status=1/FAILURE)
Process: 2641 ExecStartPre=/usr/bin/neutron-enable-bridge-firewall.sh (code=exited, status=0/SUCCESS)
Main PID: 2648 (code=exited, status=1/FAILURE)
Apr 18 10:44:53 compute-vm.dkrz.de systemd[1]: Starting OpenStack Neutron Op....
Apr 18 10:44:53 compute-vm.dkrz.de neutron-enable-bridge-firewall.sh[2641]: n...
Apr 18 10:44:53 compute-vm.dkrz.de neutron-enable-bridge-firewall.sh[2641]: n...
Apr 18 10:44:53 compute-vm.dkrz.de neutron-enable-bridge-firewall.sh[2641]: n...
Apr 18 10:44:53 compute-vm.dkrz.de systemd[1]: Started OpenStack Neutron Ope....
Apr 18 10:44:54 compute-vm.dkrz.de neutron-openvswitch-agent[2648]: No handle...
Apr 18 10:45:07 compute-vm.dkrz.de systemd[1]: neutron-openvswitch-agent.ser...E
Apr 18 10:45:07 compute-vm.dkrz.de systemd[1]: Unit neutron-openvswitch-agen....
Apr 18 10:45:07 compute-vm.dkrz.de systemd[1]: neutron-openvswitch-agent.ser....
Hint: Some lines were ellipsized, use -l to show in full.
[root@compute-vm ~]# cat /var/log/neutron/openvswitch-agent.log | tail -80
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl File "/usr/lib/python2.7/site-packages/neutron/agent/ovsdb/impl_vsctl.py", line 63, in run_vsctl
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl log_fail_as_error=False).rstrip()
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 159, in execute
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl raise RuntimeError(m)
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl RuntimeError:
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl Command: ['neutron-rootwrap-xen-dom0', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'xapi1']
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl Exit code: 96
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl
2017-04-18 10:45:00.271 2648 ERROR neutron.agent.ovsdb.impl_vsctl
2017-04-18 10:45:01.903 2648 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'xapi1'].
2017-04-18 10:45:01.903 2648 ERROR neutron.agent.ovsdb.impl_vsctl Traceback (most recent call last):
2017-04-18 10:45:01.903 2648 ERROR neutron.agent.ovsdb.impl_vsctl File "/usr/lib/python2.7 ...
Is openvswitch (the RPM) installed, and the openvswitch service enabled and started? What does 'ovs-vsctl show' say?
It seems that this command fails:
ovs-vsctl --timeout=10 --oneline --format=json -- --columns=ofport list Interface xapi1
. You might get a useful error message by running it manually as root.Thank you very much. I am new to xen server. Please look at the output of your proposed command. I updated my question.
I am not really sure, Had I need to create bridge interface on compute-vm? My controller has eth1 as public interface which is bridged to br-eth1, no bridge in compute-vm....xen interfaces output updated in my question......please review
"I am new to xen server" Well, I am not even new to it. With that caveat, I suggest you search the config files under /etc/neutron for the string "xapi1" and try to get clues from what you find. The question is: How are Xenserver networks connected into the OVS bridge.