Trove-API throughs exception and do not return any valid message to client side when trying to restore instance from failed backup.
--------------------------+-----------+-----------+---------------------+
| ID | Instance ID | Name | Status | Parent ID | Updated |
+--------------------------------------+--------------------------------------+--------------------------------------+-----------+-----------+---------------------+
| 5846ea43-a794-454a-9bf5-0fca27d73062 | 2d85d6b3-d465-4f47-8d29-1d34ba72fa42 | 2d85d6b3-d465-4f47-8d29-1d34ba72fa42 | FAILED | None | 2014-07-08T11:18:57 |
| d31e956c-af0a-4688-a751-52deec236a3c | 2d85d6b3-d465-4f47-8d29-1d34ba72fa42 | 2d85d6b3-d465-4f47-8d29-1d34ba72fa42 | COMPLETED | None | 2014-07-08T11:33:36 |
+--------------------------------------+--------------------------------------+--------------------------------------+-----------+-----------+---------------------+
ubuntu@ubuntu:~/trove-integration/scripts$ trove create mysql_failed 2 --size 2 --backup 5846ea43-a794-454a-9bf5-0fca27d73062
ERROR: Internal Server Error. Please keep this ID to help us figure out what went wrong: (f0990d12-1b9a-45ef-8a97-cd874279445f) (HTTP 500)
ubuntu@ubuntu:~/trove-integration/scripts$ tail ../report/logs/trove-api.log
2014-07-08 04:34:11.600 TRACE trove.common.wsgi return method(*args, **kwargs)
2014-07-08 04:34:11.600 TRACE trove.common.wsgi File "/opt/stack/trove/trove/instance/service.py", line 234, in create
2014-07-08 04:34:11.600 TRACE trove.common.wsgi configuration, slave_of_id)
2014-07-08 04:34:11.600 TRACE trove.common.wsgi File "/opt/stack/trove/trove/instance/models.py", line 633, in create
2014-07-08 04:34:11.600 TRACE trove.common.wsgi verify_checksum=CONF.verify_swift_checksum_on_restore):
2014-07-08 04:34:11.600 TRACE trove.common.wsgi File "/opt/stack/trove/trove/backup/models.py", line 305, in check_swift_object_exist
2014-07-08 04:34:11.600 TRACE trove.common.wsgi parts = self.location.split('/')
2014-07-08 04:34:11.600 TRACE trove.common.wsgi AttributeError: 'NoneType' object has no attribute 'split'
2014-07-08 04:34:11.600 TRACE trove.common.wsgi
2014-07-08 04:34:11.610 INFO eventlet.wsgi [req-b8cc99c2-65cf-46ac-b43b-324e73c73104 dab43ff12e4b4d44bce16a70f5309b84 5fa8973313a247f8b0e79317e8f8ad10] 172.18.196.54 - - [08/Jul/2014 04:34:11] "POST /v1.0/5fa8973313a247f8b0e79317e8f8ad10/instances HTTP/1.1" 500 310 0.188134
ubuntu@ubuntu:~/trove-integration/scripts$ trove create mysql_failed 2 --size 2 --backup 5846ea43-a794-454a-9bf5-0fca27d73062
Fix proposed to branch: master /review. openstack. org/106042
Review: https:/