Ask Your Question
0

Is there any document to add additional functionality to nova service

asked 2015-12-11 06:59:13 -0500

chandra gravatar image

updated 2015-12-17 05:42:56 -0500

Need to add additional functionality to nova service and would like to know if there is any supporting sight or document.

I have this question because when i try doing below steps i got the below errors and am clueless on how to set the TRANSPORT variable

from nova.api.openstack.compute.servers import Controller c= Controller() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 119, in __init__ self.compute_api = compute.API() File "/usr/lib/python2.7/dist-packages/nova/compute/__init__.py", line 39, in API return importutils.import_object(class_name, args, *kwargs) File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 38, in import_object return import_class(import_str)(args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 277, in __init__ skip_policy_check=skip_policy_check) File "/usr/lib/python2.7/dist-packages/nova/network/__init__.py", line 35, in API return cls(skip_policy_check=skip_policy_check) File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 70, in __init__ self.network_rpcapi = network_rpcapi.NetworkAPI() File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 123, in __init__ self.client = rpc.get_client(target, version_cap, serializer) File "/usr/lib/python2.7/dist-packages/nova/rpc.py", line 130, in get_client assert TRANSPORT is not None AssertionError

Thanks in advance, Chandralekha

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-12 21:49:40 -0500

Bipin gravatar image

Hi,

Can you please mention couple of your use cases ? Then somebody can help you.

Regards

edit flag offensive delete link more

Comments

Not sure if i can mention the scenario completly here, but in general, i do some operation in libvirt level for the instance i spun and now i want to write a nova api adding to nova-api service and so the methods need to be registered with rpc server and am clueless from where to start doing this

chandra gravatar imagechandra ( 2015-12-16 05:52:29 -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-12-11 06:59:13 -0500

Seen: 71 times

Last updated: Dec 17 '15