[openstack-dev] [heat][tripleo] Heat dependency visualisation (an old topic revived)

Bogdan Dobrelya bdobreli at redhat.com
Mon Apr 24 10:20:29 UTC 2017


On 21.04.2017 20:28, Bogdan Dobrelya wrote:
> Hello.
> 
> [tl;dr] It is hard to read dependencies from the heat templates, for
> humans, without accessing Heat deployed your stacks live. So robots for
> the rescue!

Here is a script [0] to batch process undercloud/overcloud templates
from t-h-t's roles_data(_undercloud).yaml and build graphs (will be put
under the heat-viz repo root).

Few examples attached:
* from the undercloud/puppet/undercloud-role.yaml rendered template
  (the graph name undercloud_puppet_undercloud-role.html) [1]
* docker/docker-steps.j2, rendered as undercloud/docker/post.yaml
  (the graph name's undercloud_docker_post.html) - starts [2], ends [3]
* the latter, reduced by filters applied for steps1,2,pre,post [4],[5]

  and decorated with a custom palette based on the step types:

  ruby heat-viz.rb \
  -f 'Pre|Post|Deployment\b|Deployment[15]|Deployment_Step[15]' \
  -d 'pre[^p],post,prep,step1,step5,docker' \
  undercloud/docker/post.yaml

[0] https://github.com/bogdando/heat-viz/blob/master/heat-viz-prep.sh
[1] undercloud_puppet_undercloud-role.png (attached)
[2] undercloud_docker_post_1.png (attached)
[3] undercloud_docker_post_2.png (attached)
[4] undercloud_docker_post_filtered1.png (attached)
[5] undercloud_docker_post_filtered2.png (attached)

-- 
Best regards,
Bogdan Dobrelya,
Irc #bogdando
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undercloud_puppet_undercloud-role.png
Type: image/png
Size: 63765 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170424/0c1d7551/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undercloud_docker_post_filtered2.png
Type: image/png
Size: 68911 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170424/0c1d7551/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undercloud_docker_post_filtered1.png
Type: image/png
Size: 77619 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170424/0c1d7551/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undercloud_docker_post_1.png
Type: image/png
Size: 148786 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170424/0c1d7551/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undercloud_docker_post2.png
Type: image/png
Size: 136370 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170424/0c1d7551/attachment-0009.png>


More information about the OpenStack-dev mailing list