Ask Your Question
0

Modify novaclient api

asked 2013-07-10 04:17:16 -0500

anonymous user

Anonymous

Hello I want to modify novaclient-api to add actions when a VM is created.

So I have modify this file: /usr/lib/python2.7/dist-packages/novaclient/v1_1

When I launch a command line as $nova boot [...] the code that I have added is executed

However when I launched a VM with Hoizon interface this new code is not executed. I thank Horizon use novaclient api for the instances but it appears it is not the case.

So which is the right file ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-10 06:08:18 -0500

jpichon gravatar image

Horizon uses the nova client API for launching instances as well. All the calls to nova are in this file:

https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/nova.py#L347

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

Stats

Asked: 2013-07-10 04:17:16 -0500

Seen: 75 times

Last updated: Jul 10 '13