Glance API missing boto3 after S3 backend addition

Bug #1884259 reported by Lars Wiegman
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Wishlist
Maksim Malchuk

Bug Description

Deployment of Glance API service fails with the Docker image kolla/ubuntu-source-glance-api:ussuri due to missing Python module "boto3".

**Error**:

2020-06-19 11:45:48.991 6 ERROR stevedore.extension [-] Could not load 'glance.store.s3.Store': No module named 'boto3': ModuleNotFoundError: No module named 'boto3'
2020-06-19 11:45:49.005 6 ERROR stevedore.extension [-] Could not load 's3': No module named 'boto3': ModuleNotFoundError: No module named 'boto3'

**glance-api.conf**:
[DEFAULT]
debug = False
log_file = /var/log/kolla/glance/glance-api.log
use_forwarded_for = true
workers = 5
enabled_backends = rbd:rbd
show_multiple_locations = True
cinder_catalog_info = volume:cinder:internalURL

[glance_store]
default_backend = rbd

The Python module boto3 is not available in the Docker image:

/var/lib/kolla/venv/bin/pip freeze | grep glance-store
glance-store==2.0.0
/var/lib/kolla/venv/bin/pip freeze | grep -c boto3
0

**Environment**:
* OS (e.g. from /etc/os-release): Ubuntu 18.04 LTS
* Kernel (e.g. `uname -a`): Linux <> 4.15.0-19-generic
* Docker version if applicable (e.g. `docker version`): 19.03.11
* Kolla version (e.g. `git head or tag or stable branch` or pip package version if using release): stable/ussuri

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

This only affects S3 backend. RBD probably failed due to a different reason. Try restarting the container.

Revision history for this message
Lars Wiegman (lars-fuga) wrote :

I do not have a S3 backend configured, just RBD.

The container goes in a reboot loop due to this error.

Revision history for this message
Lars Wiegman (lars-fuga) wrote :

Bug can be closed. Although it's throwing an error it isn't fatal and the process continues.

Somewhat related issue https://bugs.launchpad.net/glance-store/+bug/1426767

Mark Goddard (mgoddard)
Changed in kolla:
status: New → Invalid
sst (sst1230)
information type: Public → Public Security
Revision history for this message
Mark Goddard (mgoddard) wrote :

I don't think this is a security bug, is it?

sst (sst1230)
information type: Public Security → Public
information type: Public → Public Security
information type: Public Security → Private
information type: Private → Public
information type: Public → Public Security
information type: Public Security → Private
information type: Private → Public
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

The issue exists since s3 support added back in the https://review.opendev.org/c/openstack/glance_store/+/695844

Changed in kolla:
status: Invalid → Confirmed
assignee: nobody → Maksim Malchuk (mmalchuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/797355

Changed in kolla:
status: Confirmed → In Progress
summary: - Glance Ussuri missing boto3 after S3 backend addition
+ Glance API missing boto3 after S3 backend addition
Mark Goddard (mgoddard)
Changed in kolla:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/797355
Committed: https://opendev.org/openstack/kolla/commit/53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1
Submitter: "Zuul (22348)"
Branch: master

commit 53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1
Author: Maksim Malchuk <email address hidden>
Date: Tue Jun 22 00:57:16 2021 +0300

    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 <email address hidden>

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla/+/802755

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/kolla/+/802756

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/kolla/+/802757

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/802755
Committed: https://opendev.org/openstack/kolla/commit/a7c5173b366ff8ebcc1efdbe51f594fef6342ba3
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit a7c5173b366ff8ebcc1efdbe51f594fef6342ba3
Author: Maksim Malchuk <email address hidden>
Date: Tue Jun 22 00:57:16 2021 +0300

    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 <email address hidden>
    (cherry picked from commit 53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/802756
Committed: https://opendev.org/openstack/kolla/commit/1aba4e72a26165f4d2092430baef1350614ec479
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 1aba4e72a26165f4d2092430baef1350614ec479
Author: Maksim Malchuk <email address hidden>
Date: Tue Jun 22 00:57:16 2021 +0300

    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 <email address hidden>
    (cherry picked from commit 53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1)

tags: added: in-stable-victoria
tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/802757
Committed: https://opendev.org/openstack/kolla/commit/9f3660a6c2a51fd75c4b04512fe5a45140b3feae
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 9f3660a6c2a51fd75c4b04512fe5a45140b3feae
Author: Maksim Malchuk <email address hidden>
Date: Tue Jun 22 00:57:16 2021 +0300

    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 <email address hidden>
    (cherry picked from commit 53b391d3612a322ad13e1ec65e2ed9ba7e94a3c1)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 13.0.0.0rc1

This issue was fixed in the openstack/kolla 13.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 10.4.0

This issue was fixed in the openstack/kolla 10.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 11.2.0

This issue was fixed in the openstack/kolla 11.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 12.1.0

This issue was fixed in the openstack/kolla 12.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.