1
0
-1

Hi, 

I am installing the Beijing release of ONAP and when I install DCAE specifically there is an error in the bootstrap container. The container fails to resolve the rules and the VES, TCA, Plugins, Holmes etc fail to load.

Please could someone help me resolve this. Below are the logs:

Uploading blueprint /blueprints/k8s-config_binding_service.yaml...
k8s-config_bindin... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4250848890>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-config_binding_service-4d957dfa-caf6-4388-bfb7-7777bafa7036/k8s-config_binding_service.yaml
in line: 25, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy inventory k8s-inventory.yaml k8s-inventory-inputs.yaml
+ cfy install -b inventory -d inventory -i /inputs/k8s-inventory-inputs.yaml /blueprints/k8s-inventory.yaml
Uploading blueprint /blueprints/k8s-inventory.yaml...
k8s-inventory.yaml |##################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f42507841d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-inventory-6d8ea379-1aa9-4f21-845f-9a333d5d98d0/k8s-inventory.yaml
in line: 29, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy deployment_handler k8s-deployment_handler.yaml k8s-deployment_handler-inputs.yaml
+ cfy install -b deployment_handler -d deployment_handler -i /inputs/k8s-deployment_handler-inputs.yaml /blueprints/k8s-deployment_handler.yaml
Uploading blueprint /blueprints/k8s-deployment_handler.yaml...
k8s-deployment_ha... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f425087ac90>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-deployment_handler-d3f1ce5a-bfa3-4976-9df5-c510a0d5a393/k8s-deployment_handler.yaml
in line: 26, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy policy_handler k8s-policy_handler.yaml k8s-policy_handler-inputs.yaml
+ cfy install -b policy_handler -d policy_handler -i /inputs/k8s-policy_handler-inputs.yaml /blueprints/k8s-policy_handler.yaml
Uploading blueprint /blueprints/k8s-policy_handler.yaml...
k8s-policy_handle... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4250d970d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-policy_handler-4f4fb27d-9d0b-4075-916b-bfd794756483/k8s-policy_handler.yaml
in line: 26, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy pgaas_initdb k8s-pgaas-initdb.yaml k8s-pgaas-initdb-inputs.yaml
+ cfy install -b pgaas_initdb -d pgaas_initdb -i /inputs/k8s-pgaas-initdb-inputs.yaml /blueprints/k8s-pgaas-initdb.yaml
Uploading blueprint /blueprints/k8s-pgaas-initdb.yaml...
k8s-pgaas-initdb.... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/relationshipplugin/1.0.0/relationshipplugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/relationshipplugin/1.0.0/relationshipplugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4250c71810>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-pgaas-initdb-b659ee28-0460-47e0-9661-858c47cb8833/k8s-pgaas-initdb.yaml
in line: 31, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/relationshipplugin/1.0.0/relationshipplugin_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/sshkeyshare/sshkey_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/pgaas/1.1.0/pgaas_types.yaml']
+ deploy tca k8s-tca.yaml k8s-tca-inputs.yaml
+ cfy install -b tca -d tca -i /inputs/k8s-tca-inputs.yaml /blueprints/k8s-tca.yaml
Uploading blueprint /blueprints/k8s-tca.yaml...
k8s-tca.yaml |########################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f4250424a50>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-tca-163d3111-affe-4c0d-9171-152344ee9942/k8s-tca.yaml
in line: 24, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy ves k8s-ves.yaml k8s-ves-inputs.yaml
+ cfy install -b ves -d ves -i /inputs/k8s-ves-inputs.yaml /blueprints/k8s-ves.yaml
Uploading blueprint /blueprints/k8s-ves.yaml...
k8s-ves.yaml |########################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f425088e990>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-ves-23955c82-26fa-46ab-aa19-b5de41ca6fbd/k8s-ves.yaml
in line: 22, column: 0
path: imports
value: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml']
+ deploy holmes_rules k8s-holmes-rules.yaml k8s-holmes_rules-inputs.yaml
+ cfy install -b holmes_rules -d holmes_rules -i /inputs/k8s-holmes_rules-inputs.yaml /blueprints/k8s-holmes-rules.yaml
Uploading blueprint /blueprints/k8s-holmes-rules.yaml...
k8s-holmes-rules.... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f425042c510>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-holmes-rules-c588b0d1-6f3b-4942-88f2-5b2f80e201a5/k8s-holmes-rules.yaml
in line: 21, column: 0
path: imports
value: ['https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/pgaas/1.1.0/pgaas_types.yaml']
+ deploy holmes_engine k8s-holmes-engine.yaml k8s-holmes_engine-inputs.yaml
+ cfy install -b holmes_engine -d holmes_engine -i /inputs/k8s-holmes_engine-inputs.yaml /blueprints/k8s-holmes-engine.yaml
Uploading blueprint /blueprints/k8s-holmes-engine.yaml...
k8s-holmes-engine... |################################################| 100.0%
An error occurred on the server: 400: Invalid blueprint - None of the resolver rules [{u'http://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'http://cloudify.co/spec': u'file:///opt/manager/resources/spec'}, {u'https://www.getcloudify.org/spec': u'file:///opt/manager/resources/spec'}, {u'https://cloudify.co/spec': u'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/R2/k8splugin/1.1.0/k8splugin_types.yaml; HTTPSConnectionPool(host='nexus.onap.org', port=443): Max retries exceeded with url: /service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f424f955110>: Failed to establish a new connection: [Errno -2] Name or service not known',))
in: /opt/manager/resources/k8s-holmes-engine-d80483b9-3a24-4023-95fe-3d2f16007482/k8s-holmes-engine.yaml
in line: 21, column: 0
path: imports
value: ['https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml', 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/pgaas/1.1.0/pgaas_types.yaml']
+ set -e
+ cfy deployments list
Listing all deployments...

Deployments:
+----+--------------+------------+------------+--------------+-------------+------------+
| id | blueprint_id | created_at | updated_at | availability | tenant_name | created_by |
+----+--------------+------------+------------+--------------+-------------+------------+
+----+--------------+------------+------------+--------------+-------------+------------+


Thanks,

Felix

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1
      • Is the issue only in this particular container or many other containers ?
      • Is the bootstrap container able to ping outside (I mean internet) using IP address ? (Try to ping google IP and see if it works). If it has no internet connection, then the issue is the way you have set up the network. I can't really help you with this in this case.
      • If it is able to ping ipaddress and just cannot resolve the name then it is a DNS issue.
        It is not able to import the dependency as the DNS resolution doesn't happen.

      To resolve DNS issue, Try to add the nameserver in the kube-dns pod and see if it fixes the issue.

      kubectl edit cm -n kube-system kube-dns
      add the following lines to the bottom
      data:
      upstreamNameservers: |
      ["8.8.8.8", "8.8.4.4"]

      delete the kube-dns pod so that it gets restarted.

      From the bootstrap container, see if you can do a wget on the below. (you may have to install wget)

      https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/k8splugin/1.1.0/k8splugin_types.yaml

      https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R2/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml

      https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/pgaas/1.1.0/pgaas_types.yaml

      If you are able to manually download the yaml files, then the DNS issue is fixed. Delete the bootstrap container so that k8s recreates the container which in turn reruns the script again. 



        CommentAdd your comment...
      1.  
        1
        0
        -1

        Thank you THIRILOSHINI KRISHNAKUMAR for the solution. I have the bootstrap running and all the services have been deployed. 

          CommentAdd your comment...