radon-h2020/radon-particles

Duplicate keys 'radon.artifacts.Ansible'

Closed this issue · 3 comments

Checked to orchestrate ‘sockshp’ service blueprint with xopera. This seems to be working.

However while trying out to export and deploy the service from the unzipped CSAR.
However while trying out 'EC2_on_AWS' and 'ToyExampleNifi' service blueprints, I got following errors:

_definitions/radonartifacts__Ansible.tosca:4:3: [MapWrapper] Duplicate keys 'radon.artifacts.Ansible' found in _definitions/radonartifacts__Ansible.tosca:4:3 and _definitions/radonartifacts__Ansible.tosca:4:3

The content of one of the file radonartifacts__Ansible.tosca is as follows:

tosca_definitions_version: tosca_simple_yaml_1_3

artifact_types:
  radon.artifacts.Ansible:
    derived_from: tosca.artifacts.Implementation
    metadata:
      abstract: "false"
      final: "false"
      targetNamespace: "radon.artifacts"
    file_ext: [ yml, yaml ]

Would you suggest some hints to fix this issue?

-Thanks

hi @chinmaya-dehury , have you tried updating your xopera version? the bug with duplicate imports was fixed in one of the recent versions of xopera.

@chinmaya-dehury could you please confirm whether the problem still persists or it is gone. In case it is solved, we will close the issue.

Now the problem is fixed.
Before I was using opera 0.5.2 installed from the source. The new installation of opera through pip seems handled the issue.
Thanks @v-yussupov