xlab-si / xopera-opera

xOpera orchestrator compliant with TOSCA YAML v1.3 in the making
https://xlab-si.github.io/xopera-docs/
Apache License 2.0
35 stars 14 forks source link

Improve opera info CLI command #203

Closed anzoman closed 3 years ago

anzoman commented 3 years ago

Description

Right now opera info return the following after the successful deployment of the CSAR:

(.venv) $ opera info
content_root: /home/user/Desktop/xopera-examples/.opera/csars/csar
inputs: /home/user/Desktop/xopera-examples/.opera/inputs
service_template: /home/user/Desktop/xopera-examples/.opera/csars/csar/service.yaml
status: deployed

For xOpera SaaS and for the general usage inputs could be displayed as real values instead of path to the file.

The next thing is the status, which shows interrupted when deploying and undeploying a CSAR, which is not right as it should be deploying/undeploying. The interrupted status is meant to be used when some operation fails or is manually stopped.

Steps

Update src/opera/commands/info.py.

Current behaviour

Described above.

Expected results

To improve opera info CLI command.

anzoman commented 3 years ago

@sstanovnik please express your improvement wishes (for SaaS) here.

sstanovnik commented 3 years ago

I think the way forward on this is to have the input values here directly. Here's my though process.

I'll get to implementing this and the fix for the interrupted status today, expect two PRs :)

sstanovnik commented 3 years ago

Closing this due to #204 being merged, which implements the above.