Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Present orchestration process with graph of nodes and relations #189

Open
anzoman opened this issue Feb 22, 2021 · 0 comments
Open

Present orchestration process with graph of nodes and relations #189

anzoman opened this issue Feb 22, 2021 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@anzoman
Copy link
Contributor

anzoman commented Feb 22, 2021

Description

The TOSCA blueprint and its orchestration process can be represented with nodes and relationships between them. Moreover, we create a DAC (Directed Acyclic Graph) with nodes and relations that gives us the estimated structure of the deployment and undeployment. The info about that can already be retrieved and used from the opera python library. However, for the users of the CLI it could be useful to see it there.

Some time ago we wanted to have the a separate command that would print out the graph in the desired format (XML, YAML, JSON or some tree structure). So, I propose either creating new opera graph CLI command or adding --graph and other flags to opera validate CLI command.

Steps

The main part for creating DAC happens in src/opera/instance/node.py. We need to study it in order to see how we can retrieve or create the graph.

After that we can use some available pip packages to store the graph to a desired format. The graphviz and pygraphviz seem to be useful for us.

Current behaviour

The nodes and their order and relationships can be retrieved in python files by importing and using the opera library.

Expected results

To be able to retrieve tree-structure of the orchestration in the desired format.

@anzoman anzoman added enhancement New feature or request question Further information is requested labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant