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
(cherry picked from commit cac9d46aa6)
changes/17/722417/1
Rajat Dhasmana 1 year ago
committed by Radosław Piliszek
parent
commit
e22fb9796e
  1. 9
      docker/glance/glance-api/Dockerfile.j2
  2. 6
      releasenotes/notes/bug-1868574.yaml

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

@ -6,11 +6,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux'] %}
{% set glance_api_packages = ['qemu-img-ev'] %}
{% set glance_api_packages = ['nfs-utils', 'qemu-img-ev'] %}
{% elif base_distro == 'rhel' %}
{% set glance_api_packages = ['qemu-img'] %}
{% set glance_api_packages = ['nfs-utils', 'qemu-img'] %}
{% 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