trove cli cannot show instance name with integer format

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

Bug Description

trove cli cannot show instance name with integer format
# trove create 123 1C1G --size 10 --datastore mysql --datastore_version 5.6 --nic net-id=f0cb32ad-42d5-46b7-abaa-e3ecbd14440a --nic net-id=504d5ae0-2dd4-4be7-9a3e-097b341933fb
+-------------------------+--------------------------------------+
| Property | Value |
+-------------------------+--------------------------------------+
| created | 2017-12-25T09:50:31 |
| datastore | mysql |
| datastore_version | 5.6 |
| encrypted_rpc_messaging | True |
| flavor | e762322a-2fed-4e29-ad8d-398afde1cabe |
| id | 889e3658-8242-4c70-a5c5-5dc20b991f58 |
| name | 123 |
| region | RegionOne |
| server_id | None |
| status | BUILD |
| tenant_id | 97015954e965405bb599d290cbcdb64d |
| updated | 2017-12-25T09:50:31 |
| volume | 10 |
| volume_id | None |
+-------------------------+--------------------------------------+
 trove list
+--------------------------------------+------+-----------+-------------------+--------+--------------------------------------+------+-----------+
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size | Region |
+--------------------------------------+------+-----------+-------------------+--------+--------------------------------------+------+-----------+
| 889e3658-8242-4c70-a5c5-5dc20b991f58 | 123 | mysql | 5.6 | BUILD | e762322a-2fed-4e29-ad8d-398afde1cabe | 10 | RegionOne |
+--------------------------------------+------+-----------+-------------------+--------+--------------------------------------+------+-----------+
 openstack server list
+--------------------------------------+------+--------+----------------------------------------------------------------------------------------------------+-------------------------+--------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------+--------+----------------------------------------------------------------------------------------------------+-------------------------+--------+
| b7472afe-ca19-4020-98c3-6d1e6f99552f | 123 | ACTIVE | private=fdf2:8413:d435:0:f816:3eff:fe7c:5faf, 10.0.0.4; trove-mgmt=fdf2:8413:d435:2::8, 10.0.0.135 | ubuntu-xenial-mysql-5.6 | 1C1G |
+--------------------------------------+------+--------+----------------------------------------------------------------------------------------------------+-------------------------+--------+

# trove show 123
ERROR: No instance with a name or ID of '123' exists.

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/530021

Changed in python-troveclient:
assignee: nobody → renminmin (rmm0811)
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/530021
Committed: https://git.openstack.org/cgit/openstack/python-troveclient/commit/?id=c346c7be7138edf4437ace2c7efdeb320d814332
Submitter: Zuul
Branch: master

commit c346c7be7138edf4437ace2c7efdeb320d814332
Author: renminmin <email address hidden>
Date: Mon Dec 25 18:30:29 2017 +0800

    Fix show instance with integer name NotFound

    Fix trove cli 'show' instance with integer name error

    Change-Id: Ic6a943b4d5980017915dd2c0361636877376c5cb
    Closes-bug: #1740015

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.