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

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

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

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

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

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

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 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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 85 times

Last updated: May 19 '16