Heat: The <EVENT> parameter in "heat event-show" is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Thomas Herve |
Bug Description
[Summary]
The <EVENT> parameter in "heat event-show" is not working
[Topo]
devstack all-in-one node
[Description and expect result]
The <EVENT> parameter in "heat event-show" is working, can show one event if event parameter is specified.
[Reproduceable or not]
reproduceable
[Recreate Steps]
1) create a heat stack "skystack":
root@45-
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| 532a9e8b-
+------
root@45-
2)all events of the stack can be list:
root@45-
+------
| resource_name | id | resource_
+------
| skystack | 3f2df8f2-
| router1 | 4d280323-
| private_net | be570107-
| ssh_secgroup | 73ebebac-
| private_net | ae5b0a4b-
| router1 | 9c18b835-
| ssh_secgroup | 95618a36-
| private_subnet | a23aced7-
| private_subnet | 3d919da1-
| server1_port | 06fbea27-
| router1_interface | ba235882-
| router1_interface | e05f3ef2-
| server1_port | aebe676a-
| server1 | c9420898-
| server1_floating_ip | 88185dbc-
| server1_floating_ip | 4b7c3ece-
| server1 | e1500a53-
| skystack | f4c10b87-
+------
root@45-
3)we can see, there is 2 events for resource "server1_
root@45-
| server1_floating_ip | 88185dbc-
| server1_floating_ip | 4b7c3ece-
root@45-
root@45-
root@45-
4) try to show the first event by "heat event-show <NAME or ID> <RESOURCE> <EVENT>", and the event id of the first event is specified, but not work, we got the second event from the output info:
root@45-
usage: heat event-show <NAME or ID> <RESOURCE> <EVENT>
heat event-show: error: too few arguments
root@45-
+------
| Property | Value |
+------
| event_time | 2015-12-08T16:14:44 |
| id | 4b7c3ece-
| links | http://
| | http://
| | http://
| logical_resource_id | server1_floating_ip |
| physical_
| resource_name | server1_floating_ip |
| resource_properties | { |
| | "floating_network": "c2592b59-
| | "floating_
| | "fixed_ip_address": null, |
| | "floating_
| | "value_specs": {}, |
| | "port_id": "47218ead-
| | } |
| resource_status | CREATE_COMPLETE |
| resource_
| resource_type | OS::Neutron:
+------
root@45-
[Configration]
reproduceable bug, no need
[logs]
reproduceable bug, no need
[Root cause anlyze or debug inf]
reproduceable bug
[Attachment]
None
tags: | added: liberty-backport-potential |
We introduced a regression in https:/ /bugs.launchpad .net/heat/ +bug/1502751. Needs to fix it in liberty too.