TOSCA translator is re-implementing HOT objects

Bug #1326285 reported by Thomas Spatzier
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Heat Translator
Ton Ngo

Bug Description

In the current code of the TOSCA translator, there are HOT objects (e.g. parameters, outputs etc) being implemented which are already implemented in the Heat code base. We should really use those implementations in Heat for programmatically constructing templates instead of implementing those classes ourselves. Otherwise, there is a high risk of getting out of synch ... not talking about the duplicate work.

Especially there has been recent work by zaneb to introduct ResourceDefinition classes, and method to add/remove resource definitions to templates which seems like very useful code for TOSCA translator.

We should figure out how we can properly define the dependency on the Heat code base so that development works and test cases work. Once this work, we should refactor our code to use the Heat code.

Revision history for this message
Ton Ngo (ton-i) wrote :

Good idea, especially with the new ResourceDefinition class. Zane has been factoring the Heat code to use this so it makes sense for us to do the same. We have to figure out how to pick up that class from the Heat code base instead of just copying it here.

Changed in heat-translator:
status: New → Confirmed
assignee: nobody → Ton Ngo (ton-i)
Sahdev Zala (spzala)
Changed in heat-translator:
importance: Undecided → High
Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

@Ton, @Sahdev - is this bug still valid? Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.