Ask Your Question
0

Reinstallation fails with start neutron-openvswitch-agent returned 6 [closed]

asked 2014-12-23 09:37:48 -0500

mickt gravatar image

updated 2014-12-24 08:27:16 -0500

I have successfully installed on a clean box (no previous installation) and this consistently works. But when I try to reinstall (over-install or remove and install) it always fails as follows:

...............................

...............................

10.10.12.16_neutron.pp: [ ERROR ]

Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 10.10.12.16_neutron.pp

Error: Could not start Service[neutron-ovs-agent-service]: Execution of '/usr/bin/systemctl start neutron-openvswitch-agent' returned 6: Failed to issue method call: Unit neutron-openvswitch-agent.service failed to load: No such file or directory.

Manually try to start on compute node:

systemctl start neutron-openvswitch-agent
Failed to issue method call: Unit neutron-openvswitch-agent.service failed to load: No such file or directory.

compute node: rpm -qa | grep openvswitch

openstack-neutron-openvswitch-2014.2.1-1.el7.centos.noarch
openvswitch-2.1.2-2.el7.centos.1.x86_64

RPMs are installed on all compute nodes.

systemctl status neutron-openvswitch-agent

neutron-openvswitch-agent.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mickt
close date 2014-12-24 07:14:24.325216

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-12-23 12:41:23 -0500

dbaxps gravatar image

updated 2014-12-23 13:08:00 -0500

Attempt follow https://scottlinux.com/2014/12/08/how...
Make sure neutron database && keystone database are in good shape
I would try create under /lib/systemd/system file neutron-openvswitch-agent.service :-

[Unit]
Description=OpenStack Neutron Open vSwitch Agent
After=syslog.target network.target

[Service]
Type=simple
User=neutron
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/openvswitch/ovs_neutron_plugin.ini --log-file /var/log/neutron/openvswitch-agent.log
PrivateTmp=true
KillMode=process

[Install]
WantedBy=multi-user.target

However,

[root@junodocker system]# pwd
/etc/systemd/system
[root@junodocker system]# ls -l multi-user.target.wants | grep neutron-openvswitch
lrwxrwxrwx. 1 root root 57 Dec 20 09:22 neutron-openvswitch-agent.service -> /usr/lib/systemd/system/neutron-openvswitch-agent.service

Then

[root@junodocker system]# pwd
/usr/lib/systemd/system
[root@junodocker system]# ls -l | grep neutron-openvswitch
-rw-r--r--. 1 root root  454 Dec  5 16:09 neutron-openvswitch-agent.service
[root@junodocker system]# cat neutron-openvswitch-agent.service
[Unit]
Description=OpenStack Neutron Open vSwitch Agent
After=syslog.target network.target

[Service]
Type=simple
User=neutron
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/openvswitch/ovs_neutron_plugin.ini --log-file /var/log/neutron/openvswitch-agent.log
PrivateTmp=true
KillMode=process

[Install]
WantedBy=multi-user.target


#  systemctl daemon-reload
#  systemctl enable neutron-openvswitch-agent.service
#  systemctl start  neutron-openvswitch-agent.service
edit flag offensive delete link more

Comments

I uninstalled controller to remove br-ex etc. and created neutron-openvswitch-agent.service file on controller only then ran the following on each node. Thanks.

systemctl daemon-reload

systemctl enable neutron-openvswitch-agent.service

systemctl start neutron-openvswitch-agent.se

mickt gravatar imagemickt ( 2014-12-24 03:43:40 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-23 09:37:48 -0500

Seen: 4,626 times

Last updated: Dec 24 '14