Ask Your Question

Error when creating a DB instance using trove

asked 2016-07-01 12:57:59 -0500

R. Alejandro Oquendo gravatar image

I have a problem when creating a DB instance using trove [1], after creating the DB the status get stuck in BUILD, an then shows ERROR when running 'trove list':

user@controller:~/bin$ trove list
| ID                                   | Name             | Datastore | Datastore Version | Status | Flavor ID | Size |
| 71fde28f-801e-4d32-93a0-b591e55efc8d | mysql_instance_1 | mysql     | mysql-5.6         | ERROR  | 6         |    5 |


2016-07-01 10:19:13.550 4512 ERROR trove.instance.models [-] An error occurred communicating with the guest: Timed out waiting for a reply to message ID 07d99bd1fed9443c9299935749e4a541.


2016-07-01 13:48:26.573 4447 ERROR oslo_service.periodic_task [-] Error during Manager.publish_exists_event
2016-07-01 13:48:26.573 4447 ERROR oslo_service.periodic_task Traceback (most recent call last):
2016-07-01 13:48:26.573 4447 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_service/", line 220, in run_periodic_tasks
2016-07-01 13:48:26.573 4447 ERROR oslo_service.periodic_task     raise exceptions.from_response(resp, body, url, method)
2016-07-01 13:48:26.573 4447 ERROR oslo_service.periodic_task Unauthorized: The request you have made requires authentication. (HTTP 401)

I assured to double-check the credentials in the trove configuration files.

[1] (

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2016-09-07 02:53:39 -0500

liuqing123 gravatar image

Do you use VMs to create the DB instance? If you do, try to config the 'usage_timeout' (in trove-taskmanager.conf) with a larger value like 3600. When the Taskmanager is ready, it will wait for the Guest to be active. (You have to make sure that the RabbitMQ can send the 'running' status to the Conductor) If the Guest runs too slowly, the error "Timed out waiting for a reply..." will appear.

I met the same problem, too. Wish to help you!

edit flag offensive delete link more

answered 2016-08-03 17:26:05 -0500

I fought with this myself for days. I'm running OpenStack Mitaka from RDO so depending on your version your mileage may vary a bit.

My problem turned out to be in the trove-taskmanager.conf (in my case in /etc/trove).

What fixed it for me was fixing the nova_proxy_admin_xxxxx lines.

In the DEFAULT group you have some lines like (from the sample config):

nova_proxy_admin_user = admin
nova_proxy_admin_pass = 3de4922d8b6ac5a1aad9
nova_proxy_admin_tenant_id =

The admin user should be the username of an admin user in keystone, and password should be the password for that same user. For tenant_id I made it the admin tenant id which you can get from "keystone tenant-list"

Also, check your trove_auth_url setting in that same file. Mine is something like:

trove_auth_url = http://KEYSTONE_HOST_IP:35357/v2.0

(keystone_host_ip is replaced with the ip of the host where keystone is running).

You cannot use v3 keystone auth. If the code doesn't find "v2.0" in the trove_auth_url is appends it. You'll see 404 errors in keystone logs.

Fixing those settings got me past the same error you're seeing. However, be advised, my Trove setup still isn't fully working, but at least that error went away and I can create trove instances now.

Hope that helps.

edit flag offensive delete link more

answered 2016-08-04 02:03:23 -0500

Sofiane68 gravatar image

Try to restart the rabbitmq agent on your Trove node..

and give the output of :

rabbitmqctl list_users

On your trove node

edit flag offensive delete link more

answered 2016-07-06 04:03:49 -0500

amrith gravatar image

The fact that you are getting an error "Unauthorized" means you should follow the trail to the keystone log file. There, you will find more information about why this is failing.

One situation where I've seen this happen is where machines are not time synchronized. It leads keystone to think the token is invalid when it shouldn't be.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2016-07-01 12:57:59 -0500

Seen: 1,260 times

Last updated: Aug 04 '16