GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Code
  • Bugs
  • Blueprints
  • Translations
  • Answers
  • Report a bug
  • Edit bug mail

This view

  • Original page
  • New address

GeezerVison is showing bugs.launchpad.net — Bug #2150856 “openstack volume group type show uses parsed_args....” : Bugs : python-openstackclient

Log in / Register

python-openstackclient

  • Overview
  • Code
  • Bugs
  • Blueprints
  • Translations
  • Answers

openstack volume group type show uses parsed_args.group instead of parsed_args.group_type

Bug #2150856 reported by Inyong Hong on 2026-05-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Inyong Hong

Bug Description

Description
In openstackclient/volume/v3/volume_group_type.py, the ShowVolumeGroupType command defines the positional argument as group_type, but take_action() looks up parsed_args.group instead of parsed_args.group_type.
Relevant code:
- parser definition: openstackclient/volume/v3/volume_group_type.py:394-398
- buggy lookup: openstackclient/volume/v3/volume_group_type.py:413-416
Current code:
parser.add_argument(
    'group_type',
    metavar='<group_type>',
    help=_('Name or ID of volume group type.'),
)
...
group_type = utils.find_resource(
    volume_client.group_types,
    parsed_args.group,
)

Because the parser stores the positional argument in parsed_args.group_type, accessing parsed_args.group is inconsistent and appears to be a bug.
Steps to reproduce
1. Use a deployment with Cinder API version >= 3.11
2. Run:
      openstack --os-volume-api-version 3.11 volume group type show <group-type>
3. Observe that the command fails when trying to access the parsed argument.

Expected result
The command should resolve the requested volume group type using parsed_args.group_type and display the group type details.

Actual result
The command fails with:
AttributeError: 'Namespace' object has no attribute 'group'

Impact
openstack volume group type show is broken for valid input because it references the wrong parsed argument name.

Proposed fix
Change:
parsed_args.group
to:
parsed_args.group_type

Inyong Hong (hong-p) on 2026-05-04
Changed in python-openstackclient:
assignee: nobody → Inyong Hong (hong-p)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-09: Fix proposed to python-openstackclient (master) #1

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/python-openstackclient/+/987976

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-18: Fix merged to python-openstackclient (master) #2

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

commit 05ffb117516e4758fb994a4a9211d46bac3be226
Author: hong-p <email address hidden>
Date: Sat May 9 19:14:22 2026 +0900

    fix: use correct parsed_args attribute in volume group type show

    The ShowVolumeGroupType.take_action() was referencing parsed_args.group
    instead of parsed_args.group_type, causing an AttributeError on every
    invocation.

    Closes-Bug: #2150856
    Change-Id: I6924040580af2bc2f30e2bc5f03a366cbb9fe6ef
    Signed-off-by: hongp <email address hidden>

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix proposed to python-openstackclient (stable/2025.1) #3

Fix proposed to branch: stable/2025.1
Review: https://review.opendev.org/c/openstack/python-openstackclient/+/989332

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix proposed to python-openstackclient (stable/2025.2) #4

Fix proposed to branch: stable/2025.2
Review: https://review.opendev.org/c/openstack/python-openstackclient/+/989333

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix proposed to python-openstackclient (stable/2026.1) #5

Fix proposed to branch: stable/2026.1
Review: https://review.opendev.org/c/openstack/python-openstackclient/+/989334

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix merged to python-openstackclient (stable/2025.2) #6

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

commit ca50e097711858b6dee309b121e383cd5be3959f
Author: hong-p <email address hidden>
Date: Sat May 9 19:14:22 2026 +0900

    fix: use correct parsed_args attribute in volume group type show

    The ShowVolumeGroupType.take_action() was referencing parsed_args.group
    instead of parsed_args.group_type, causing an AttributeError on every
    invocation.

    Closes-Bug: #2150856
    Change-Id: I6924040580af2bc2f30e2bc5f03a366cbb9fe6ef
    Signed-off-by: hongp <email address hidden>
    (cherry picked from commit 05ffb117516e4758fb994a4a9211d46bac3be226)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix merged to python-openstackclient (stable/2025.1) #7

Reviewed: https://review.opendev.org/c/openstack/python-openstackclient/+/989332
Committed: https://opendev.org/openstack/python-openstackclient/commit/359ab862944434fb3cd62729176533d3327b9248
Submitter: "Zuul (22348)"
Branch: stable/2025.1

commit 359ab862944434fb3cd62729176533d3327b9248
Author: hong-p <email address hidden>
Date: Sat May 9 19:14:22 2026 +0900

    fix: use correct parsed_args attribute in volume group type show

    The ShowVolumeGroupType.take_action() was referencing parsed_args.group
    instead of parsed_args.group_type, causing an AttributeError on every
    invocation.

    Closes-Bug: #2150856
    Change-Id: I6924040580af2bc2f30e2bc5f03a366cbb9fe6ef
    Signed-off-by: hongp <email address hidden>
    (cherry picked from commit 05ffb117516e4758fb994a4a9211d46bac3be226)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-05-20: Fix merged to python-openstackclient (stable/2026.1) #8

Reviewed: https://review.opendev.org/c/openstack/python-openstackclient/+/989334
Committed: https://opendev.org/openstack/python-openstackclient/commit/36a175e6185a491ab57ac877a1fbe2217429de0b
Submitter: "Zuul (22348)"
Branch: stable/2026.1

commit 36a175e6185a491ab57ac877a1fbe2217429de0b
Author: hong-p <email address hidden>
Date: Sat May 9 19:14:22 2026 +0900

    fix: use correct parsed_args attribute in volume group type show

    The ShowVolumeGroupType.take_action() was referencing parsed_args.group
    instead of parsed_args.group_type, causing an AttributeError on every
    invocation.

    Closes-Bug: #2150856
    Change-Id: I6924040580af2bc2f30e2bc5f03a366cbb9fe6ef
    Signed-off-by: hongp <email address hidden>
    (cherry picked from commit 05ffb117516e4758fb994a4a9211d46bac3be226)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-06-10: Fix included in openstack/python-openstackclient 10.1.0 #9

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-09-15: Fix included in openstack/python-openstackclient 7.5.1 #10

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote on 2026-10-22: Fix included in openstack/python-openstackclient 9.0.1 #11

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

See full activity log
To post a comment you must log in.
  • Report a bug
This report contains Public information  
Everyone can see this information.
You are not directly subscribed to this bug's notifications.
Subscribing...
  • Edit bug mail

Other bug subscribers

Subscribe someone else

Remote bug watches

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

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.