Ask Your Question
2

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

Hello,

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
1

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

asalkeld gravatar image

Just have a look at the horizon code: https://github.com/openstack/horizon/...

edit flag offensive delete link more

Comments

hey Angus, I was going through the code in api.py. 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 ?

Thanks

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 https://github.com/openstack/python-h...
  2. heat resource-list : https://github.com/openstack/python-h...
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: https://github.com/openstack/horizon/...

asalkeld gravatar imageasalkeld ( 2014-12-21 19:44:37 -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: 2014-11-03 04:19:16 -0500

Seen: 595 times

Last updated: Dec 14 '14