'quota set' command fails to set volume quotas

Bug #2084580 reported by Stephen Finucane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
High
Stephen Finucane

Bug Description

Our functional jobs have been permafailing since 2024-10-10 [1]. The failures are to do with quotas and I suspect the root cause is likely the recent removal of the 'volumev3' service catalog entry from DevStack.

[1] https://zuul.opendev.org/t/openstack/builds?job_name=osc-functional-devstack&project=openstack/python-openstackclient

Changed in python-openstackclient:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Stephen Finucane (stephenfinucane)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)
Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-openstackclient/+/932435
Committed: https://opendev.org/openstack/python-openstackclient/commit/7c6b47b451f30d1d3965358c515baae87955d7dc
Submitter: "Zuul (22348)"
Branch: master

commit 7c6b47b451f30d1d3965358c515baae87955d7dc
Author: Stephen Finucane <email address hidden>
Date: Tue Oct 15 17:41:50 2024 +0100

    clientmanager: Check for 'block-storage' service type

    This is a fun one driven by two separate changes. We recently started
    checking whether the volume service was available before setting quotas
    in order to allow us to use quota set for other services [1]. This
    merged a number of weeks ago and was included in 7.1.0. More recently,
    we modified DevStack to stop publishing a service catalog entry with a
    service type of 'volumev3', preferring instead to use the correct
    'block-storage' service type. Taken separately, neither of these changes
    would have caused issues. Together, they mean our lookups for the volume
    service now fail and we can't set volume quotas.

    Fix things by checking for the block-storage service type also. A future
    change will raise a warning (later an error) if the volume service is
    not found and you're attempting to set a quota since this is clearly a
    mistake.

    Change-Id: Ibbeef52225e18757cd28d0fbfb14c1ca06975b60
    Signed-off-by: Stephen Finucane <email address hidden>
    Closes-bug: #2084580

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

Reviewed: https://review.opendev.org/c/openstack/python-openstackclient/+/932640
Committed: https://opendev.org/openstack/python-openstackclient/commit/c6946f4743533449b5b8a3db2b1a8fe099b842da
Submitter: "Zuul (22348)"
Branch: stable/2024.2

commit c6946f4743533449b5b8a3db2b1a8fe099b842da
Author: Stephen Finucane <email address hidden>
Date: Tue Oct 15 17:41:50 2024 +0100

    clientmanager: Check for 'block-storage' service type

    This is a fun one driven by two separate changes. We recently started
    checking whether the volume service was available before setting quotas
    in order to allow us to use quota set for other services [1]. This
    merged a number of weeks ago and was included in 7.1.0. More recently,
    we modified DevStack to stop publishing a service catalog entry with a
    service type of 'volumev3', preferring instead to use the correct
    'block-storage' service type. Taken separately, neither of these changes
    would have caused issues. Together, they mean our lookups for the volume
    service now fail and we can't set volume quotas.

    Fix things by checking for the block-storage service type also. A future
    change will raise a warning (later an error) if the volume service is
    not found and you're attempting to set a quota since this is clearly a
    mistake.

    Change-Id: Ibbeef52225e18757cd28d0fbfb14c1ca06975b60
    Signed-off-by: Stephen Finucane <email address hidden>
    Closes-bug: #2084580
    (cherry picked from commit 7c6b47b451f30d1d3965358c515baae87955d7dc)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 7.2.1

This issue was fixed in the openstack/python-openstackclient 7.2.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 7.1.4

This issue was fixed in the openstack/python-openstackclient 7.1.4 Dalmatian 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.