-
Bug
-
Resolution: Done
-
Medium
-
Istanbul Release
-
None
-
None
Overview
During deployment of new DCAE MS base on k8s-tcagen2-clampnode.yaml dcae return error:
[2021-06-29T06:31:18.789] [INFO] debug - 2021-06-29T06:31:18.789Z|e61b4d16-e8d8-441f-a637-9c2ab153fba4|Error: {"status":400,"body":"{\"error_code\":\"invalid_blueprint_error\",\"message\":\"Invalid blueprint - None of the resolver rules [{'http://www.getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'http://www.cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'http://getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'http://cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'https://www.getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'https://www.cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'https://getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'https://cloudify.co/spec': 'file:///opt/manager/resources/spec'}] was applicable, failed to resolve the original import url: Import failed: Unable to open import url https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86eef15160>: Failed to establish a new connection: [Errno -2] Name or service not known',)) \\n in: /opt/manager/resources/work-a91fc6b3-a805-4cc6-8405-a3f5374a2d9b/blueprint.yaml\\n in line: 20, column: 0\\n path: imports\\n value: ['https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml', 'plugin:k8splugin?version=>=3.4.3,<4.0.0', 'plugin:clamppolicyplugin?version=1.1.0']\",\"server_traceback\":null}\n","json":{"error_code":"invalid_blueprint_error","message":"Invalid blueprint - None of the resolver rules [{'http://www.getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'http://www.cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'http://getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'http://cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'https://www.getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'https://www.cloudify.co/spec': 'file:///opt/manager/resources/spec'}, {'https://getcloudify.org/spec': 'file:///opt/manager/resources/spec'}, {'https://cloudify.co/spec': 'file:///opt/manager/resources/spec'}] was applicable, failed to resolve the original import url: Import failed: Unable to open import url https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86eef15160>: Failed to establish a new connection: [Errno -2] Name or service not known',)) \n in: /opt/manager/resources/work-a91fc6b3-a805-4cc6-8405-a3f5374a2d9b/blueprint.yaml\n in line: 20, column: 0\n path: imports\n value: ['https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml', 'plugin:k8splugin?version=>=3.4.3,<4.0.0', 'plugin:clamppolicyplugin?version=1.1.0']","server_traceback":null}} while blueprintId(TID-58733b22-2744-4412-b8cc-9f46a2c8cb6b): uploading blueprint|^
Technical details
This is caused because the import section in theĀ clamppolicyplugin_types.yaml where we define the dcaepolicyplugin dependency in this way:
In this dependency, we use the R6 value (old version of ONAP release).
To prevent this from happening every ONAP release maybe will be good to define this dependency in a more generic (without hardcoding the reference to ONAP nexus and release but define it in the way like the k8splugin is defined e.g plugin:k8splugin?version=>=3.0.0,<4.0.0
- relates to
-
DCAEGEN2-2891 It is impossible to deploy microservice through Cloudify Blueprints in case ONAP is installed behind proxy
- Closed