Yasufumi Ogawa 65dfa754e2 Fix unittest for auto scaling
This update is to fix failures in unittests below.

* `custom_def` in Policy class was changed from str to dict in
  tosca-parser. This arg isn't interested in the test, so it's replaced
  with empty dict.

* Fix unsafe yaml loader with `yamf.safe_load`.

It also removes nouse pip packages which cause failures while
resovlving dependencies, and some tiny refactoring.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I8ae60a4ae9f139073f05ec0f99fa82c8bb24ee50
2022-03-16 01:01:23 +09:00
2022-03-16 01:01:23 +09:00
2019-04-19 19:35:22 +00:00
2021-03-19 19:42:33 +00:00
2018-12-10 05:25:03 -05:00
2021-02-12 06:50:56 +05:30
2021-01-29 00:11:32 +05:30

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%