Restart glance-api gives import error boto3

Bug #1894810 reported by likui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Committed
Undecided
likui

Bug Description

Restart glance-api gives import error boto3

error log:

2020-09-08 16:28:44.877 19 INFO glance.db.sqlalchemy.metadata [-] File /etc/glance/metadefs/operating-system.json loaded to database.
2020-09-08 16:28:45.066 19 INFO glance.db.sqlalchemy.metadata [-] File /etc/glance/metadefs/software-databases.json loaded to database.
2020-09-08 16:28:45.168 19 INFO glance.db.sqlalchemy.metadata [-] File /etc/glance/metadefs/software-runtimes.json loaded to database.
2020-09-08 16:28:45.254 19 INFO glance.db.sqlalchemy.metadata [-] File /etc/glance/metadefs/software-webservers.json loaded to database.
2020-09-08 16:28:45.283 19 INFO glance.db.sqlalchemy.metadata [-] File /etc/glance/metadefs/storage-volume-type.json loaded to database.
2020-09-08 16:28:45.284 19 INFO glance.db.sqlalchemy.metadata [-] Metadata loading finished
2020-09-08 16:28:53.122 7 INFO glance.async_ [-] Threadpool model set to 'EventletThreadPoolModel'
2020-09-08 16:28:54.136 7 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible
 but deprecated behaviour. Please set this to True.
2020-09-08 16:28:55.492 7 ERROR stevedore.extension [-] Could not load 'glance.store.s3.Store': No module named 'boto3': ModuleNotFoundError: No module named 'boto3'
2020-09-08 16:28:55.599 7 ERROR stevedore.extension [-] Could not load 's3': No module named 'boto3': ModuleNotFoundError: No module named 'boto3'

likui (likui)
Changed in glance:
assignee: nobody → likui (likui)
Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by likui (<email address hidden>) on branch: master
Review: https://review.opendev.org/750300

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

I think what happens here is that glance-store tries to load s3 store module when it's even not configured.
I was facing smth common with other service, when it failed to load module which was not even required. I guess it might be also related to oslo (but not sure)

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

Need additional information about this, how to configure s3 will be more useful.

Changed in glance:
status: In Progress → Incomplete
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

This is fixed in https://review.opendev.org/c/openstack/glance_store/+/874534 (commit 7dc94f7a85e976a9c66f997f944c6ede06d7984a). We probably will not backport this.

Changed in glance:
status: Incomplete → Fix Committed
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.