Ask Your Question
0

Can anyone explain how heat-engine communicates with other services to launch a VM with yaml template

asked 2016-05-18 06:54:40 -0500

ashokt gravatar image

I have written yaml template , execution is successful and VM are launched. I wanted to know how Heat-engine communicates with other services(like keystone, nova etc) in openstack.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-19 13:24:02 -0500

zaneb gravatar image

It uses the various python client libraries to make REST API calls to them using your Keystone token. Basically exactly what you would do from the command line yourself.

edit flag offensive delete link more
0

answered 2016-05-19 13:29:25 -0500

Matt G gravatar image

The configuration objects you use in a Heat template are registered with the Heat engine and map to a Python object that carries out the necessary processing, including, in this case, calling the Nova API to create the instance.

Check out https://github.com/openstack/heat/blo... for the implementation code of this particular object, and note the code at the bottom of the file that registers the mapping:

def resource_mapping():
    return {
        'OS::Nova::Server': Server,
    }
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

1 follower

Stats

Asked: 2016-05-18 06:54:40 -0500

Seen: 43 times

Last updated: May 19 '16