Ask Your Question

Extract topology information from Heat Template

asked 2014-11-03 04:19:16 -0500

chitranshi-shubham gravatar image

updated 2014-12-14 23:43:23 -0500


I want to extract topology information from the HEAT template and store in CMDB, the Horizon interface has a topology tab under stacks(project/orchestration). How do I get it in json/YAML ?

Is there any parser for HEAT template to extract Topology information ? or getting the list of resources from the heat api, how can I define the connection between these resources ? I was expecting a "connected_to" parameter or "network" parameter .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-17 16:14:44 -0500

asalkeld gravatar image

Just have a look at the horizon code:

edit flag offensive delete link more


hey Angus, I was going through the code in the method d3_data seems to return the resource mapping in json (Please correct if i am wrong). Is there a way to get it in my project, through REST or CLI, a code snippet would be a great help.

also when does it reach this code ?


chitranshi-shubham gravatar imagechitranshi-shubham ( 2014-11-18 00:10:43 -0500 )edit

This is only using 2 methods to get the data:

  1. heat stack-get
  2. heat resource-list :
asalkeld gravatar imageasalkeld ( 2014-11-23 21:22:31 -0500 )edit

@asalkeld I am still not able to figure out how topology is mapped in horizon. i can get resource list and meta data from heat, thats ok. but how do i connect different resources ? if suppose I have a ceilometer alarm as a resource, how will i show its connection ?

chitranshi-shubham gravatar imagechitranshi-shubham ( 2014-12-14 22:26:01 -0500 )edit

and how is heat stack topology different from neutron topology shown in the network tab ?

chitranshi-shubham gravatar imagechitranshi-shubham ( 2014-12-14 22:26:45 -0500 )edit

Hi, the main dependancies are derived by the "required_by" field:

asalkeld gravatar imageasalkeld ( 2014-12-21 19:44:37 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-03 04:19:16 -0500

Seen: 794 times

Last updated: Dec 14 '14