From 53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1 Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Tue, 22 Jun 2021 00:57:16 +0300 Subject: [PATCH] Add boto3 as s3 dependency for Glance container boto3 library is needed [1] for glance_store and didn't installed yet since [2] adds s3 support back. this change adds both binary and source parts to install boto3 library. 1. https://github.com/openstack/glance_store/blob/04e5ead7c000211a4c10104ed2bb65c9df7681ae/setup.cfg#L76 2. I203134837319080ead96da69048baf90086d2117 Closes-Bug: #1884259 Change-Id: I199185e24cedd2e282c53460a24aeffc83478a12 Signed-off-by: Maksim Malchuk --- docker/glance/glance-base/Dockerfile.j2 | 4 +++- releasenotes/notes/bug-1884259-23bdaa6c1c038a81.yaml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-1884259-23bdaa6c1c038a81.yaml diff --git a/docker/glance/glance-base/Dockerfile.j2 b/docker/glance/glance-base/Dockerfile.j2 index 5a691473fc..dbc19dcbc6 100644 --- a/docker/glance/glance-base/Dockerfile.j2 +++ b/docker/glance/glance-base/Dockerfile.j2 @@ -15,6 +15,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% if base_package_type == 'rpm' %} {% set glance_base_packages = [ 'openstack-glance', + 'python3-boto3', 'python3-oslo-vmware', 'python3-rados', 'python3-rbd' @@ -22,6 +23,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% elif base_package_type == 'deb' %} {% set glance_base_packages = [ 'glance', + 'python3-boto3', 'python3-os-brick', 'python3-oslo.vmware', 'python3-rados', @@ -55,7 +57,7 @@ ADD glance-base-archive /glance-base-source {% set glance_base_pip_packages = [ '/glance', - 'glance_store[cinder,vmware,swift]' + 'glance_store[cinder,vmware,swift,s3]' ] %} # add missing rootwrap config present in glance_store repo diff --git a/releasenotes/notes/bug-1884259-23bdaa6c1c038a81.yaml b/releasenotes/notes/bug-1884259-23bdaa6c1c038a81.yaml new file mode 100644 index 0000000000..2d7f2a2c06 --- /dev/null +++ b/releasenotes/notes/bug-1884259-23bdaa6c1c038a81.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes missing boto3 library required by glance_store. + `LP#1884259 `__