Trove show retry too many times and then hit 504 Gateway Timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-troveclient |
Won't Fix
|
Low
|
Unassigned |
Bug Description
When I use command 'trove show <instanceId>' to get details of a normal existent instance, everything goes fine. When I try to show an inexistent instance, I get 'ERROR: No instance with a name or ID of '3e724b0e-
But when I have lots of trove instances, some of them are ACTIVE while their nova instances may be SHUTDOWN. Using trove show to show an inexsitent instance, I see there are lots of request to list trove instances and then get some instances which are not what I appoint, if its nova instance is SHUTDOWN, there is great chance to encounter 504 Gateway Timeout.
Here is the log [1]
I look through python-troveclient codes [2], I think maybe it retryes too many times to find an instance.
[1] http://
[2]https:/
So I open this bug, hope someone can give some feedback.
Changed in trove: | |
importance: | Undecided → Low |
affects: | trove → python-troveclient |
I tried several times, but failed to replicate this bug.
[root@oracle12c /etc/trove]# nova list|grep rdswy 887a-4391- a238-582c433349 ce | rdswy | SHUTOFF | - | Shutdown | private- share-v1249_ 10.132. 49=10.132. 49.149; bigdata_ network= 10.132. 53.30 | ------- ------- ------- ------- ----+-- -----+- ------- ---+--- ------- ------- --+---- ----+-- ------- --+---- --+---- ----+ ------- ------- ------- ------- ----+-- -----+- ------- ---+--- ------- ------- --+---- ----+-- ------- --+---- --+---- ----+ a6bf-4e62- adb0-1e93a8c8e8 0f | rdswy | mysql | 5.6-cluster | ACTIVE | 310 | 1 | | ------- ------- ------- ------- ----+-- -----+- ------- ---+--- ------- ------- --+---- ----+-- ------- --+---- --+---- ----+ a6bf-4e62- adb0-1e93a8c8e8 0f ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ a6bf-4e62- adb0-1e93a8c8e8 0f | share-v1249_ 10.132. 49', u'id': u'141ed22d- 36ba-4436- af79-b05bbf9016 e0'} | ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ a6bf-4e62- adb0-1e93a8c8e8 0g a6bf-4e62- adb0-1e93a8c8e8 0g' exists.
| b4d6ace6-
[root@oracle12c /etc/trove]#
[root@oracle12c /etc/trove]# trove list
+------
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size | Region |
+------
| d884ba96-
+------
[root@oracle12c /etc/trove]# trove show d884ba96-
+------
| Property | Value |
+------
| created | 2017-11-07T16:46:22 |
| datastore | mysql |
| datastore_version | 5.6-cluster |
| flavor | 310 |
| id | d884ba96-
| ip | 10.132.49.149 |
| name | rdswy |
| networks | {u'name': u'private-
| status | ACTIVE |
| updated | 2017-11-07T16:46:25 |
| volume | 1 |
+------
[root@oracle12c /etc/trove]# trove show d884ba96-
ERROR: No instance with a name or ID of 'd884ba96-
[root@oracle12c /etc/trove]#