I followed the instructions from the Cloudbase blog, for installing Open vSwitch and configuring the neutron agent but the neutron-ovs-agent Windows service will not start. Each time I try to start the service, it crashes.
I have installed OpenStack Hyper-V Compute Ocata msi installer from Cloudbase and have successfully attached the compute node to the OpenStack controller.
I have installed the Cloudbase Open vSwitch for Windows 2.6.1 msi installer and, per the blog post linked above, created the virtual switch and bridges using ovs-vsctl. I manually created the neutron-ovs-agent Windows service per the instructions but the service crashes each time and will not start.
I find the following error in the Windows Event Logs:
The description for Event ID 0 from source neutron-hyperv-agent cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
neutron-hyperv-agent
Child process ended
The instructions indicate that running the service is supposed to create additional bridges. None of these are created. When checking my list of bridges, I only see the first one that I had created.
The config file is set to log to C:\OpenStack\Log\neutron-ovs-agent.log
. When I check the log directory, the neutron-ovs-agent.log
file does not exist. This leads me to believe that the neutron agent crashes before it even begins logging...
Just out of curiosity, I tried running the OpenStackServiceNeutron.exe command in my cmd prompt (rather than from the Windows service) to see what happens. The exits with the following error:
C:\Windows\system32>"C:\Program Files\Cloudbase Solutions\OpenStack\Nova\bin\Ope
nStackServiceNeutron.exe" neutron-hyperv-agent "C:\Program Files\Cloudbase Solut
ions\OpenStack\Nova\Python27\Scripts\neutron-openvswitch-agent.exe" --config-fil
e "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\neutron_ovs_agent.con
f"
Service failed to run w/err 0x00000427
I have been researching for a couple of days now with no solution.
I noticed that the Cloudbase blog post is for Open vSwitch 2.5 but I'm not seeing and subsequent blog posts or instructions for configuring 2.6. So, I'm not sure if setup is supposed to be different for 2.6.
I noticed the following question here but none of the suggestions here seem to work for me . The poster mentions uninstalling the old versions of nova and Open vSwitch but I am already using the latest version.
Aserdean suggests adding the following to the config file but this doesn't change anything for me. The service still crashes.
[ovs]
...
of_interface = ovs-ofctl
ovsdb_interface = vsctl
Any thoughts would be greatly appreciated!
Here is my neutronovsagent.conf file but I doubt my conf file is the issue considering the agent doesn't even start logging before it crashes. Given the Windows Event Log (provided above), it looks like some component is missing that should be installed. Not sure what else is supposed to have been installed...
[DEFAULT]
verbose=true
debug=false
control_exchange=neutron
policy_file=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\etc\policy.json
rpc_backend=neutron.openstack.common.rpc.impl_kombu
rabbit_host=[redacted]
rabbit_port=5672
rabbit_userid=rabbituser
rabbit_password=PaSsWoRd
logdir=C:\OpenStack\Log\
logfile=neutron-ovs-agent.log
[agent]
tunnel_types = vxlan
enable_metrics_collection=false
[SECURITYGROUP]
enable_security_group=false
[ovs]
local_ip = 14.14.14.2
tunnel_bridge = br-tun
integration_bridge = br-int
tenant_network_type = vxlan
enable_tunneling = true
of_interface = ovs-ofctl
ovsdb_interface = vsctl