Merge "Don't install openvswitch-datapath-dkms on newer kernels"
This commit is contained in:
commit
f05dc966fa
@ -1,2 +0,0 @@
|
|||||||
openvswitch-datapath-dkms # NOPRIME
|
|
||||||
openvswitch-switch # NOPRIME
|
|
3
files/apts/openvswitch
Normal file
3
files/apts/openvswitch
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fakeroot
|
||||||
|
make
|
||||||
|
openvswitch-switch
|
@ -1,3 +0,0 @@
|
|||||||
openvswitch # NOPRIME
|
|
||||||
openvswitch-switch # NOPRIME
|
|
||||||
|
|
3
files/rpms-suse/openvswitch
Normal file
3
files/rpms-suse/openvswitch
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
openvswitch
|
||||||
|
openvswitch-switch
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
openvswitch # NOPRIME
|
|
1
files/rpms/openvswitch
Normal file
1
files/rpms/openvswitch
Normal file
@ -0,0 +1 @@
|
|||||||
|
openvswitch
|
@ -32,26 +32,24 @@ function neutron_ovs_base_cleanup {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function _neutron_ovs_base_install_agent_packages {
|
function _neutron_ovs_base_install_ubuntu_dkms {
|
||||||
local kernel_version
|
# install Dynamic Kernel Module Support packages if needed
|
||||||
# Install deps
|
local kernel_version=$(uname -r)
|
||||||
# FIXME add to ``files/apts/neutron``, but don't install if not needed!
|
local kernel_major_minor=`echo $kernel_version | cut -d. -f1-2`
|
||||||
if is_ubuntu; then
|
|
||||||
kernel_version=`cat /proc/version | cut -d " " -f3`
|
|
||||||
ovs_packages="make fakeroot dkms openvswitch-switch"
|
|
||||||
# From kernel 3.13 on, openvswitch-datapath-dkms is not needed
|
# From kernel 3.13 on, openvswitch-datapath-dkms is not needed
|
||||||
kernel_major_minor=`echo $kernel_version | cut -d. -f1-2`
|
|
||||||
if [ `vercmp_numbers "$kernel_major_minor" "3.13"` -lt "0" ]; then
|
if [ `vercmp_numbers "$kernel_major_minor" "3.13"` -lt "0" ]; then
|
||||||
ovs_packages="$ovs_packages openvswitch-datapath-dkms"
|
install_package "dkms openvswitch-datapath-dkms linux-headers-$kernel_version"
|
||||||
fi
|
fi
|
||||||
ovs_packages="$ovs_packages linux-headers-$kernel_version"
|
}
|
||||||
install_package $ovs_packages
|
|
||||||
|
function _neutron_ovs_base_install_agent_packages {
|
||||||
|
# Install deps
|
||||||
|
install_package $(get_packages "openvswitch")
|
||||||
|
if is_ubuntu; then
|
||||||
|
_neutron_ovs_base_install_ubuntu_dkms
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
install_package openvswitch
|
|
||||||
# Ensure that the service is started
|
|
||||||
restart_service openvswitch
|
restart_service openvswitch
|
||||||
elif is_suse; then
|
elif is_suse; then
|
||||||
install_package openvswitch-switch
|
|
||||||
restart_service openvswitch-switch
|
restart_service openvswitch-switch
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -122,22 +122,10 @@ function install_opendaylight {
|
|||||||
unzip -u $ODL_PKG
|
unzip -u $ODL_PKG
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_opendaylight-compute - Make sure OVS is install
|
# install_opendaylight-compute - Make sure OVS is installed
|
||||||
function install_opendaylight-compute {
|
function install_opendaylight-compute {
|
||||||
local kernel_version
|
# packages are the same as for Neutron OVS agent
|
||||||
# Install deps
|
_neutron_ovs_base_install_agent_packages
|
||||||
# FIXME add to ``files/apts/neutron``, but don't install if not needed!
|
|
||||||
if is_ubuntu; then
|
|
||||||
kernel_version=`cat /proc/version | cut -d " " -f3`
|
|
||||||
install_package make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version
|
|
||||||
elif is_fedora; then
|
|
||||||
install_package openvswitch
|
|
||||||
# Ensure that the service is started
|
|
||||||
restart_service openvswitch
|
|
||||||
elif is_suse; then
|
|
||||||
install_package openvswitch-switch
|
|
||||||
restart_service openvswitch-switch
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# start_opendaylight() - Start running processes, including screen
|
# start_opendaylight() - Start running processes, including screen
|
||||||
|
Loading…
Reference in New Issue
Block a user