Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-1079

Multicloud openstack pike fails getting openstack resources to AAI

XMLWordPrintable

      Hello.

      I'm trying to deploy a VNF using ONAP ElAlto and Vanilla Openstack.

      Cloud region object was succesfully created in AAI, but after registration in MSB I saw an errors in multicloud-pike log (attached file pike.log). The main problem - pike adapter get cloud_openstack_region_id from viminfo instead of openstack_region_id.

      I used the detailed description from https://docs.onap.org/en/latest/guides/onap-operator/cloud_site/openstack/index.html and cloud region looks like:

      {     "cloud-owner": "MTS",     "cloud-region-id": "ONAPMtsRegion1",     "cloud-type": "openstack",     "owner-defined-type": "N/A",     "cloud-region-version": "pike",     "identity-url": "http://msb-iag.onap:80/api/multicloud-pike/v0/MTS_ONAPMtsRegion1/identity/v2.0",     "cloud-zone": "CloudZone",     "complex-name": "MtsComplex",     "sriov-automation": "false",     "cloud-extra-info": "\{\"openstack-region-id\":\"RegionOne\"}

      ",
          "orchestration-disabled": false,
          "in-maint": false,
          "resource-version": "1591255417617",
          "tenants": {
              "tenant": [
                  

      {                 "tenant-id": "f6bcc0cc265940ea8c2c95d54d63a8ab",                 "tenant-name": "admin",                 "resource-version": "1591255418763"             }

      ,
                  

      {                 "tenant-id": "7e3d9eb18e7c46deb7becfd820fd5a24",                 "tenant-name": "services",                 "resource-version": "1591255418612"             }

      ,
                  

      {                 "tenant-id": "f525e23aa51440e2ac766c7f8dfe0ab1",                 "tenant-name": "demo",                 "resource-version": "1591255418688"             }

              ]
          },
          "esr-system-info-list": {
              "esr-system-info": [
                  

      {                 "esr-system-info-id": "fa32964e-9517-11ea-bb37-0242ac130002",                 "service-url": "http://10.0.68.131:5000/v3",                 "user-name": "onap_mts",                 "password": "K38p8bOt",                 "system-type": "VIM",                 "ssl-insecure": false,                 "cloud-domain": "Default",                 "default-tenant": "admin",                 "system-status": "active",                 "resource-version": "1591255133733"             }

              ]
          }
      }
       
      In the multicloud-pike extsys.py I found , what openstack_region_id getting from tmp_viminfo.get("cloud-epa-caps")
      but I don't use it, because it not presented in AAI API v16 and openstack region set in "cloud-extra-info": "{\"openstack-region-id\":\"RegionOne\"}"
      So, pike adapter set the openstack_region_id equal to cloud_region_id which is different then region in Openstack (and I've not seen that it should be equal).
       

        1. aai_put_cloudsite_pike.sh
          1 kB
        2. aai_put_cloudsite_starlingx.sh
          1 kB
        3. extsys.py
          5 kB
        4. helper.py
          16 kB
        5. pike_09062020.log
          22 kB
        6. pike.log
          22 kB
        7. registration.py
          65 kB
        8. starlingx_09062020.log
          30 kB

            biny993 biny993
            avpetr23 avpetr23
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: