Alexis,

I am using amsterdam ./cd.sh -b amsterdam so some of this like robot may be 
solved elsewhere.


  1.  Dmapp-listener worked.
     *   I had to modify dhcpalert.properties to remove the “_” form the ID. 
sdnc_1 -> sdnc1 . I will create a JIRA ticket against SDNC as Medium when JIRA 
is responding again.
  2.  UEB listener does not work yet
     *   It didnt seem to be able to connect to SDC ? SDC is up but
     *   Do I need to modify parameters in ueb-listener.properties ?
     *   I see that SDC distributes to so and aai but not SDNC
  3.  Robot did not work – trying to patch/work around to use it and it 
partially succeed – could be amsterdam vs master issue
     *   Tried to run robot distribute and the heat templates were missing
     *   Used the following:

                                                               i.      Cd 
/dockerdata-nfs/onap/

                                                             ii.      Git clone 
http://gerrit.onap.org/r/demo

                                                           iii.      Cd demo

                                                           iv.      cp -rf heat 
../robot/eteshare

                                                             v.      this put 
the heat/vFW etc into the heat directory.

     *   After this distribute seems to work partially

                                                               i.      ROBOT 
fails after partially distributing looking for 6 thing and getting 5 – not sure 
what that error is but the models do seem to be distributed to AAI and SO from 
the SDC GUI perspective



UEB DEBUG:
DEBUG 2018-01-10 18:56:33.053 +0000 MainClientExec - Opening connection 
{s}->https://sdc-be.onap-sdc:8443
DEBUG 2018-01-10 18:56:33.066 +0000 DefaultHttpClientConnectionOperator - 
Connecting to sdc-be.onap-sdc/10.43.205.185:8443
DEBUG 2018-01-10 18:56:33.067 +0000 SSLConnectionSocketFactory - Connecting 
socket to sdc-be.onap-sdc/10.43.205.185:8443 with timeout 0
DEBUG 2018-01-10 18:58:42.310 +0000 DefaultManagedHttpClientConnection - 
http-outgoing-0: Shutdown connection
DEBUG 2018-01-10 18:58:42.311 +0000 MainClientExec - Connection discarded
DEBUG 2018-01-10 18:58:42.311 +0000 DefaultManagedHttpClientConnection - 
http-outgoing-0: Close connection
DEBUG 2018-01-10 18:58:42.312 +0000 PoolingHttpClientConnectionManager - 
Connection released: [id: 0][route: {s}->https://sdc-be.onap-sdc:8443][total 
kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
ERROR 2018-01-10 18:58:42.313 +0000 HttpAsdcClient - failed to connect to url: 
/sdc/v1/distributionUebCluster
org.apache.http.conn.HttpHostConnectException: Connect to sdc-be.onap-sdc:8443 
[sdc-be.onap-sdc/10.43.205.185] failed: Connection timed out (Connection timed 
out)
        at 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)


root@ueb-listener-847561612-tr7kn:/opt/onap/sdnc/data/properties# ls
artifact.map  dblib.properties  log4j.properties  ueb-listener.properties
root@ueb-listener-847561612-tr7kn:/opt/onap/sdnc/data/properties# cat ueb*
org.onap.ccsdk.sli.northbound.uebclient.asdc-address=sdc-be.onap-sdc:8443
org.onap.ccsdk.sli.northbound.uebclient.consumer-group=sdc-OpenSource-Env1-sdnc-dockero
org.onap.ccsdk.sli.northbound.uebclient.consumer-id=sdc-COpenSource-Env11-sdnc-dockero
org.onap.ccsdk.sli.northbound.uebclient.environment-name=AUTO
org.onap.ccsdk.sli.northbound.uebclient.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
org.onap.ccsdk.sli.northbound.uebclient.user=sdnc
org.onap.ccsdk.sli.northbound.uebclient.sdnc-user=admin
org.onap.ccsdk.sli.northbound.uebclient.sdnc-passwd=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
org.onap.ccsdk.sli.northbound.uebclient.asdc-api-base-url=http://sdnhost.onap-sdnc:8282/restconf/operations/
org.onap.ccsdk.sli.northbound.uebclient.asdc-api-namespace=org:onap:ccsdk
org.onap.ccsdk.sli.northbound.uebclient.spool.incoming=/opt/onap/sdnc/ueb-listener/spool/incoming
org.onap.ccsdk.sli.northbound.uebclient.spool.archive=/opt/onap/sdnc/ueb-listener/spool/archive
org.onap.ccsdk.sli.northbound.uebclient.polling-interval=30
org.onap.ccsdk.sli.northbound.uebclient.polling-timeout=15
org.onap.ccsdk.sli.northbound.uebclient.client-startup-timeout=900
org.onap.ccsdk.sli.northbound.uebclient.relevant-artifact-types=YANG_XML,VF_LICENSE,TOSCA_CSAR,UCPE_LAYER_2_CONFIGURATION
org.onap.ccsdk.sli.northbound.uebclient.activate-server-tls-auth=false
org.onap.ccsdk.sli.northbound.uebclient.keystore-path=
org.onap.ccsdk.sli.northbound.uebclient.keystore-password=
org.onap.ccsdk.sli.northbound.uebclient.xslt-path-list=
org.onap.ccsdk.sli.northbound.uebclient.artifact-map=/opt/onap/sdnc/data/properties/artifact.maproot@ueb-listener-84

From: FREEMAN, BRIAN D
Sent: Wednesday, January 10, 2018 1:55 PM
To: Alexis de Talhouët <[email protected]>
Cc: onap-discuss <[email protected]>
Subject: RE: [onap-discuss] [AAI][SO] How to add another LCP Region

“So is it fair to say X distinct OpenStack instances must have unique Region(s) 
to be used in ONAP? e.g. two instance cannot have the same Region.” – Yes

Brian

From: Alexis de Talhouët [mailto:[email protected]]
Sent: Wednesday, January 10, 2018 1:48 PM
To: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>
Cc: onap-discuss 
<[email protected]<mailto:[email protected]>>
Subject: Re: [onap-discuss] [AAI][SO] How to add another LCP Region

Ok, creating another Region in OpenStack , alongs with its service endpoints is 
working.

So is it fair to say X distinct OpenStack instances must have unique Region(s) 
to be used in ONAP? e.g. two instance cannot have the same Region.

Thanks for the help,
Alexis

On Jan 10, 2018, at 9:57 AM, FREEMAN, BRIAN D 
<[email protected]<mailto:[email protected]>> wrote:

I would name the second openstack something other than RegionOne in that 
Openstack :)  I suspect the design assumes the cloud regions have unique names 
but I didnt think robot needed the cloud region in their vanilla openstack 
keystone queries (but its been a while since I looked at a trace). I know 
Rackspace does have unique region names (IAD, DFW, etc) and we do in our 
installations but not sure if vanilla would require that.

Brian


From: Alexis de Talhouët [mailto:[email protected]]
Sent: Wednesday, January 10, 2018 9:53 AM
To: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>
Cc: onap-discuss 
<[email protected]<mailto:[email protected]>>
Subject: Re: [onap-discuss] [AAI][SO] How to add another LCP Region

Ok, haven’t thought about deploying another robot.

Regarding my attempt with RegionAlex, the thing is this region doesn’t exist in 
my Openstack, it’s RegionOne that exist. That’s why it’s not working. But I 
have to use a different name so mso can differentiate.
But maybe I haven’t updated all the python scripts. I’ll have another look at 
it.

Thanks,
Alexis


On Jan 10, 2018, at 9:49 AM, FREEMAN, BRIAN D 
<[email protected]<mailto:[email protected]>> wrote:

I dont think robot can handle multiple cloud regions from one isntance.

I would run two robot’s – one for each cloud region in all honesty or do what 
robot does via POSTMAN

One thing though:

Keystone address/Tenant/Username/Password have been changed as per as the Cloud 
Identity Service: id=ALEX_KEYSTONE
Now the issue:
—> If the region is RegionAlex, Robot can’t connect

That should have worked.  Are you sure you updated urls, tenantid, tenantname, 
credentials etc in all the .py’s needed ?

Brian



From: Alexis de Talhouët [mailto:[email protected]]
Sent: Wednesday, January 10, 2018 9:31 AM
To: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>
Cc: onap-discuss 
<[email protected]<mailto:[email protected]>>
Subject: Re: [onap-discuss] [AAI][SO] How to add another LCP Region

When you have two OpenStack having the same region, e.g. RegionOne, the thing 
is pretty complex and I haven’t figured it out completely.

Create a region in AAI with a different name, like RegionAlex as example 
bellow, and add your tenant to the region. Everything down to instantiation is 
working.
But then, we need to use heatbridge, which uses values in the vm_properties.py 
of robot container. In there, if I put my dummy region (RegionAlex), connection 
to the OpenStack is impossible.
If I put the valid region, e.g. RegionOne, connection is possible, but then 
heatbridge will try to populate the RegionOne CloudRegion in AAI for the given 
tenant, which of course exist under RegionAlex, and not RegionOne, so 
heatbridge fails with 404.
So then, if you create the tenant under RegionOne, heatbridge will work, but 
then you’re AAI is messed-up.

To have VID listing the region and the tenant, you need to create them in AAI. 
The cloud-region-id has the match the value in the mso-cloud-config, so 
correlation can happen and authentication is successful.

To recap, this is what I have:

In MSO:

Cloud Sites:
CloudSite: id=RegionOne, regionId=RegionOne, 
identityServiceId=DEFAULT_KEYSTONE, aic_version=2.5, clli=RegionOne
CloudSite: id=RegionAlex, regionId=RegionOne, identityServiceId=ALEX_KEYSTONE, 
aic_version=2.5, clli=RegionAlex

Cloud Identity Services:
Cloud Identity Service: id=DEFAULT_KEYSTONE, 
identityUrl=http://10.195.194.216:5000/v2.0<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.195.194.216-3A5000_v2.0&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=VUJoYm3UcavMJOo3tmXNf9nc82hLgiwojUtRW6iqYOk&s=T1EDl6plW6A--L5I-BnDXr7lX0IkPRXSDxN9CdIfmt0&e=>,
 msoId=nso, adminTenant=service, memberRole=admin, tenantMetadata=true, 
identityServerType=KEYSTONE, identityAuthenticationType=USERNAME_PASSWORD
Cloud Identity Service: id=ALEX_KEYSTONE, 
identityUrl=http://10.195.194.213:5000/v2.0<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.195.194.213-3A5000_v2.0&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=VUJoYm3UcavMJOo3tmXNf9nc82hLgiwojUtRW6iqYOk&s=UCzy0VYIlLOm53l9BwoxQMuT0pDKrDqSpVATrH0Mp0I&e=>,
 msoId=vnf, adminTenant=service, memberRole=admin, tenantMetadata=true, 
identityServerType=KEYSTONE, identityAuthenticationType=USERNAME_PASSWORD

In AAI:
{
    "cloud-region": [
        {
            "cloud-owner": "CloudOwner",
            "cloud-region-id": "RegionAlex",
            "cloud-type": "SharedNode",
            "owner-defined-type": "OwnerType",
            "cloud-region-version": "v1",
            "cloud-zone": "CloudZone",
            "sriov-automation": false,
            "resource-version": "1515592843258",
            "relationship-list": {
                "relationship": [
                    {
                        "related-to": "complex",
                        "related-link": 
"/aai/v11/cloud-infrastructure/complexes/complex/clli2",
                        "relationship-data": [
                            {
                                "relationship-key": 
"complex.physical-location-id",
                                "relationship-value": "clli2"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "cloud-owner": "CloudOwner",
            "cloud-region-id": "RegionOne",
            "cloud-type": "SharedNode",
            "owner-defined-type": "OwnerType",
            "cloud-region-version": "v1",
            "cloud-zone": "CloudZone",
            "sriov-automation": false,
            "resource-version": "1515100561059",
            "relationship-list": {
                "relationship": [
                    {
                        "related-to": "complex",
                        "related-link": 
"/aai/v11/cloud-infrastructure/complexes/complex/clli1",
                        "relationship-data": [
                            {
                                "relationship-key": 
"complex.physical-location-id",
                                "relationship-value": "clli1"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Tenant for RegionOne:
{
    "tenant": [
        {
            "tenant-id": "5c59f02201d54aa89af1f2207f7be2c1",
            "tenant-name": "nso-rancher",
            "resource-version": "1515100561148",
            "relationship-list": {
                "relationship": [
                                           —[cut]—
                ]
            }
        }
    ]
}

Tenant for RegionAlex:
{
    "tenant": [
        {
            "tenant-id": "7320ec4a5b9d4589ba7c4412ccfd290f",
            "tenant-name": "nso-vnf",
            "resource-version": "1515100561148",
            "relationship-list": {
                "relationship": [
                                           —[cut]—
                ]
            }
        }
    ]
}


In vm_properties.py in Robot:
In there, we have the following values populated: keystone address, tanant, 
username, password and tenant that we need to update to use the added region.

Keystone address/Tenant/Username/Password have been changed as per as the Cloud 
Identity Service: id=ALEX_KEYSTONE
Now the issue:
—> If the region is RegionAlex, Robot can’t connect
—> If the region is RegionOne, Robot can connect but then fail to update AAI 
because tenant

If I change the region name in AAI (from RegionAlex to RegionOne), and add the 
new tenant in there, then MSO picks the wrong Cloud Identity Service, then 
instantiation fails.


Do you guys have a proper way of doing this, that would really help.

Thanks,
Alexis





On Jan 9, 2018, at 10:18 AM, Alexis de Talhouët 
<[email protected]<mailto:[email protected]>> wrote:

Ok, so by having the cloud site as follow

        "RegionAlex":
        {
          "region_id": "RegionAlex",
          "clli": "RegionAlex",
          "aic_version": "2.5",
          "identity_service_id": "ALEX_KEYSTONE"
        }

it’s showing correctly in VID. I also created its own clli in AAI.

But I thought the region does matter for OpenStack, doesn’t it?

Alexis



On Jan 9, 2018, at 9:37 AM, FREEMAN, BRIAN D 
<[email protected]<mailto:[email protected]>> wrote:

You need to name one RegionTwo or something,

From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Alexis de Talhouët
Sent: Tuesday, January 09, 2018 9:34 AM
To: onap-discuss 
<[email protected]<mailto:[email protected]>>
Subject: [onap-discuss] [AAI][SO] How to add another LCP Region

Hello AAI, SO expert,

I’m trying to add another LCP Region to be able to deploy VNF in another 
OpenStack instance.

To do so, I have done the following:

In MSO:
- Add a Cloud Site

        "RegionAlex":
        {
          "region_id": "RegionOne",
          "clli": "RegionOne",
          "aic_version": "2.5",
          "identity_service_id": "ALEX_KEYSTONE"
        }

- Add it’s associated Cloud Identity Services

       "ALEX_KEYSTONE":
        {
          "identity_url": 
"http://10.195.194.215:5000/v2.0<https://urldefense.proofpoint.com/v2/url?u=http-3A__10.195.194.215-3A5000_v2.0&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=oHswheJmkWJIcCFYw24k7XQ3lZ-POKBf-k_XFejRrNQ&s=u3st_5cAWjMqICf5KR8cqtqgGnlBWa9NLed_jnRmi9Q&e=>",
          "mso_id": "nso",
          "mso_pass": "86b74198e8ccb959eaaadefevsd2a8a2",
          "admin_tenant": "service",
          "member_role": "admin",
          "tenant_metadata": true,
          "identity_server_type": "KEYSTONE",
          "identity_authentication_type": "USERNAME_PASSWORD"
        }

In AAI:
- Create a cloud region

        {
            "cloud-owner": "CloudOwner",
            "cloud-region-id": "RegionAlex",
            "cloud-type": "SharedNode",
            "owner-defined-type": "OwnerType",
            "cloud-region-version": "v1",
            "cloud-zone": "CloudZone",
            "sriov-automation": false,
            "resource-version": "1515506147118",
            "relationship-list": {
                "relationship": [
                    {
                        "related-to": "complex",
                        "related-link": 
"/aai/v11/cloud-infrastructure/complexes/complex/clli1",
                        "relationship-data": [
                            {
                                "relationship-key": 
"complex.physical-location-id",
                                "relationship-value": "clli1"
                            }
                        ]
                    }
                ]
            }
        }


- Create the tenant in the region for the 4 different services with the right 
tenant id:

{
    "tenant-id": "21ca0f4c2239475fbf1b4b499399163e",
    "tenant-name": "nso-rancher",
    "relationship-list": {
        "relationship": [
            {
                "related-to": "service-subscription",
                "related-link": 
"/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB",
                "relationship-data": [
                    {
                        "relationship-key": "customer.global-customer-id",
                        "relationship-value": "Demonstration"
                    },
                    {
                        "relationship-key": "service-subscription.service-type",
                        "relationship-value": "vLB"
                    }
                ]
            },
            {
                "related-to": "service-subscription",
                "related-link": 
"/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vIMS",
                "relationship-data": [
                    {
                        "relationship-key": "customer.global-customer-id",
                        "relationship-value": "Demonstration"
                    },
                    {
                        "relationship-key": "service-subscription.service-type",
                        "relationship-value": "vIMS"
                    }
                ]
            },
            {
                "related-to": "service-subscription",
                "related-link": 
"/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFWCL",
                "relationship-data": [
                    {
                        "relationship-key": "customer.global-customer-id",
                        "relationship-value": "Demonstration"
                    },
                    {
                        "relationship-key": "service-subscription.service-type",
                        "relationship-value": "vFWCL"
                    }
                ]
            },
            {
                "related-to": "service-subscription",
                "related-link": 
"/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vCPE",
                "relationship-data": [
                    {
                        "relationship-key": "customer.global-customer-id",
                        "relationship-value": "Demonstration"
                    },
                    {
                        "relationship-key": "service-subscription.service-type",
                        "relationship-value": "vCPE"
                    }
                ]
            }
        ]
    }
}

So my expectation is to have VID displaying the two LCP Region so I can pick 
the one where I want to deploy.

The thing is, VID is showing only one “RegionOne” option. But in the console I 
can see it’s retrieving two.

cloudRegionTenantList=  creationService.js:909:3
[
    {
        "cloudRegionId": "",
        "tenantName": "Please choose a region",
        "tenantId": ""
    },
    {
        "cloudRegionId": "RegionOne",
        "tenantName": "nso-rancher",
        "tenantId": "5c59f02201d54aa89af1f2207f7be2c1",
        "isPermitted": true
    },
    {
        "cloudRegionId": "RegionOne",
        "tenantName": "nso-rancher",
        "tenantId": "21ca0f4c2239475fbf1b4b499399163e",
        "isPermitted": true
    }
]

So I’m wondering what I could have done wrong. As the cloudRegionId are the 
same, it’s displaying only one, but you can see the tenantId is different.


My question is, what should be the process to do this?

Thanks,
Alexis

_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to