Browse Source

Add nfs dependencies to glance container

Glance API image lacked nfs programs/utils to be able to mount
NFS exports.
This affected Glance usage with Cinder backend when NFS was used
as Cinder backend.

Closes-Bug: #1868574

Change-Id: I3aac1e6a7f7c5f839b036f15713af949fba206cc
changes/91/714391/4
Rajat Dhasmana 1 year ago
committed by whoami-rajat
parent
commit
cac9d46aa6
  1. 10
      docker/glance/glance-api/Dockerfile.j2
  2. 6
      releasenotes/notes/bug-1868574.yaml

10
docker/glance/glance-api/Dockerfile.j2

@ -9,12 +9,16 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
{% if distro_package_manager == 'dnf' or base_distro not in ['centos'] %}
{% set glance_api_packages = ['qemu-img'] %}
{% set glance_api_packages = ['qemu-img'] %}
{% else %}
{% set glance_api_packages = ['qemu-img-ev'] %}
{% set glance_api_packages = ['qemu-img-ev'] %}
{% endif %}
{% set glance_api_packages = glance_api_packages + ['nfs-utils'] %}
{% elif base_package_type == 'deb' %}
{% set glance_api_packages = ['qemu-utils'] %}
{% set glance_api_packages = [
'nfs-common',
'qemu-utils'
] %}
{% endif %}
{{ macros.install_packages(glance_api_packages | customizable("packages")) }}

6
releasenotes/notes/bug-1868574.yaml

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes Glance inability to use Cinder NFS backend for images by including
NFS client components in the Glance API image.
`LP#1868574 <https://launchpad.net/bugs/1868574>`__
Loading…
Cancel
Save