Ask Your Question
1

Heat Template Circular Dependency

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

Simply_Seth gravatar image

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

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
1

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

Simply_Seth gravatar image

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

Changed from

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

To:

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

Comments

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 -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-12-23 23:57:42 -0500

Seen: 702 times

Last updated: Dec 24 '14