You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successfully executing the deployment with opera deploy service.yaml try changing property name (e.g to test2) in both node type and node template.
Current behaviour
Execution of the command opera deploy service.yaml -c returns the following error:
Traceback (most recent call last):
File "/test/xopera/.venv/bin/opera", line 8, in <module>
sys.exit(main())
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/cli.py", line 61, in main
return args.func(args)
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/commands/deploy.py", line 70, in _parser_callback
status = info(None, storage)["status"]
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/commands/info.py", line 156, in info
topology = template.instantiate(storage)
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/template/topology.py", line 46, in instantiate
return Instance(storage, itertools.chain.from_iterable(node.instantiate() for node in self.nodes.values()))
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/instance/topology.py", line 14, in __init__
node.read()
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/instance/base.py", line 41, in read
self.load(self.topology.read(self.tosca_id))
File "/test/xopera/.venv/lib/python3.8/site-packages/opera/instance/base.py", line 50, in load
self.attributes[k].load(v)
KeyError: 'test
Deleting .opera directory resolves the error.
Expected behaviour
No error is returned and deployment is successful.
The text was updated successfully, but these errors were encountered:
Description
After a service template deployed, a changing property name and deploying again can cause an error.
Steps
Consider having the following service template
service.yaml
:After successfully executing the deployment with
opera deploy service.yaml
try changing property name (e.g totest2
) in both node type and node template.Current behaviour
Execution of the command
opera deploy service.yaml -c
returns the following error:Deleting
.opera
directory resolves the error.Expected behaviour
No error is returned and deployment is successful.
The text was updated successfully, but these errors were encountered: