Install lsscsi by default for zed or older

lsscsi is a dependency of os-brick for volume related operations
including creating a boot volume with iSCSI/FC backends. However, it
wasn't installed by default until jammy-antelope (lunar) due to a
packaging bug. It hasn't been an obvious issue especially when the
cinder-volume unit and the nova-compute unit are co-located since
nova-compute charm installs the package. Instead of applying a
workaround to all backend charms, let's apply the workaround in the
cinder charm since lsscsi is installed by default for later OpenStack
releases anyway and it's a small package.

Closes-Bug: #1939390
Change-Id: I131e12c53c78957873b6a75a3b1b67b1725b43ed
This commit is contained in:
Nobuto Murata 2024-08-20 12:11:46 +09:00
parent 0b1667a383
commit 9a6ab28af2

View File

@ -147,7 +147,10 @@ API_PACKAGES = [
'cinder-api',
'haproxy',
]
VOLUME_PACKAGES = ['cinder-volume']
# lsscsi is installed as a dependency of os-brick for jammy-antelope
# (lunar) or later. Explicit installation by the charm is only necessary
# for zed or older releases. LP: #1939390
VOLUME_PACKAGES = ['cinder-volume', 'lsscsi']
SCHEDULER_PACKAGES = ['cinder-scheduler']
DEFAULT_LOOPBACK_SIZE = '5G'