openstack stack output show stack1 output1 reports inconsistent result formats

Bug #1571976 reported by Kanagaraj Manickam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
In Progress
Low
Unassigned

Bug Description

openstack stack output show command output format is not consistent across multiple options
as given below:

manickan@mrkanag-os:~/workspace/hot-tutorials$ openstack stack output show test1 random_str
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| description | No description given |
| output_key | random_str |
| output_value | 90DsmZUvliv0R1ZyhwG6R4tHKR7ICQ0B |
+--------------+----------------------------------+

manickan@mrkanag-os:~/workspace/hot-tutorials$ openstack stack output show test1 --all
+------------+--------------------------------------------------------+
| Field | Value |
+------------+--------------------------------------------------------+
| random_str | { |
| | "output_value": "90DsmZUvliv0R1ZyhwG6R4tHKR7ICQ0B", |
| | "output_key": "random_str", |
| | "description": "No description given" |
| | } |
+------------+--------------------------------------------------------+

Its always expected that the field list is know to user when 'show' command is used, when --all is used the field list is not consistent.
To provide -all options, better to give '--more' in 'openstack stack output list test1 --more', which will report addition column
'value' in addition to 'name', description'.

Thomas Herve (therve)
affects: heat → python-heatclient
Revision history for this message
Di XiaoLi (dixiaoli) wrote :

For inconsistent result formats, I think we can unify them into the format which displayed when using --all option.

For adding "--more" option in command output list, I think we do not need to do this for now. The reasons are:
1. The output list api just returned the key and description:
RESP BODY: {"outputs": [{"output_key": "status_code", "description": "No description given"}, {"output_key": "result", "description": "No description given"}, {"output_key": "stderr", "description": "No description given"}, {"output_key": "stdout", "description": "No description given"}]}
2. Users can use show command to see the value.

Di XiaoLi (dixiaoli)
Changed in python-heatclient:
assignee: nobody → Di XiaoLi (dixiaobj)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

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

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

Change abandoned by Di XiaoLi (<email address hidden>) on branch: master
Review: https://review.openstack.org/308238
Reason: Abandon for do not break compatibility.

Di XiaoLi (dixiaoli)
Changed in python-heatclient:
assignee: Di XiaoLi (dixiaobj) → nobody
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.