Ask Your Question
0

trove taskmanager unauthorized error

asked 2016-08-11 02:02:03 -0600

openstackstarter gravatar image

updated 2016-08-17 03:25:22 -0600

I'm deploying three node architecture with Openstack Mitaka, and having trouble with Trove. Now command 'trove list' doesn't show any error. But and I create instance with 'trove create', it remains in 'build' status and can't even delete. I can see Database instance is created, and it's ACTIVE. I can delete instance from here.

Log shows that trove-taskmanager is having error like below, saying kestone authorization is somehow failed. I tried nova_proxy_admin_tenant_name to admin, and used nova_proxy_admin_tenant_id, still showing same error.

tail /var/log/keystone/keystone-wsgi-public.log

2016-08-05 15:25:53.926 2824 WARNING keystone.common.wsgi [req-99c9e550-51ce-4cd6-9856-7e5459b57ea6 - - - - -] Authorization failed. The request you have made requires authentication. from 10.0.0.1
2016-08-05 15:26:53.924 2827 INFO keystone.common.wsgi [req-6be091f6-5c49-4a5b-a7ad-ca819f71f429 - - - - -] POST http://10.0.0.1:5000/v2.0/tokens
2016-08-05 15:26:53.931 2827 WARNING keystone.common.wsgi [req-6be091f6-5c49-4a5b-a7ad-ca819f71f429 - - - - -] Authorization failed. The request you have made requires authentication. from 10.0.0.1

/etc/trove/trove-taskmanager.conf

[DEFAULT]
trove_auth_url = http://10.0.0.1:5000/v2.0
nova_compute_url = http://10.0.0.1:8774/v2
cinder_url = http://control-node:8776/v1
swift_url = http://control-node:8080/v1/AUTH_
neutron_url = http://control-node:9696
notifier_queue_hostname=control-node
nova_proxy_admin_user =admin
nova_proxy_admin_pass =adminpass
nova_proxy_admin_tenant_name =service

/var/log/trove/trove-taskmanager.log

 root@control-node:/home/control-node# tail -n 30  /var/log/trove/trove-taskmanager.log
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     task(self, context)
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/trove/taskmanager/manager.py", line 407, in publish_exists_event
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     self.admin_context)
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/trove/extensions/mgmt/instances/models.py", line 178, in publish_exist_events
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     notifications = transformer()
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/trove/extensions/mgmt/instances/models.py", line 271, in __call__
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     client=self.nova_client)
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/trove/extensions/mgmt/instances/models.py", line 40, in load_mgmt_instances
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     mgmt_servers = client.servers.list(search_opts={'all_tenants': 1})
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 749, in list
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     "servers")
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 242, in _list
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task     resp, body = self.api.client.get(url)
2016-08-04 15:06:38.561 5132 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 452, in get
2016-08-04 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-08-11 09:58:58 -0600

There are two different things to try. One or the other may work, but I'm using both.

1) In /etc/trove/trove-taskmanager.conf try using port 35357 instead of 5000 for the trove_auth_url.

2) In the same file, try using nova_proxy_admin_tenant_id instead of nova_proxy_admin_tenant_name.

The tenant id can be obtained from keystone via:

# keystone tenant-list

Using the ID instead of the name is what made mine finally start working.

edit flag offensive delete link more

Comments

sorry for my late response..I already tried those two options as mentioned, and still not working.. any other suggestion..?

openstackstarter gravatar imageopenstackstarter ( 2016-08-17 03:17:51 -0600 )edit

'tenants' is modified to 'projects' in Dec 2016. how to fix it now?

Myrat gravatar imageMyrat ( 2017-05-15 21:22:07 -0600 )edit
0

answered 2016-08-11 09:48:34 -0600

amrith gravatar image

This is a known issue relative to the periodic notification transformer being misconfigured. You can ignore this error ( or disable exists_notification_transformer in your taskmanager.conf).

edit flag offensive delete link more

Comments

sorry for my late response. Are you saying that Trove doesn't need this? I tried exists_notification_transformer=False, and error still shows up, and because of this, it seems I can't go further with Trove project..

openstackstarter gravatar imageopenstackstarter ( 2016-08-17 01:17:33 -0600 )edit

oh wait, I uncommented exist_notification_transformer line, and now it shows different error.. I updated my question with new error log.

openstackstarter gravatar imageopenstackstarter ( 2016-08-17 03:22:44 -0600 )edit

I meet the same error , do you fix this?

Myrat gravatar imageMyrat ( 2017-05-15 21:20:58 -0600 )edit
0

answered 2016-08-11 02:10:49 -0600

Sofiane68 gravatar image

give us some informations about your infra

edit flag offensive delete link more

Comments

sorry for my late response. I'm not sure what you mean by infra.. hardware-related info? If this is what you mean: control-node(controller):10.0.0.1 network-node:10.0.0.2 compute-node:10.0.0.3 for other configurations, I followed offial guide for mitaka. Thanks you for your answer!

openstackstarter gravatar imageopenstackstarter ( 2016-08-17 01:11:49 -0600 )edit

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

2 followers

Stats

Asked: 2016-08-11 02:02:03 -0600

Seen: 930 times

Last updated: Aug 17 '16