From aef34ad9a966ca64aa365ee6aaada702b986f68b Mon Sep 17 00:00:00 2001 From: shangxdy Date: Sun, 28 Aug 2016 17:25:28 +0800 Subject: Fix BlockStorageAttachment bug when translate compute node Currently, when translate compute node with local_storage and high_availability, there is not BlockStorageAttache resource created about block storage, and only BlockStorage created. If only local_storage requirement in compute node, the result is correct. The reason is the function logic of _get_attachment_node is error. and the patch will fixit. JIRA:PARSER-100 Change-Id: I36456089ae65102d4b17797d266c850d8c16b29d Signed-off-by: shangxdy --- .../translator/tests/data/hot_output/hot_nfv_sample.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tosca2heat/heat-translator/translator/tests/data/hot_output') diff --git a/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml b/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml index d66569d..d67f022 100644 --- a/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml +++ b/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml @@ -15,6 +15,7 @@ resources: user_data_format: SOFTWARE_CONFIG depends_on: - VDU2 + - BlockStorage VDU2: type: OS::Nova::Server @@ -25,6 +26,20 @@ resources: - port: { get_resource: CP2 } user_data_format: SOFTWARE_CONFIG + BlockStorage: + type: OS::Cinder::Volume + properties: + size: 10 + + tosca.relationships.attachesto_1: + type: OS::Cinder::VolumeAttachment + properties: + instance_uuid: + get_resource: VDU1 + mountpoint: /data + volume_id: + get_resource: BlockStorage + CP1: type: OS::Neutron::Port properties: -- cgit 1.2.3-korg