From d1764e42cd9079fc0e1be4dc90fe475fcd42f035 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 17 Feb 2021 08:47:47 +0100 Subject: [PATCH] cinder: add boto3 dependency cinder in master requires boto3 now, otherwise you get: File "/home/abuild/rpmbuild/BUILD/cinder-17.1.0.dev218/cinder/backup/drivers/s3.py", line 74, in import boto3 ModuleNotFoundError: No module named 'boto3' Change-Id: I05f8c8458f13ab18e68b248689a513682ef50f38 --- openstack/cinder/cinder.spec.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openstack/cinder/cinder.spec.j2 b/openstack/cinder/cinder.spec.j2 index 820001de5..2bfc53cb2 100644 --- a/openstack/cinder/cinder.spec.j2 +++ b/openstack/cinder/cinder.spec.j2 @@ -29,6 +29,7 @@ BuildRequires: {{ py3('PyMySQL') }} BuildRequires: {{ py3('SQLAlchemy') }} BuildRequires: {{ py3('SQLAlchemy-Utils') }} BuildRequires: {{ py3('python-barbicanclient') }} +BuildRequires: {{ py3('boto3') }} BuildRequires: {{ py3('castellan') }} BuildRequires: {{ py3('cryptography') }} BuildRequires: {{ py3('cursive') }} @@ -107,6 +108,7 @@ Requires: {{ py3('Routes') }} Requires: {{ py3('SQLAlchemy') }} Requires: {{ py3('WebOb') }} Requires: {{ py3('python-barbicanclient') }} +Requires: {{ py3('boto3') }} Requires: {{ py3('castellan') }} Requires: {{ py3('cryptography') }} Requires: {{ py3('cursive') }} @@ -315,9 +317,12 @@ exit 0 %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %check +%if 0%{?rdo} +# requires python-moto package which is missing in RDO +rm -f cinder/tests/unit/backup/drivers/test_backup_s3.py +%endif stestr run - %post api %systemd_post %{name}-api.service