Deprecated glanceclient exceptions are still used

Bug #2059821 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
Takashi Kajinami
OpenStack Compute (nova)
In Progress
Undecided
Takashi Kajinami
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Takashi Kajinami

Bug Description

Description
===========
The exceptions in glanceclient.exc were deprecated in glanceclient 0.4.0[1].
 glanceclient.exc.Forbidden
 glanceclient.exc.NotFound
 glanceclient.exc.ServiceUnavailable
 glanceclient.exc.Unauthorized

https://github.com/openstack/python-glanceclient/commit/354c98b087515dc4303a07d1ff0d9a9d7b4dd48b

But these are still used in the code.

We should replace these by the new HTTP* exceptions.

Changed in cinder:
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in nova:
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in cinder:
status: New → In Progress
Changed in nova:
status: New → In Progress
Revision history for this message
Takashi Kajinami (kajinamit) wrote :
Changed in horizon:
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/914792
Committed: https://opendev.org/openstack/horizon/commit/8cca9edbd84d378012af701c22077f1c84767bf7
Submitter: "Zuul (22348)"
Branch: master

commit 8cca9edbd84d378012af701c22077f1c84767bf7
Author: Takashi Kajinami <email address hidden>
Date: Sun Mar 31 11:13:34 2024 +0900

    Replace deprecated glanceclient exceptions

    These exceptions were deprecated in 0.4.0[1].

    Also glanceclient.common.exceptions was deprecated in favor of
    glanceclient.exc[2].

    [1] 354c98b087515dc4303a07d1ff0d9a9d7b4dd48b
    [2] 53acf1a0ca70c900267286a249e476fffe078a9f

    Closes-Bug: #2059821
    Change-Id: If119a261f52b99fe9faf4b8f749a2abbd7a79957

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by "sean mooney <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/nova/+/914761
Reason: abandoning for now as this does not seam to be a nova issues but we can restore if needed.

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

This issue was fixed in the openstack/horizon 25.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.