cloudkitty-processor return error "'module' object has no attribute 'DefaultRPCAccessPolicy'"

Bug #1702995 reported by juanjuan li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
New
Undecided
Unassigned

Bug Description

I tried to install cloudkitty on openstack-newton by following the link : http://cloudkitty.readthedocs.io/en/stable/installation.html#configure-cloudkitty here.
I installed from source and keystone version I used was 3.Everything goes well without errors until I run the final command : cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf.
Here is the message:

[root@allinone cloudkitty]# cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
2017-07-07 13:49:16.779 17689 CRITICAL cloudkitty [-] AttributeError: 'module' object has no attribute 'DefaultRPCAccessPolicy'
2017-07-07 13:49:16.779 17689 ERROR cloudkitty Traceback (most recent call last):
2017-07-07 13:49:16.779 17689 ERROR cloudkitty File "/usr/bin/cloudkitty-processor", line 10, in <module>
2017-07-07 13:49:16.779 17689 ERROR cloudkitty sys.exit(main())
2017-07-07 13:49:16.779 17689 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/cli/processor.py", line 24, in main
2017-07-07 13:49:16.779 17689 ERROR cloudkitty processor = orchestrator.Orchestrator()
2017-07-07 13:49:16.779 17689 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py", line 227, in __init__
2017-07-07 13:49:16.779 17689 ERROR cloudkitty self._init_messaging()
2017-07-07 13:49:16.779 17689 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py", line 253, in _init_messaging
2017-07-07 13:49:16.779 17689 ERROR cloudkitty self.server = messaging.get_server(target, endpoints)
2017-07-07 13:49:16.779 17689 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/messaging.py", line 64, in get_server
2017-07-07 13:49:16.779 17689 ERROR cloudkitty access_policy = dispatcher.DefaultRPCAccessPolicy
2017-07-07 13:49:16.779 17689 ERROR cloudkitty AttributeError: 'module' object has no attribute 'DefaultRPCAccessPolicy'
2017-07-07 13:49:16.779 17689 ERROR cloudkitty

I looked at the /usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py and found out that there is NO "DefaultRPCAccessPolicy" class in it, which it is supposed to have this class if you look up at the github: https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/rpc/dispatcher.py

Here is the front of the dispatcher.py from my environment and I attached it:

"
....

__all__ = [
    'NoSuchMethod',
    'RPCDispatcher',
    'RPCDispatcherError',
    'UnsupportedVersion',
    'ExpectedException',
]

import logging
import sys

import six

from oslo_messaging import _utils as utils
from oslo_messaging import dispatcher
from oslo_messaging import serializer as msg_serializer
from oslo_messaging import server as msg_server
from oslo_messaging import target as msg_target

LOG = logging.getLogger(__name__)

...

"

I think this is maybe the bug and I dont know how to fix it.

Thank you

Revision history for this message
juanjuan li (happyljj) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.