From 43dacd32398a75ba51c3f825b3fe999ecba42c64 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 (cherry picked from commit aef34ad9a966ca64aa365ee6aaada702b986f68b) --- .../translator/tests/data/test_tosca_nfv_sample.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml') diff --git a/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml b/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml index e5c8d3c..edbbbe5 100644 --- a/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml +++ b/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml @@ -23,6 +23,17 @@ topology_template: version: 6.5 requirements: - high_availability: VDU2 + - local_storage: + node: BlockStorage + relationship: + type: tosca.relationships.AttachesTo + properties: + location: /data + + BlockStorage: + type: tosca.nodes.BlockStorage + properties: + size: 10 GB VDU2: type: tosca.nodes.nfv.VDU -- cgit 1.2.3-korg