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:
Tobias Urdin 2019-02-07 10:48:56 +01:00
parent e51177e296
commit 1daac1805f
3 changed files with 16 additions and 7 deletions

View File

@ -27,7 +27,11 @@ class glance::params {
$registry_package_name = 'glance-registry'
$api_service_name = 'glance-api'
$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: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \

View File

@ -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.

View File

@ -82,13 +82,13 @@ describe 'glance::backend::rbd' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
{
:pyceph_package_name => 'python3-ceph',
}
if facts[:os_package_type] == 'debian'
{ :pyceph_package_name => 'python3-ceph' }
else
{ :pyceph_package_name => 'python3-rbd' }
end
when 'RedHat'
{
:pyceph_package_name => 'python-rbd',
}
{ :pyceph_package_name => 'python-rbd' }
end
end