List volumes block_store call error

Bug #1757032 reported by chenyb4
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Released
Undecided
chenyb4

Bug Description

When i use python-openstacksdk call block_storage service appear block_store error. the error message look this.
ceback (most recent call last):
  File "connection_cluster.py", line 52, in <module>
    volume_list(conn)
  File "connection_cluster.py", line 49, in volume_list
    v = conn.block_store.volumes()
AttributeError: 'Connection' object has no attribute 'block_store'

When i use pdb test, the 'LOCAL_ALIASES' define error.
Pdb) p service_type
u'block-storage'
(Pdb) p LOCAL_ALIASES
{'baremetal': 'bare_metal', 'block_storage': 'block_store', 'clustering': 'cluster'}

The service_type is 'block-storage', but in LOCAL_ALIASES use block_storage, so this is LOCAL_ALIASES error.

chenyb4 (chenyb4)
Changed in python-openstacksdk:
assignee: nobody → chenyb4 (chenyb4)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstacksdk (master)

Fix proposed to branch: master
Review: https://review.openstack.org/554403

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

Reviewed: https://review.openstack.org/554403
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=ca3c3def347faa4dd610c54753d75b6472ef0457
Submitter: Zuul
Branch: master

commit ca3c3def347faa4dd610c54753d75b6472ef0457
Author: Yuanbin.Chen <email address hidden>
Date: Tue Mar 20 10:42:23 2018 +0800

    Fix 'block_store' aliases define error

    This patch fix volume aliases error, the service type use
    'block-storage', but aliases define use 'block_storage'.
    So, Can't use 'block_store' finish list volumes.

    Change-Id: I003f7064c13dc907833c2a1e66cc11a823d47be6
    Closes-Bug: #1757032

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

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/554749

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

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