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)
This commit is contained in:
Rajat Dhasmana 2020-03-23 07:33:03 +00:00 committed by Radosław Piliszek
parent 95e421483e
commit e22fb9796e
2 changed files with 12 additions and 3 deletions

View File

@ -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")) }}

View File

@ -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>`__