tuskar/tuskar — pull request #82 by mtaylor (2013-07-26 20:36:21+00:00)
Title: Reworked Add Host to Aggregate in template

We must register the host with the aggregate using the host id on the overcloud.

We can not get this information directly. But fortunately the ID of the host in the overcloud is some amalgamation of the name of the instance that we specify in the Heat template.

This patch modifies the user-data script to poll nova host-list and pattern matches the list to look for the relevant hosts. Once they are found (i.e. registerted) the script then associates the node with the relevant aggregate.