Fix incorrect VPNaaS packages
As of Queens the VPNaaS package to be used is no longer neutron-vpn-agent and has been replaced with the package python-neutron-vpnaas. The package for openswan does not exist for Debian systems and needs to be updated to strongswan instead. Change-Id: I859c80facc9dadf461c2300a6c354c73ae60e5e4 Closes-bug: #1825700
This commit is contained in:
parent
fd1e02dcd2
commit
46b1e4d02e
@ -130,8 +130,8 @@ class neutron::params {
|
|||||||
$dhcp_agent_package = 'neutron-dhcp-agent'
|
$dhcp_agent_package = 'neutron-dhcp-agent'
|
||||||
$lbaasv2_agent_package = 'neutron-lbaasv2-agent'
|
$lbaasv2_agent_package = 'neutron-lbaasv2-agent'
|
||||||
$metering_agent_package = 'neutron-metering-agent'
|
$metering_agent_package = 'neutron-metering-agent'
|
||||||
$vpnaas_agent_package = 'neutron-vpn-agent'
|
$vpnaas_agent_package = 'python-neutron-vpnaas'
|
||||||
$openswan_package = 'openswan'
|
$openswan_package = 'strongswan'
|
||||||
$libreswan_package = false
|
$libreswan_package = false
|
||||||
$metadata_agent_package = 'neutron-metadata-agent'
|
$metadata_agent_package = 'neutron-metadata-agent'
|
||||||
$l3_agent_package = 'neutron-l3-agent'
|
$l3_agent_package = 'neutron-l3-agent'
|
||||||
|
@ -60,7 +60,8 @@ class neutron::services::fwaas (
|
|||||||
if ($::osfamily == 'Debian') {
|
if ($::osfamily == 'Debian') {
|
||||||
# Debian platforms
|
# Debian platforms
|
||||||
if $vpnaas_agent_package {
|
if $vpnaas_agent_package {
|
||||||
ensure_resource( 'package', $::neutron::params::vpnaas_agent_package, {
|
ensure_resource( 'package', 'neutron-vpn-agent', {
|
||||||
|
'name' => $::neutron::params::vpnaas_agent_package,
|
||||||
'ensure' => $neutron::package_ensure,
|
'ensure' => $neutron::package_ensure,
|
||||||
'tag' => ['neutron-package', 'openstack'],
|
'tag' => ['neutron-package', 'openstack'],
|
||||||
})
|
})
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
As of Queens the neutron-vpn-agent package for Ubuntu is no longer provided and
|
||||||
|
has been replaced with the package python-neutron-vpnaas.
|
||||||
|
- |
|
||||||
|
On Debian there is no package named openswan and the package that should be
|
||||||
|
installed for VPNaaS is strongswan.
|
@ -128,7 +128,7 @@ describe 'neutron::agents::vpnaas' do
|
|||||||
case facts[:osfamily]
|
case facts[:osfamily]
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{
|
{
|
||||||
:openswan_package => 'openswan',
|
:openswan_package => 'strongswan',
|
||||||
:vpnaas_agent_package => 'neutron-vpn-agent'
|
:vpnaas_agent_package => 'neutron-vpn-agent'
|
||||||
}
|
}
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
|
@ -90,6 +90,7 @@ describe 'neutron::services::fwaas' do
|
|||||||
it 'installs neutron vpnaas agent package' do
|
it 'installs neutron vpnaas agent package' do
|
||||||
should contain_package('neutron-vpn-agent').with(
|
should contain_package('neutron-vpn-agent').with(
|
||||||
:ensure => 'present',
|
:ensure => 'present',
|
||||||
|
:name => platform_params[:vpnaas_package_name],
|
||||||
:tag => ['neutron-package', 'openstack'],
|
:tag => ['neutron-package', 'openstack'],
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
@ -117,7 +118,8 @@ describe 'neutron::services::fwaas' do
|
|||||||
case facts[:osfamily]
|
case facts[:osfamily]
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{
|
{
|
||||||
:fwaas_package_name => 'python3-neutron-fwaas'
|
:fwaas_package_name => 'python3-neutron-fwaas',
|
||||||
|
:vpnaas_package_name => 'python-neutron-vpnaas'
|
||||||
}
|
}
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ describe 'neutron::services::vpnaas' do
|
|||||||
case facts[:osfamily]
|
case facts[:osfamily]
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{
|
{
|
||||||
:vpnaas_package_name => 'neutron-vpn-agent'
|
:vpnaas_package_name => 'python-neutron-vpnaas'
|
||||||
}
|
}
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user