-
Bug
-
Resolution: Duplicate
-
High
-
Istanbul Release
It is impossible to deploy micro-service through Cloudify Blueprints in case ONAP is installed behind proxy.
In such case Cloudify Manager, after receiving blueprint upload request from deployment handler, returns the following error message indicating that it cannot get the following resource from nexus:
In result, the 400 status (invalid_blueprint_error) is being returned from CM API.
The problem affects all plugins and blueprints that are not available on boostrap and need to be downloaded from 'outside'.
Sample log output:
root@dev-robot-6c4d64854b-b6mrn:/etc/apt# curl -k --request PUT --url https://deployment-handler.onap:8443/dcae-deployments/CLAMP_e8c352e5-ae4f-4a3c-8144-78addce8913d --header 'Content-Type: application/json' --data '{"serviceTypeId":"79b206dd-18f1-49f2-94d5-c03370423748","inputs":{"service_name":"dcae-tcagen2","log_directory":"/opt/logs/dcae-analytics-tca","replicas":1,"spring.data.mongodb.uri":"mongodb://dcae-mongohost/dcae-tcagen2","tag_version":"nexus-rdnv6.onap.dyn.nesc.nokia.net:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.2.1","tca.aai.password":"DCAE","tca.aai.url":"http://aai.onap.svc.cluster.local","tca.aai.username":"DCAE","tca_handle_in_subscribe_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT","tca_handle_out_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT","tca_consumer_group":"cg1","policy_model_id":"onap.policies.monitoring.tcagen2","policy_id":"MICROSERVICE_basicclamp_v1_0_tcagen2_1_0_0_PZO"}}'
{"status":400,"message":"Status 400 from CM API -- 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 ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f3aec9bb4e0>, 'Connection to nexus.onap.org timed out. (connect timeout=10)')) \n in: /opt/manager/resources/work-a204a1f4-7ab8-4bc4-9eca-d9c8f83f9999/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']","stack":["Error: Status 400 from CM API – 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 ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f3aec9bb4e0>, 'Connection to nexus.onap.org timed out. (connect timeout=10)')) "," in: /opt/manager/resources/work-a204a1f4-7ab8-4bc4-9eca-d9c8f83f9999/blueprint.yaml"," in line: 20, column: 0"," path: imports"," 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']"," at exports.createDispatcherError (/opt/app/dh/lib/dispatcher-error.js:42:10)"," at normalizeError (/opt/app/dh/lib/deploy.js:84:7)"," at /opt/app/dh/lib/deploy.js:175:9"," at process._tickCallback (internal/process/next_tick.js:68:7)"]}root@dev-robot-6c4d64854b-b6mrn:/etc/apt#
- relates to
-
DCAEGEN2-2854 k8s-tcagen2-clampnode blueprint for offline installation is broken
- Closed