Install python rbd package on Ubuntu
The glance::backend::rbd class when managing the ceph package would install the python-ceph package which after changing to python3 became python3-ceph. The python3-ceph package does not exist and the python-ceph package is only a meta package that points to all the python 2 libraries. This changes so that it installs python3-rbd on Ubuntu but leaves the python3-ceph package on Debian based packaging. Change-Id: I37baa79943063a66922a9f82a286583a091122c7
This commit is contained in:
parent
e51177e296
commit
1daac1805f
|
@ -27,7 +27,11 @@ class glance::params {
|
||||||
$registry_package_name = 'glance-registry'
|
$registry_package_name = 'glance-registry'
|
||||||
$api_service_name = 'glance-api'
|
$api_service_name = 'glance-api'
|
||||||
$registry_service_name = 'glance-registry'
|
$registry_service_name = 'glance-registry'
|
||||||
$pyceph_package_name = "python${pyvers}-ceph"
|
if $::os_package_type == 'debian' {
|
||||||
|
$pyceph_package_name = "python${pyvers}-ceph"
|
||||||
|
} else {
|
||||||
|
$pyceph_package_name = "python${pyvers}-rbd"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The glance::backend::rbd class now install python-rbd/python3-rbd package
|
||||||
|
instead of the python-ceph meta package on Ubuntu.
|
|
@ -82,13 +82,13 @@ describe 'glance::backend::rbd' do
|
||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:osfamily]
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
{
|
if facts[:os_package_type] == 'debian'
|
||||||
:pyceph_package_name => 'python3-ceph',
|
{ :pyceph_package_name => 'python3-ceph' }
|
||||||
}
|
else
|
||||||
|
{ :pyceph_package_name => 'python3-rbd' }
|
||||||
|
end
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{
|
{ :pyceph_package_name => 'python-rbd' }
|
||||||
:pyceph_package_name => 'python-rbd',
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue