Load local IP using separate post-boot Metadata.
authorClint Byrum <clint@fewbar.com>
Wed, 31 Jul 2013 21:13:36 +0000 (14:13 -0700)
committerClint Byrum <clint@fewbar.com>
Thu, 15 Aug 2013 03:27:58 +0000 (20:27 -0700)
commit46c4ce37173e23a1a5bc68f9f5b0921e6f83be8b
treeb47dae5d58787e90a9807c9522989014f614b18a
parent99a1e7525015f4e710e3de6e041cffcd264153cf
Load local IP using separate post-boot Metadata.

Previously we could not feed the IP of an instance into its own
Metadata because of circular dependency problems. 0.0.0.0 was used
with the heat-localip element to work around this problem. This
caused problems though, as heat-localip would edit the source local
heat metadata, which would make cfn-hup and/or os-collect-config think
that the Metadata had changed, causing it to restart everything every
time we query the Metadata, which was about every five minutes.

Now we can just query this inert LaunchConfiguration resource to get
its' Metadata once it is ready. This resource will only change when
legitimate things are changed in the stack, and so we won't restart
everything every five minutes anymore. Note that when the native Heat
DSL lands, the OS::Heat::SoftwareConfig resource is meant for exactly
this purpose.

After this is merged we no longer need the heat-localip element.

Fixes bug #1202322

Change-Id: Id06323ba43203570eeebfa5b3d03fa56c16c0c10
overcloud-source.yaml
undercloud-vm.yaml