resource show doesn't accept resource ids, only resource name

Bug #1620291 reported by Peter Razumovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Won't Fix
Low
Peter Razumovsky

Bug Description

@:~/devstack$ time openstack stack create q -t templates/cinder/quota.yaml --parameter pr=admin
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| id | 219f438c-c136-4ca2-8c78-457f3d0e206a |
| stack_name | q |
| description | No description |
| creation_time | 2016-09-05T12:10:22 |
| updated_time | None |
| stack_status | CREATE_IN_PROGRESS |
| stack_status_reason | Stack CREATE started |
+---------------------+--------------------------------------+

real 0m3.420s
user 0m0.936s
sys 0m0.084s
@:~/devstack$ openstack stack resource list q
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
+---------------+----------------------+-------------------+-----------------+---------------------+
| resource_name | physical_resource_id | resource_type | resource_status | updated_time |
+---------------+----------------------+-------------------+-----------------+---------------------+
| quota | q-quota-t6wizxy6f4tm | OS::Cinder::Quota | CREATE_COMPLETE | 2016-09-05T12:10:22 |
+---------------+----------------------+-------------------+-----------------+---------------------+
@:~/devstack$ openstack stack resource show q quota
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| attributes | {u'per_volume_gigabytes': -1, u'volumes_lvmdriver-1': -1, u'gigabytes': 1000, u'backup_gigabytes': 1000, u'snapshots': 10, u'gigabytes_lvmdriver-1': -1, u'volumes': 10, |
| | u'snapshots_lvmdriver-1': -1, u'backups': 10, u'id': u'q-quota-t6wizxy6f4tm'} |
| creation_time | 2016-09-05T12:10:22 |
| description | |
| links | [{u'href': u'http://192.168.122.190:8004/v1/1b917a9f6c0e48608487fe7a9d8e74d2/stacks/q/219f438c-c136-4ca2-8c78-457f3d0e206a/resources/quota', u'rel': u'self'}, {u'href': |
| | u'http://192.168.122.190:8004/v1/1b917a9f6c0e48608487fe7a9d8e74d2/stacks/q/219f438c-c136-4ca2-8c78-457f3d0e206a', u'rel': u'stack'}] |
| logical_resource_id | quota |
| physical_resource_id | q-quota-t6wizxy6f4tm |
| required_by | [] |
| resource_name | quota |
| resource_status | CREATE_COMPLETE |
| resource_status_reason | state changed |
| resource_type | OS::Cinder::Quota |
| updated_time | 2016-09-05T12:10:22 |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@:~/devstack$ openstack stack resource show q q-quota-t6wizxy6f4tm
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
Stack or resource not found: q q-quota-t6wizxy6f4tm

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

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

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

Change abandoned by Peter Razumovsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/365651
Reason: After conversation with therve, tiantian comment and rethinking I recognize this was not good idea. Heat resources are unique by name, not ID, which represents entity of resource plugin. Heat doesn't need in that change.

Changed in heat:
status: In Progress → Won't Fix
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.