openstack database instance list result display format error

Bug #1734228 reported by Yao Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-troveclient
Fix Released
Medium
Yao Wang

Bug Description

With this command I got the result as below. Obvious, the first instance show normal, but the second instance's datastore, datastroe_version , size and flavor was abnormal display.

openstack database instance list --include_clustered
+--------------------------------------+------------------------+-------------------------------------------------+-------------------+--------+-----------+------+--------+
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size | Region |
+--------------------------------------+------------------------+-------------------------------------------------+-------------------+--------+-----------+------+--------+
| d612b955-ad79-4b24-8aa5-bf4b86c44668 | zgcl-110202-member-100 | mysql | 5.6-cluster | ACTIVE | 310 | 1 | |
| ab1eb79c-3322-4781-9f6f-844bb1307e22 | zgcl-110202-member-50 | {u'version': u'5.6-cluster', u'type': u'mysql'} | | ACTIVE | | | |
+--------------------------------------+------------------------+-------------------------------------------------+-------------------+--------+-----------+------+--------+

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

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

Changed in python-troveclient:
assignee: nobody → Yao Wang (nihaome521)
status: New → In Progress
Changed in python-troveclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-troveclient (master)

Reviewed: https://review.openstack.org/522686
Committed: https://git.openstack.org/cgit/openstack/python-troveclient/commit/?id=ec601fb0ee399c56251289827a6dcdf32f2918e9
Submitter: Zuul
Branch: master

commit ec601fb0ee399c56251289827a6dcdf32f2918e9
Author: wangyao <email address hidden>
Date: Fri Nov 24 10:31:00 2017 +0800

    Fix abnormal display with openstack database instance list

    According bug description, openstack database instance list
    abnormal display except first instance. The cause of the problem
    is method set_attributes_for_print when return instances got a
    wrong indentation. So just modify this. And modify tests to
    validate it.

    Change-Id: I6124706ba79ab13bbd769631f491e314784652c7
    Closes-Bug: #1734228

Changed in python-troveclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-troveclient 2.14.0

This issue was fixed in the openstack/python-troveclient 2.14.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-troveclient 2.15.0

This issue was fixed in the openstack/python-troveclient 2.15.0 release.

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.