Ask Your Question
0

Trove Taskmanager Kilo: CRITICAL root [-] AttributeError: 'NoneType' object has no attribute 'rpartition'

asked 2015-06-26 08:29:25 -0500

arnoudj gravatar image

updated 2015-06-26 08:30:20 -0500

Same is (https://ask.openstack.org/en/question/45095/trove-taskmanager-critical-root-nonetype-object-has-no-attribute-rpartition/ (https://ask.openstack.org/en/question...)), but I'm using Kilo and the fix from that question does not work.

trove-taskmanager log fills up with:

2015-06-26 14:58:02.909 33687 CRITICAL root [-] AttributeError: 'NoneType' object has no attribute 'rpartition'
2015-06-26 14:58:02.909 33687 TRACE root Traceback (most recent call last):
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/bin/trove-taskmanager", line 10, in <module>
2015-06-26 14:58:02.909 33687 TRACE root     sys.exit(main())
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/trove/cmd/common.py", line 71, in run
2015-06-26 14:58:02.909 33687 TRACE root     return main_function(conf)
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/trove/cmd/taskmanager.py", line 36, in main
2015-06-26 14:58:02.909 33687 TRACE root     startup(conf, None)
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/trove/cmd/taskmanager.py", line 29, in startup
2015-06-26 14:58:02.909 33687 TRACE root     rpc_api_version=rpc_version.RPC_API_VERSION)
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/trove/common/rpc/service.py", line 46, in __init__
2015-06-26 14:58:02.909 33687 TRACE root     _manager = importutils.import_object(manager)
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 38, in import_object
2015-06-26 14:58:02.909 33687 TRACE root     return import_class(import_str)(*args, **kwargs)
2015-06-26 14:58:02.909 33687 TRACE root   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 26, in import_class
2015-06-26 14:58:02.909 33687 TRACE root     mod_str, _sep, class_str = import_str.rpartition('.')
2015-06-26 14:58:02.909 33687 TRACE root AttributeError: 'NoneType' object has no attribute 'rpartition'

My trove-taskmanager.conf:

[DEFAULT]
nova_proxy_admin_tenant_name=openstack-trove
debug=False
log_file=/var/log/trove/trove-taskmanager.log
log_dir=/var/log/trove
verbose=False
trove_auth_url=https://identity.api.openstack.cyso.net:5000/v2.0
nova_proxy_admin_user=openstack-trove
network_label_regex=.*
use_syslog=False
network_driver=trove.network.neutron.NeutronDriver
guest_config=/etc/trove/trove-guestmanager.conf
taskmanager_manager = trove.taskmanager.manager.Manager

[oslo_messaging_rabbit]
rabbit_use_ssl=True
kombu_ssl_certfile=/etc/trove/ssl/trovemq.openstack.cyso.net.crt
kombu_ssl_keyfile=/etc/trove/ssl/trovemq.openstack.cyso.net.key
rabbit_userid=trove
rabbit_virtual_host=/
kombu_ssl_ca_certs=/etc/ssl/certs/cyso-internweb-ca.pem
kombu_ssl_version=TLSv1
rabbit_password=########
rabbit_hosts=10.1.0.11:5671
rabbit_ha_queues=True

[database]
connection=mysql://trove:########@10.1.0.11/trove

Using Ubuntu 14.04 with OS packages from Cloud Archive.

edit retag flag offensive close merge delete

Comments

Did you have any luck getting past this issue?

tthomsen gravatar imagetthomsen ( 2015-07-19 23:39:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-07-23 11:10:25 -0500

crash gravatar image

updated 2015-07-24 03:48:39 -0500

I had this issue with the Kilo (Ubuntu 14.04) after some investigation I found that "/usr/bin/trove-taskmanager" is running with the configuration file "/etc/trove/trove.conf" but not with "/etc/trove/trove-taskmanager.conf" so, I've added:

taskmanager_manager = trove.taskmanager.manager.Manager

into [DEFAULT] section of "/etc/trove/trove.conf".

This helped me.

Perhaps you should do the same.

Hope this help you.

UPD:

I've checked all trove services and all of them are running with the "/etc/trove/trove.conf" And this is because of ".conf" files in "/etc/init" In every trove-*.conf file there are following:

--exec /usr/bin/trove-taskmanager -- --config-file=/etc/trove/trove.conf ${DAEMON_ARGS}

--exec /usr/bin/trove-guestagent -- --config-file=/etc/trove/trove.conf ${DAEMON_ARGS}

--exec /usr/bin/trove-conductor -- --config-file=/etc/trove/trove.conf ${DAEMON_ARGS}

--exec /usr/bin/trove-api -- --config-file=/etc/trove/trove.conf ${DAEMON_ARGS}

As a workaround you could update each file with the correct configuration file (--config-file=) and restart all trove services, they should start with the correct ".conf" files.

edit flag offensive delete link more

Comments

1

Yep, that cleared my error.

Thanks

tthomsen gravatar imagetthomsen ( 2015-07-23 17:57:10 -0500 )edit

Thank you very much. This solved my problem as well!

lufaxo gravatar imagelufaxo ( 2016-02-17 03:38:35 -0500 )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

1 follower

Stats

Asked: 2015-06-26 08:29:25 -0500

Seen: 1,205 times

Last updated: Jul 24 '15