Update python packaging version for RHEL8
The novaclient is python3-novaclient for RHEL8 Change-Id: I4595f4a5dce28d40deb3bd1147a9804802d474a0
This commit is contained in:
parent
c7f44fde73
commit
6efc36bd95
@ -4,7 +4,8 @@
|
||||
# should be considered to be constant
|
||||
class nova::params {
|
||||
include ::openstacklib::defaults
|
||||
if ($::os_package_type == 'debian') or ($::operatingsystem == 'Fedora') {
|
||||
if ($::os_package_type == 'debian') or ($::operatingsystem == 'Fedora') or
|
||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
|
@ -217,44 +217,24 @@ describe 'nova::migration::libvirt' do
|
||||
|
||||
end
|
||||
|
||||
# TODO (degorenko): switch to on_supported_os function when we got Xenial
|
||||
context 'on Debian platforms with Ubuntu release 16' do
|
||||
let :facts do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:operatingsystemmajrelease => '16'
|
||||
})
|
||||
on_supported_os({
|
||||
:supported_os => OSDefaults.get_supported_os
|
||||
}).each do |os,facts|
|
||||
context "on #{os}" do
|
||||
let (:facts) do
|
||||
facts.merge!(OSDefaults.get_facts({ :os_workers => 5 }))
|
||||
end
|
||||
|
||||
let (:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
it { is_expected.to contain_file_line('/etc/default/libvirtd libvirtd opts').with(:line => 'libvirtd_opts="-l"') }
|
||||
when 'RedHat'
|
||||
it { is_expected.to contain_file_line('/etc/sysconfig/libvirtd libvirtd args').with(:line => 'LIBVIRTD_ARGS="--listen"') }
|
||||
end
|
||||
end
|
||||
|
||||
it_configures 'nova migration with libvirt'
|
||||
end
|
||||
|
||||
it_configures 'nova migration with libvirt'
|
||||
it { is_expected.to contain_file_line('/etc/default/libvirtd libvirtd opts').with(:line => 'libvirtd_opts="-l"') }
|
||||
end
|
||||
|
||||
context 'on Debian platforms release' do
|
||||
let :facts do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Debian',
|
||||
:operatingsystemmajrelease => '8'
|
||||
})
|
||||
end
|
||||
|
||||
it_configures 'nova migration with libvirt'
|
||||
it { is_expected.to contain_file_line('/etc/default/libvirtd libvirtd opts').with(:line => 'libvirtd_opts="-l"') }
|
||||
end
|
||||
|
||||
context 'on RedHat platforms' do
|
||||
let :facts do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'RedHat',
|
||||
:operatingsystem => 'CentOS',
|
||||
:operatingsystemmajrelease => '7.0'
|
||||
})
|
||||
end
|
||||
|
||||
it_configures 'nova migration with libvirt'
|
||||
it { is_expected.to contain_file_line('/etc/sysconfig/libvirtd libvirtd args').with(:line => 'LIBVIRTD_ARGS="--listen"') }
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -95,30 +95,27 @@ describe 'nova::scheduler' do
|
||||
|
||||
end
|
||||
|
||||
context 'on Debian platforms' do
|
||||
let :facts do
|
||||
@default_facts.merge({ :osfamily => 'Debian', :os_workers => 4 })
|
||||
on_supported_os({
|
||||
:supported_os => OSDefaults.get_supported_os
|
||||
}).each do |os,facts|
|
||||
context "on #{os}" do
|
||||
let (:facts) do
|
||||
facts.merge!(OSDefaults.get_facts({ :os_workers => 4 }))
|
||||
end
|
||||
|
||||
let (:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
{ :scheduler_package_name => 'nova-scheduler',
|
||||
:scheduler_service_name => 'nova-scheduler' }
|
||||
when 'RedHat'
|
||||
{ :scheduler_package_name => 'openstack-nova-scheduler',
|
||||
:scheduler_service_name => 'openstack-nova-scheduler' }
|
||||
end
|
||||
end
|
||||
|
||||
it_configures 'nova-scheduler'
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :scheduler_package_name => 'nova-scheduler',
|
||||
:scheduler_service_name => 'nova-scheduler' }
|
||||
end
|
||||
|
||||
it_configures 'nova-scheduler'
|
||||
end
|
||||
|
||||
context 'on Redhat platforms' do
|
||||
let :facts do
|
||||
@default_facts.merge({ :osfamily => 'RedHat', :os_workers => 4 })
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :scheduler_package_name => 'openstack-nova-scheduler',
|
||||
:scheduler_service_name => 'openstack-nova-scheduler' }
|
||||
end
|
||||
|
||||
it_configures 'nova-scheduler'
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -48,50 +48,26 @@ describe 'nova::serialproxy' do
|
||||
end
|
||||
end
|
||||
|
||||
context 'on Ubuntu system' do
|
||||
let :facts do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu'
|
||||
})
|
||||
on_supported_os({
|
||||
:supported_os => OSDefaults.get_supported_os
|
||||
}).each do |os,facts|
|
||||
context "on #{os}" do
|
||||
let (:facts) do
|
||||
facts.merge!(OSDefaults.get_facts({}))
|
||||
end
|
||||
|
||||
let (:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
{ :serialproxy_package_name => 'nova-serialproxy',
|
||||
:serialproxy_service_name => 'nova-serialproxy' }
|
||||
when 'RedHat'
|
||||
{ :serialproxy_package_name => 'openstack-nova-serialproxy',
|
||||
:serialproxy_service_name => 'openstack-nova-serialproxy' }
|
||||
end
|
||||
end
|
||||
it_configures 'nova-serialproxy'
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :serialproxy_package_name => 'nova-serialproxy',
|
||||
:serialproxy_service_name => 'nova-serialproxy' }
|
||||
end
|
||||
|
||||
it_configures 'nova-serialproxy'
|
||||
end
|
||||
|
||||
context 'on Debian system' do
|
||||
let :facts do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Debian',
|
||||
:operatingsystemmajrelease => '9'
|
||||
})
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :serialproxy_package_name => 'nova-serialproxy',
|
||||
:serialproxy_service_name => 'nova-serialproxy' }
|
||||
end
|
||||
|
||||
it_configures 'nova-serialproxy'
|
||||
end
|
||||
|
||||
context 'on Redhat platforms' do
|
||||
let :facts do
|
||||
@default_facts.merge({ :osfamily => 'RedHat' })
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :serialproxy_package_name => 'openstack-nova-serialproxy',
|
||||
:serialproxy_service_name => 'openstack-nova-serialproxy' }
|
||||
end
|
||||
|
||||
it_configures 'nova-serialproxy'
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -66,6 +66,7 @@ describe 'nova::spicehtml5proxy' do
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:os_package_type => 'ubuntu',
|
||||
:os => { :family => 'Debian', :release => { :major => '16'}}
|
||||
})
|
||||
end
|
||||
|
||||
@ -83,7 +84,8 @@ describe 'nova::spicehtml5proxy' do
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Debian',
|
||||
:operatingsystemmajrelease => '9',
|
||||
:os_package_type => 'debian'
|
||||
:os_package_type => 'debian',
|
||||
:os => { :family => 'Debian', :release => { :major => '9'}}
|
||||
})
|
||||
end
|
||||
|
||||
@ -101,7 +103,8 @@ describe 'nova::spicehtml5proxy' do
|
||||
@default_facts.merge({
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:os_package_type => 'debian'
|
||||
:os_package_type => 'debian',
|
||||
:os => { :family => 'Debian', :release => { :major => '16'}}
|
||||
})
|
||||
end
|
||||
|
||||
@ -117,7 +120,9 @@ describe 'nova::spicehtml5proxy' do
|
||||
|
||||
context 'on Redhat platforms' do
|
||||
let :facts do
|
||||
@default_facts.merge({ :osfamily => 'RedHat' })
|
||||
@default_facts.merge({ :osfamily => 'RedHat',
|
||||
:os => { :family => 'RedHat', :release => { :major => '7'}}
|
||||
})
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
|
@ -14,7 +14,7 @@ describe 'nova::generic_service' do
|
||||
end
|
||||
|
||||
let :facts do
|
||||
@default_facts.merge({ :osfamily => 'Debian' })
|
||||
@default_facts.merge({ :osfamily => 'RedHat', :os => { :family => 'RedHat', :release => { :major => '8'}}})
|
||||
end
|
||||
|
||||
let :title do
|
||||
|
@ -3,7 +3,7 @@ require 'spec_helper'
|
||||
describe 'nova::manage::network' do
|
||||
|
||||
let :facts do
|
||||
@default_facts.merge({:osfamily => 'RedHat'})
|
||||
@default_facts.merge({ :osfamily => 'RedHat', :os => { :family => 'RedHat', :release => { :major => '8'}}})
|
||||
end
|
||||
|
||||
let :pre_condition do
|
||||
|
Loading…
x
Reference in New Issue
Block a user