Adding '--wrap' functionality to Magnum Client

Bug #1710587 reported by M V P Nitesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-magnumclient
In Progress
Undecided
M V P Nitesh

Bug Description

When cluster creation is failed and when we do "magnum cluster-show <cluster-id/cluster-name>" the output is not in a readable format. Will wrap the output, by adding '--wrap' as an argument in all show commands of magnum.

Eg:
:~$ magnum cluster-show swarm-cluster
+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------+
| Property | Value

                                                                             |
+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------+
| status | CREATE_FAILED

                                                                             |
| cluster_template_id | 6e39806e-3666-4021-a168-af97395ebae6

                                                                             |
| node_addresses | []

                                                                             |
| docker_volume_size | -

                                                                             |
| stack_id | fa211270-9464-4577-85b5-692b53c691f1

                                                                             |
| status_reason | Resource CREATE failed: WaitConditionFailure: resources.swarm_masters.resources[0].resources.master_wait_condition: swarm-manager service failed
 to start.
                                                                             | [1616/1825]
| created_at | 2017-08-02T13:21:23+00:00

                                                                             |
| name | swarm-cluster

                                                                             |
| updated_at | 2017-08-02T13:23:43+00:00

                                                                             |
| coe_version | 1.2.5

                                                                             |
| faults | {'swarm_masters': 'WaitConditionFailure: resources.swarm_masters.resources[0].resources.master_wait_condition: swarm-manager service failed to s
tart.', 'master_wait_condition': 'WaitConditionFailure: resources.master_wait_condition: swarm-manager service failed to start.', '0': 'WaitConditionFailure: resources[
0].resources.master_wait_condition: swarm-manager service failed to start.'} |
| keypair | mykey

                                                                             |
| api_address | tcp://:2376

                                                                             |
| master_addresses | ['172.24.4.6']

                                                                             |
| create_timeout | 60

                                                                             |
| node_count | 2

                                                                             |
| discovery_url | https://discovery.etcd.io/9363bea7811c3e3091de3e0223035d47

                                                                             |
| master_count | 1

                                                                             |
| container_version | 1.12.6

                                                                             |
| uuid | ea00daf6-adbb-4d35-b3ea-ba9599cfe1d9

                                                                             |
+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------+

M V P Nitesh (m-nitesh)
Changed in python-magnumclient:
assignee: nobody → M V P Nitesh (m-nitesh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-magnumclient (master)

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

Changed in python-magnumclient:
status: New → In Progress
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.