Ubuntu: Make sure python3-rados is installed

The rbd backend implementation of glance_store requires not only
python3-rbd but also python3-rados. In CentOS the python3-rados package
is installed as a dependency of python3-rbd, but in Debian and Ubuntu
that dependency is not defined and we should install python3-rados
explicitly.

This fixes the missing python3-rados package in Ubuntu, by using
the meta python3-ceph package which installs all python libraries.

Closes-Bug: #2002934
Change-Id: I620c607f09e98f1ce1d7ba34d1b797dbef8402ad
This commit is contained in:
Takashi Kajinami 2023-01-16 12:04:00 +09:00
parent 5c1ee34978
commit 7c1dc7144b
4 changed files with 9 additions and 15 deletions

View File

@ -26,11 +26,7 @@ class glance::params {
$package_name = undef
$api_package_name = 'glance-api'
$api_service_name = 'glance-api'
if $::operatingsystem == 'Debian' {
$pyceph_package_name = 'python3-ceph'
} else {
$pyceph_package_name = 'python3-rbd'
}
$pyceph_package_name = 'python3-ceph'
$lock_path = '/var/lock/glance'
$glance_wsgi_script_path = '/usr/lib/cgi-bin/glance'
}

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Now ``python3-ceph`` package, instead of ``python3-rbd`` package, is
installed when rbd backend is used. This fixes the missing
``python3-rados`` package.

View File

@ -61,11 +61,7 @@ describe 'glance::backend::rbd' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
if facts[:operatingsystem] == 'Debian'
{ :pyceph_package_name => 'python3-ceph' }
else
{ :pyceph_package_name => 'python3-rbd' }
end
{ :pyceph_package_name => 'python3-ceph' }
when 'RedHat'
{ :pyceph_package_name => 'python3-rbd' }
end

View File

@ -85,11 +85,7 @@ describe 'glance::backend::multistore::rbd' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
if facts[:operatingsystem] == 'Debian'
{ :pyceph_package_name => 'python3-ceph' }
else
{ :pyceph_package_name => 'python3-rbd' }
end
{ :pyceph_package_name => 'python3-ceph' }
when 'RedHat'
{ :pyceph_package_name => 'python3-rbd' }
end