Heat Template Circular Dependency

asked 2014-12-23 23:57:42 -0600

Simply_Seth gravatar image

updated 2014-12-24 00:30:39 -0600

OpenStack Juno - CentOS 7

I'm trying to grab the private address of an instance with the below:

params: {
   "$IP": { get_attr: [kub001_floating_ip,floating_ip_address]},
          "$IP1": { get_attr: [minion001_floating_ip,floating_ip_address]},
          "$IP2": { get_attr: [minion002_floating_ip,floating_ip_address]},
          "$PRIVIP": { get_attr: [kub001,first_address]}

The problem happens with the below stanza and has no errors when not used:

"$PRIVIP": { get_attr: [kub001,first_address]}

I get the below error:

CircularDependencyException(cycle=str(graph))\n', u'CircularDependencyException: Circular Dependency Found:     {Server "kub001": {Server "kub001"}}\n']

Here is the larger display of code: http://dpaste.com/05969CC

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-24 12:59:13 -0600

Simply_Seth gravatar image

updated 2014-12-24 12:59:38 -0600

Changed from

"$PRIVIP": { get_attr: [kub001,first_address]}


"$PRIVIP": { get_attr: [kub001_port,fixed_ips, 0, ip_address]}

I think first_address is deprecated.

The above seems to work as expected.

edit flag offensive delete link more


Nothing to do with first_address being deprecated, and everything to do with referencing a different resource (the port). If a resource references itself, the resulting dependency is by definition circular.

zaneb gravatar imagezaneb ( 2015-01-26 15:00:49 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-23 23:57:42 -0600

Seen: 984 times

Last updated: Dec 24 '14