dineshbhor b8c2c86333 Trivial: Fix unnecessary redundant code
While translating node_template, heat-translator first checks whether
the policy is derived from the policies 'tosca.policies.Scaling' or
'tosca.policies.Monitoring', If yes, then it adds them into
TOSCA_TO_HOT_TYPE map. In the subsequent code, it again checks for
those policies and if they are not present in TOSCA_TO_HOT_TYPE map
then it raises UnsupportedTypeError exception.

This patch removes this unnecessary redundant code of checking
policies again and ensures that the affected code is getting
covered through test case.

TrivialFix
Change-Id: Ibe435e23e7ac11834e662745d327e6f99280f9f5
2018-07-21 04:31:01 +00:00
2018-05-30 15:02:54 +09:00
2018-03-22 13:21:44 -04:00
2017-03-02 11:44:38 +00:00
2018-06-06 15:27:00 -04:00

Team and repository tags

image

Heat-Translator

Overview

Heat-Translator is an Openstack project and licensed under Apache 2. It is a command line tool which takes non-Heat templates as an input and produces a Heat Orchestration Template (HOT) which can be deployed by Heat. Currently the development and testing is done with an aim to translate OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) templates to HOT. However, the tool is designed to be easily extended to use with any format other than TOSCA.

Architecture

Heat-Translator project takes a non-Heat template (e.g. TOSCA flat YAML template or template embedded in TOSCA Cloud Service Archive (CSAR) format) as an input, calls an appropriate Parser (e.g. TOSCA Parser) per the type of input template to parse it and create an in-memory graph, maps it to Heat resources and then produces a Heat Orchestration Template (HOT) as an output.

How To Use

Please refer to doc/source/usage.rst

Directory Structure

Three main directories related to the heat-translator are:

  1. hot: It is the generator, that has logic of converting TOSCA in memory graph to HOT YAML files.
  2. common: It has all the file that can support the execution of parser and generator.
  3. tests: It contains test programs and more importantly several templates which are used for testing.

Project Info

Description
Translate non-heat templates to Heat Orchestration Template.
Readme 7.8 MiB
Languages
Python 100%