Add package install support to neutron
Change-Id: I712d913d1c41db4ea4d598ecb119f05492e596d4
This commit is contained in:
parent
7704d5e452
commit
f5e4cf4468
|
@ -3,4 +3,4 @@ set -eux
|
|||
|
||||
os-svc-enable -n neutron-dhcp-agent
|
||||
|
||||
service neutron-dhcp-agent restart
|
||||
os-svc-restart -n neutron-dhcp-agent
|
||||
|
|
|
@ -4,5 +4,5 @@ set -eux
|
|||
os-svc-enable -n neutron-metadata-agent
|
||||
os-svc-enable -n neutron-l3-agent
|
||||
|
||||
service neutron-metadata-agent restart
|
||||
service neutron-l3-agent restart
|
||||
os-svc-restart -n neutron-metadata-agent
|
||||
os-svc-restart -n neutron-l3-agent
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
install -m 0755 -o root -g root -t /usr/local/bin $(dirname $0)/../neutron-ovs-agent-bin/*
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
install-packages openstack-neutron-openvswitch
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
install -m 0755 -o root -g root -t /usr/local/bin $(dirname $0)/../neutron-ovs-agent-bin/*
|
||||
os-svc-daemon neutron-openvswitch-agent neutron neutron-openvswitch-agent \
|
||||
"--config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --config-dir /etc/neutron"
|
|
@ -3,4 +3,4 @@ set -eux
|
|||
|
||||
os-svc-enable -n neutron-openvswitch-agent
|
||||
|
||||
service neutron-openvswitch-agent restart
|
||||
os-svc-restart -n neutron-openvswitch-agent
|
||||
|
|
|
@ -6,4 +6,4 @@ set -eux
|
|||
|
||||
os-svc-enable -n neutron-server
|
||||
|
||||
service neutron-server restart
|
||||
os-svc-restart -n neutron-server
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
install-packages openstack-neutron
|
||||
|
||||
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
|
||||
|
||||
# Needed because the packaged install uses /var/lib/neutron, but we configure
|
||||
# it to be /var/run/neutron.
|
||||
mkdir /var/run/neutron
|
||||
chown neutron.neutron /var/run/neutron
|
||||
|
||||
# Packaged neutron is providing a requires.txt which breaks dependencies at
|
||||
# runtime. See:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1057615
|
||||
rm -f /usr/lib/python2.7/site-packages/neutron-*.egg-info/requires.txt
|
Loading…
Reference in New Issue