We'd better not use "resource_id" in command heat-manage resource_data_list

Bug #1570704 reported by Di XiaoLi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
In Progress
Undecided
Unassigned

Bug Description

I am using command:
# heat-manage resource_data_list -h
usage: heat-manage resource_data_list [-h] resource_id

positional arguments:
  resource_id Stack resource id

This command needs the resource id parameter.

Then I try to use the following command to get the resource id that I need

#heat resource-show my_stack my_resource
But did not get the resource.id

Then I login the mysql db and got the id value:
mysql> select resource_id from resource_data;
+-------------+
| resource_id |
+-------------+
| 194 |

It is inconvenient for cloud operations for using this command, as he needs to get the resource id by login to the db.

We can change this command's parameters to resource_name and stack_id.

Di XiaoLi (dixiaoli)
description: updated
Changed in heat:
assignee: nobody → Di XiaoLi (dixiaobj)
Di XiaoLi (dixiaoli)
summary: - Show Resource Data API did not response the id of the resource.
+ We'd better not use "resource_id" in command heat-manage
+ resource_data_list
Di XiaoLi (dixiaoli)
description: updated
description: updated
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/306312

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 Di XiaoLi (<email address hidden>) on branch: master
Review: https://review.openstack.org/306312
Reason: Abandon it since feeling it's not a good approach.

Di XiaoLi (dixiaoli)
Changed in heat:
assignee: Di XiaoLi (dixiaoli) → nobody
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.