Make use of openvswitch elements
Neutron and network-utils elements now depends of the new openvswitch elements and delegate all openvswitch installation and configuration into the openvswitch elements. Closes-Bug: #1316985 Change-Id: Ib5c18e85317e6120b420d21790c26c21f4bbb0e4
This commit is contained in:
parent
6ac090d62a
commit
b7d56c2c87
1
elements/network-utils/element-deps
Normal file
1
elements/network-utils/element-deps
Normal file
@ -0,0 +1 @@
|
||||
openvswitch
|
@ -1,24 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
install-packages openvswitch-switch python-netaddr
|
||||
|
||||
if [ "$DIB_INIT_SYSTEM" == "systemd" ] ; then
|
||||
os-svc-enable -n openvswitch-switch
|
||||
fi
|
||||
|
||||
if [ "$DIB_INIT_SYSTEM" == "upstart" ] ; then
|
||||
echo "start on starting cloud-init-nonet" >> /etc/init/openvswitch-switch.override
|
||||
if [ ! -f /etc/init/openvswitch-switch.conf ] ; then
|
||||
cat << 'EOF' > /etc/init/openvswitch-switch.conf
|
||||
# openvswitch-switch
|
||||
# the purpose of this job is
|
||||
# * start openvwitch-switch in upstart rather than SysV startup
|
||||
pre-start script
|
||||
export RUNLEVEL=2
|
||||
/etc/init.d/openvswitch-switch start
|
||||
end script
|
||||
post-stop exec /etc/init.d/openvswitch-switch stop
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
install-packages python-netaddr
|
||||
|
@ -3,5 +3,6 @@ os-apply-config
|
||||
os-is-bootstrap-host
|
||||
os-refresh-config
|
||||
os-svc-install
|
||||
openvswitch-datapath
|
||||
selinux
|
||||
source-repositories
|
||||
|
@ -1,8 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
install-packages openvswitch-switch openvswitch-datapath-dkms
|
||||
|
||||
# for BUG: https://bugs.launchpad.net/neutron/+bug/1225232
|
||||
echo "qpid-python" | tee -a /opt/stack/neutron/requirements.txt
|
||||
|
||||
@ -21,8 +19,4 @@ echo "Defaults:neutron !requiretty" >> /etc/sudoers.d/neutron
|
||||
chmod 0440 /etc/sudoers.d/neutron
|
||||
visudo -c
|
||||
|
||||
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
||||
os-svc-enable -n openvswitch-switch
|
||||
fi
|
||||
|
||||
add-selinux-path-substitution /usr/bin $NEUTRON_VENV_DIR/bin
|
||||
|
Loading…
Reference in New Issue
Block a user