glance chart fails with Swift backend using PY3 images

Bug #1839772 reported by Andrii Ostapenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-helm
Fix Released
Undecided
Andrii Ostapenko

Bug Description

Affected images: rocky-ubuntu_bionic, stein-ubuntu_bionic

ERROR glance.common.wsgi File "/usr/local/lib/python3.6/dist-packages/glance_store/capabilities.py", line 225, in op_checker
ERROR glance.common.wsgi return store_op_fun(store, *args, **kwargs)
ERROR glance.common.wsgi File "/usr/local/lib/python3.6/dist-packages/glance_store/_drivers/swift/store.py", line 935, in add
ERROR glance.common.wsgi allow_reauth=need_chunks) as manager:
ERROR glance.common.wsgi File "/usr/local/lib/python3.6/dist-packages/glance_store/_drivers/swift/store.py", line 1416, in get_manager
ERROR glance.common.wsgi allow_reauth)
ERROR glance.common.wsgi File "/usr/local/lib/python3.6/dist-packages/glance_store/_drivers/swift/connection_manager.py", line 62, in __init__
ERROR glance.common.wsgi self.storage_url = self._get_storage_url()
ERROR glance.common.wsgi File "/usr/local/lib/python3.6/dist-packages/glance_store/_drivers/swift/connection_manager.py", line 163, in _get_storage_url
ERROR glance.common.wsgi raise exceptions.BackendException(msg)
ERROR glance.common.wsgi glance_store.exceptions.BackendException: Cannot find swift service endpoint : The request you have made requires authentication. (HTTP 401) (Request-ID: req-16be9a92-f54b-4c97-8312-9138973fa67b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-helm (master)

Fix proposed to branch: master
Review: https://review.opendev.org/675789

Changed in openstack-helm:
assignee: nobody → Andrii Ostapenko (aostapenko)
status: New → In Progress
Revision history for this message
Andrii Ostapenko (aostapenko) wrote :

glance_store uses bare ConfigParser for swift configuration:
https://github.com/openstack/glance_store/blob/stable/stein/glance_store/_drivers/swift/utils.py
(affects both ConfigParser and SafeConfigParser in PY3)

that ceased to strip quotes in PY3. That leads to invalid auth parameters and failure to authenticate: 'project_domain_id': '""', 'user_domain_id': '""'

Revision history for this message
Andrii Ostapenko (aostapenko) wrote :

Related bug in glance_store: https://review.opendev.org/#/c/675792/

Revision history for this message
Andrii Ostapenko (aostapenko) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-helm (master)

Reviewed: https://review.opendev.org/675789
Committed: https://git.openstack.org/cgit/openstack/openstack-helm/commit/?id=16af388ece504b47e977120b28cb25a7239592cf
Submitter: Zuul
Branch: master

commit 16af388ece504b47e977120b28cb25a7239592cf
Author: Andrii Ostapenko <email address hidden>
Date: Sun Aug 11 11:41:07 2019 -0500

    Don't use quotes in glance swift configuration

    glance_store uses bare ConfigParser for swift configuration, that
    ceased to strip quotes in PY3. That leads to invalid auth parameters
    (e.g. 'project_domain_id': '""') and failure to authenticate.

    Current CI process does not hit this issue because Swift backend
    is not used.

    Change-Id: I6d2c129e6747a3c5fcd2da0c88b0a2135775a914
    Closes-bug: #1839772

Changed in openstack-helm:
status: In Progress → Fix Released
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.