Ask Your Question
0

neutron-openvswitch-agent.service not starting [closed]

asked 2017-04-18 04:11:55 -0500

Robby gravatar image

updated 2017-04-19 04:11:21 -0500

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 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Robby
close date 2017-07-13 10:04:01.258243

Comments

Is openvswitch (the RPM) installed, and the openvswitch service enabled and started? What does 'ovs-vsctl show' say?

imacdonn gravatar imageimacdonn ( 2017-04-18 19:51:54 -0500 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-19 01:35:01 -0500 )edit

Thank you very much. I am new to xen server. Please look at the output of your proposed command. I updated my question.

Robby gravatar imageRobby ( 2017-04-19 03:56:43 -0500 )edit

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

Robby gravatar imageRobby ( 2017-04-19 04:16:16 -0500 )edit

"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.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-19 05:02:39 -0500 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2017-07-10 02:30:00 -0500

Robby gravatar image

Thanks so much for the help. However I was not successful here and currently trying setup openstack with KVM, I think I am in a better state here but not really seeing success. Please extend your valuable support here "Unable to ping host from Instance-openstack ocata" I am really spending many hours here but missing something.

edit flag offensive delete link more
0

answered 2017-05-02 04:51:23 -0500

Bob Ball gravatar image

Exit code 96 is a XenAPI error. Check the log files in /var/log/ on the xenserver host (probably user.log or xensource.log) to see what the issue is. I suspect the most likely issue is that you don't have the "netwrap.py" plugin in /etc/xapi.d/plugins, or it is not marked as executable. When running step 5 at http://openstack-xenserver.readthedoc... it suggests you ignore errors for the Neutron plugins - which I don't understand. The netwrap.py neutron plugin is absolutely required.

If you can't identify the issue from those, please send the above log files (or a diagnostic snapshot collected by running "xen-bugtool -y") to openstack@citrix.com

Thanks,

Bob

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-04-18 04:11:55 -0500

Seen: 1,231 times

Last updated: Jul 10 '17