]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Make physical resource names unique based upon stack name
authorSteven Dake <sdake@redhat.com>
Wed, 12 Sep 2012 22:12:50 +0000 (15:12 -0700)
committerSteven Dake <sdake@redhat.com>
Thu, 13 Sep 2012 02:06:48 +0000 (19:06 -0700)
commit04701a275f9712865bc5b7ea458bb7123f3a34d7
tree796961c53e396103a636dfb00be9c80186c77892
parent640c0a3e5f5ccca02d152d101e150d87b51e14eb
Make physical resource names unique based upon stack name

Some templates use the same resource name when registering with
nova.  Nova will not allow mulitple resource names to register
with the same name in all cases, and in those it does, it often
becomes confused (in the case of EIP).  This patch creates a
dot notation

For the LB test, an example of the resources would be:
teststack.LoadBalancer.LB_instance
teststack.DatabaseServer.MySqlDatabaseServer
teststack.WikiServerOne

Fixes Issue #160
Fixes Issue #136

Thanks to asalkeld@redhat.com for helping sort out the unit
test cases.

Change-Id: I14f4551feb41c7f98caa30dd98f997da6d00c467
Signed-off-by: Steven Dake <sdake@redhat.com>
heat/engine/instance.py
heat/engine/resources.py
heat/engine/s3.py
heat/engine/security_group.py
heat/engine/stack.py
heat/engine/user.py
heat/engine/volume.py
heat/tests/functional/test_WordPress_With_LB.py
heat/tests/functional/util.py
heat/tests/test_engine_manager.py
heat/tests/test_instance.py