Topics

Naming conflict with cloud region


Marco Platania
 

All,

 

Who created a new cloud region called RegionOne, with cloud owner CloudOwner2, in Integration-SB-00 lab? See AAI object below. Please let us know because we ended up in a naming conflict and we aren’t able to spin up new VNFs in that lab. VID is receiving multiple cloud regions with the same name and doesn’t know which one to pick.

 

For future reference, please call the cloud region differently, for example RegionFour or something (I think robot has a script that creates RegionTwo and RegionThree), and then link that new region to the actual OpenStack RegionOne in the catalogdb database, cloud_sites table in MariaDB galera cluster (pick one of the 3 cluster nodes, updates will propagate).

 

MariaDB [catalogdb]> select * from cloud_sites;

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| ID                | REGION_ID | IDENTITY_SERVICE_ID | CLOUD_VERSION | CLLI      | CLOUDIFY_ID | PLATFORM | ORCHESTRATOR | LAST_UPDATED_BY | CREATION_TIMESTAMP  | UPDATE_TIMESTAMP    |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| Chicago           | ORD       | RAX_KEYSTONE        | 2.5           | ORD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Dallas            | DFW       | RAX_KEYSTONE        | 2.5           | DFW       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| DEFAULT           | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Northern Virginia | IAD       | RAX_KEYSTONE        | 2.5           | IAD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| RegionOne         | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

 

The ID (green) is your cloud region tag (DO NOT USE RegionOne !!!), while the Region_ID and CLLI (yellow) refer to your OpenStack actual region. Here you should have RegionOne.

 

Thanks,

Marco

 

 

{

            "cloud-owner": "CloudOwner2",

            "cloud-region-id": "RegionOne",

            "cloud-type": "openstack",

            "owner-defined-type": "t1",

            "cloud-region-version": "titanium_cloud",

            "identity-url": "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner2/RegionOne/identity/v2.0",

            "cloud-zone": "z1",

            "complex-name": "clli1",

            "cloud-extra-info": "",

            "orchestration-disabled": false,

            "in-maint": false,

            "resource-version": "1556514985452",

            "relationship-list": {

                "relationship": [

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-05",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-05"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-00",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-00"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-03",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-03"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-08",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-08"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-01",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-01"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-09",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-09"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-06",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-06"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-04",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-04"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-02",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-02"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-12",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-12"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-07",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-07"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-10",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-10"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "complex",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/complexes/complex/clli1",

                        "relationship-data": [

                            {

                                "relationship-key": "complex.physical-location-id",

                                "relationship-value": "clli1"

                            }

                        ]

                    }

                ]

            }


Keong Lim
 

Hi all,

Please note that in the AAI schema for "cloud-region" class, the unique key is composed of two parts, namely "cloud-owner" and "cloud-region-id".

As noted in https://lists.onap.org/g/onap-discuss/message/16740 both of these parts are required to uniquely identify a "cloud-region" object.

If you are depending on "cloud-region-id", by itself, to be unique, then I would suggest that this is an error. Either the AAI schema needs to be amended, or the usage of the "cloud-region" object needs to be amended.

See also discussion in https://wiki.onap.org/display/DW/2019-04-25+AAI+Developers+Meeting agenda item 1.


Keong


Stern, Ittay <ittay.stern@...>
 

You’re saying that “VID is receiving multiple cloud regions with the same name and doesn’t know which one to pick”.

Can you explain your scenario?

 

Dublin’s VID is distinguishing regions with different owners:

 

 

 

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of PLATANIA, MARCO
Sent: Monday, April 29, 2019 6:56 PM
To: onap-discuss@...
Subject: [onap-discuss] Naming conflict with cloud region
Importance: High

 

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

All,

 

Who created a new cloud region called RegionOne, with cloud owner CloudOwner2, in Integration-SB-00 lab? See AAI object below. Please let us know because we ended up in a naming conflict and we aren’t able to spin up new VNFs in that lab. VID is receiving multiple cloud regions with the same name and doesn’t know which one to pick.

 

For future reference, please call the cloud region differently, for example RegionFour or something (I think robot has a script that creates RegionTwo and RegionThree), and then link that new region to the actual OpenStack RegionOne in the catalogdb database, cloud_sites table in MariaDB galera cluster (pick one of the 3 cluster nodes, updates will propagate).

 

MariaDB [catalogdb]> select * from cloud_sites;

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| ID                | REGION_ID | IDENTITY_SERVICE_ID | CLOUD_VERSION | CLLI      | CLOUDIFY_ID | PLATFORM | ORCHESTRATOR | LAST_UPDATED_BY | CREATION_TIMESTAMP  | UPDATE_TIMESTAMP    |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| Chicago           | ORD       | RAX_KEYSTONE        | 2.5           | ORD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Dallas            | DFW       | RAX_KEYSTONE        | 2.5           | DFW       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| DEFAULT           | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Northern Virginia | IAD       | RAX_KEYSTONE        | 2.5           | IAD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| RegionOne         | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

 

The ID (green) is your cloud region tag (DO NOT USE RegionOne !!!), while the Region_ID and CLLI (yellow) refer to your OpenStack actual region. Here you should have RegionOne.

 

Thanks,

Marco

 

 

{

            "cloud-owner": "CloudOwner2",

            "cloud-region-id": "RegionOne",

            "cloud-type": "openstack",

            "owner-defined-type": "t1",

            "cloud-region-version": "titanium_cloud",

            "identity-url": "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner2/RegionOne/identity/v2.0",

            "cloud-zone": "z1",

            "complex-name": "clli1",

            "cloud-extra-info": "",

            "orchestration-disabled": false,

            "in-maint": false,

            "resource-version": "1556514985452",

            "relationship-list": {

                "relationship": [

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-05",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-05"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-00",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-00"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-03",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-03"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-08",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-08"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-01",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-01"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-09",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-09"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-06",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-06"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-04",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-04"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-02",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-02"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-12",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-12"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-07",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-07"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-10",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-10"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "complex",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/complexes/complex/clli1",

                        "relationship-data": [

                            {

                                "relationship-key": "complex.physical-location-id",

                                "relationship-value": "clli1"

                            }

                        ]

                    }

                ]

            }


Marco Platania
 

There were two cloud regions with the same name but different cloud owners and VID seemed confused. I can’t really reproduce the error because I cleaned up the environment. If you want to reproduce it in your local lab, you can use the JSON object below. This is very similar to the AAI cloud region configuration that we had yesterday. We ran GET https://{{aai_ip}}:{{aai_port}}/aai/v13/cloud-infrastructure/cloud-regions?cloud-region-id=RegionOne and got something like this:

 

{

    "cloud-region": [

        {

            "cloud-owner": "CloudOwner",

            "cloud-region-id": "RegionOne",

            "cloud-type": "openstack",

            "cloud-region-version": "v2.5",

            "identity-url": "http://10.43.111.6/api/multicloud/v0/CloudOwner_RegionTwo/identity/v2.0/tokens",

            "cloud-zone": "bm-2",

            "complex-name": "complex-2",

            "resource-version": "1546461316786",

            "relationship-list": {

                "relationship": [

                    {

                        "related-to": "complex",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v13/cloud-infrastructure/complexes/complex/clli2",

                        "relationship-data": [

                            {

                                "relationship-key": "complex.physical-location-id",

                                "relationship-value": "clli2"

                            }

                        ]

                    }

                ]

            }

        },

        {

            "cloud-owner": "CloudOwner2",

            "cloud-region-id": "RegionOne",

            "cloud-type": "openstack",

            "owner-defined-type": "owner type",

            "cloud-region-version": "v2.5",

            "cloud-zone": "bm-1",

            "resource-version": "1546461297568",

            "relationship-list": {

                "relationship": [

                    {

                        "related-to": "complex",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v13/cloud-infrastructure/complexes/complex/clli1",

                        "relationship-data": [

                            {

                                "relationship-key": "complex.physical-location-id",

                                "relationship-value": "clli1"

                            }

                        ]

                    }

                ]

            }

        }

    ]

}

 

Marco

 

From: "Stern, Ittay" <ittay.stern@...>
Date: Tuesday, April 30, 2019 at 3:36 AM
To: "onap-discuss@..." <onap-discuss@...>, "PLATANIA, MARCO (MARCO)" <platania@...>
Subject: RE: Naming conflict with cloud region

 

You’re saying that “VID is receiving multiple cloud regions with the same name and doesn’t know which one to pick”.

Can you explain your scenario?

 

Dublin’s VID is distinguishing regions with different owners:

 

 

 

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of PLATANIA, MARCO
Sent: Monday, April 29, 2019 6:56 PM
To: onap-discuss@...
Subject: [onap-discuss] Naming conflict with cloud region
Importance: High

 

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

All,

 

Who created a new cloud region called RegionOne, with cloud owner CloudOwner2, in Integration-SB-00 lab? See AAI object below. Please let us know because we ended up in a naming conflict and we aren’t able to spin up new VNFs in that lab. VID is receiving multiple cloud regions with the same name and doesn’t know which one to pick.

 

For future reference, please call the cloud region differently, for example RegionFour or something (I think robot has a script that creates RegionTwo and RegionThree), and then link that new region to the actual OpenStack RegionOne in the catalogdb database, cloud_sites table in MariaDB galera cluster (pick one of the 3 cluster nodes, updates will propagate).

 

MariaDB [catalogdb]> select * from cloud_sites;

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| ID                | REGION_ID | IDENTITY_SERVICE_ID | CLOUD_VERSION | CLLI      | CLOUDIFY_ID | PLATFORM | ORCHESTRATOR | LAST_UPDATED_BY | CREATION_TIMESTAMP  | UPDATE_TIMESTAMP    |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

| Chicago           | ORD       | RAX_KEYSTONE        | 2.5           | ORD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Dallas            | DFW       | RAX_KEYSTONE        | 2.5           | DFW       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| DEFAULT           | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| Northern Virginia | IAD       | RAX_KEYSTONE        | 2.5           | IAD       | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

| RegionOne         | RegionOne | DEFAULT_KEYSTONE    | 2.5           | RegionOne | NULL        | NULL     | NULL         | FLYWAY          | 2019-04-24 19:54:15 | 2019-04-24 19:54:15 |

+-------------------+-----------+---------------------+---------------+-----------+-------------+----------+--------------+-----------------+---------------------+---------------------+

 

The ID (green) is your cloud region tag (DO NOT USE RegionOne !!!), while the Region_ID and CLLI (yellow) refer to your OpenStack actual region. Here you should have RegionOne.

 

Thanks,

Marco

 

 

{

            "cloud-owner": "CloudOwner2",

            "cloud-region-id": "RegionOne",

            "cloud-type": "openstack",

            "owner-defined-type": "t1",

            "cloud-region-version": "titanium_cloud",

            "identity-url": "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner2/RegionOne/identity/v2.0",

            "cloud-zone": "z1",

            "complex-name": "clli1",

            "cloud-extra-info": "",

            "orchestration-disabled": false,

            "in-maint": false,

            "resource-version": "1556514985452",

            "relationship-list": {

                "relationship": [

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-05",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-05"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-00",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-00"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-03",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-03"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-08",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-08"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-01",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-01"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-09",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-09"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-06",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-06"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-04",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-04"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-02",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-02"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-12",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-12"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-07",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-07"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "pserver",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner2_RegionOne_compute-10",

                        "relationship-data": [

                            {

                                "relationship-key": "pserver.hostname",

                                "relationship-value": "CloudOwner2_RegionOne_compute-10"

                            }

                        ],

                        "related-to-property": [

                            {

                                "property-key": "pserver.pserver-name2"

                            }

                        ]

                    },

                    {

                        "related-to": "complex",

                        "relationship-label": "org.onap.relationships.inventory.LocatedIn",

                        "related-link": "/aai/v16/cloud-infrastructure/complexes/complex/clli1",

                        "relationship-data": [

                            {

                                "relationship-key": "complex.physical-location-id",

                                "relationship-value": "clli1"

                            }

                        ]

                    }

                ]

            }