Hi Shubhra

We have enabled onap Aai with CLI and your problem could be solved using CLI. 
You can access it from portal directly. Pls check onap CLI docs for more 
details and let me know if any help required.

Regards
Kanagaraj m
From: Shubhra Garg
To: 
onap-discuss<[email protected]<mailto:[email protected]>>;onap-arc<[email protected]<mailto:[email protected]>>
Subject: [Onap-arc] How to add new object and a new region in AAI ?
Time: 2017-12-26 15:34:21

Hi ONAP discuss Team,

1. AAI services sub-component missing : We have installed OOM version 1.1.0 but 
I can notice for AAI, the aai-services folder is missing. While other AAI 
sub-components like aai-resources,aai-traversal etc are present.
Not sure why the aai-services component/folder is missing.
2. AAI logs are missing : We were interested in checking the logs for AAI 
component, to understand the details like - after putting curl queries to AAI, 
how it is interacting with openstack. But, it was found that logs for AAI 
services in the AAI container are missing.
3. Not sure if there is any specific way to enable the AAI logs?
4. Can we add a new user ( say TEST1 ) into AAI , instead of the default value 
( CloudOwner). Currently all the curl queries are making use of CloudOwner as a 
default user. Any AAI API or curl query to add a new user and a new region into 
the AAI database?

Any help would be appreciated!


[cid:ce8d9e22-57e4-4e4e-a1ac-2bf4688d6f16]


root@ubuntu:/dockerdata-nfs/onap/aai# ls -lrt
total 48
drwxr-xr-x 4  501 staff 4096 Dec  1 22:15 sparky-be
drwxr-xr-x 4  501 staff 4096 Dec  1 22:15 search-data-service
drwxr-xr-x 4  501 staff 4096 Dec  1 22:15 model-loader
drwxr-xr-x 3  501 staff 4096 Dec  1 22:15 etc
drwxr-xr-x 4  501 staff 4096 Dec  1 22:15 elasticsearch
drwxr-xr-x 5  501 staff 4096 Dec  1 22:15 data-router
drwxrwxrwx 4 9001  9001 4096 Dec  1 22:15 aai-data
drwxrwxrwx 3  501 staff 4096 Dec  1 22:15 aai-config
drwxr-xr-x 3 root root  4096 Dec 21 14:54 opt
drwxr-xr-x 3 root root  4096 Dec 21 14:54 aai-traversal
drwxr-xr-x 3 root root  4096 Dec 21 14:54 aai-resources
drwxr-xr-x 2  501 staff 4096 Dec 21 15:15 haproxy
root@ubuntu:/dockerdata-nfs/onap/aai#


AAI curl queries :
echo "run partial vFW"
echo "curl with aai cert to cloud-region PUT"

curl -X PUT 
https://127.0.0.1:30233/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne
 --data "@aai-cloud-region-put.json" -H "authorization: Basic 
TW9kZWxMb2FkZXI6TW9kZWxMb2FkZXI=" -H "X-TransactionId:jimmy-postman" -H 
"X-FromAppId:AAI" -H "Content-Type:application/json" -H 
"Accept:application/json" --cacert aaiapisimpledemoopenecomporg_20171003.crt -k

echo "get the cloud region back"
curl -X GET https://127.0.0.1:30233/aai/v11/cloud-infrastructure/cloud-regions/ 
-H "authorization: Basic TW9kZWxMb2FkZXI6TW9kZWxMb2FkZXI=" -H 
"X-TransactionId:jimmy-postman" -H "X-FromAppId:AAI" -H 
"Content-Type:application/json" -H "Accept:application/json" --cacert 
aaiapisimpledemoopenecomporg_20171003.crt -k

Best Regards,
Shubhra

________________________________
From: GARG, SHUBHRA
Sent: Tuesday, December 19, 2017 9:01 PM
To: AGGARWAL, MANISHA; Colin
Subject: FW: How to add new object and a new region in AAI ?

Hi Manish/Colin,


Could you please let us know - how to add a new object  ( cloud-owner )and a 
new region in AAI ?

The CURL query and the json file required to add a new object and a new region 
is needed.

In our steup of openstack , we have "admin" as a user/cloud-owner, we are 
trying to add our openstack details into AAI.

Also, we require the CURL query to add a new region , " say " RegionFour" as 
mentioned in the "cloud-region-id".


our openstack details:

{

        "cloud-owner": "admin",

        "cloud-region-id": "RegionFour",

        "cloud-region-version": "2",

        "cloud-type": "openstack",

        "cloud-zone": "nova",

        "owner-defined-type": "publicURL"

}


Original aai-cloud-region-put.json file:

cat aai-cloud-region-put.json

{

        "cloud-owner": "CloudOwner",

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

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

        "cloud-type": "SharedNode",

        "cloud-zone": "CloudZone",

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

        "tenants": {

                "tenant": [{

                        "tenant-id": "{TENANT_ID}",

                        "tenant-name": "ecomp-dev"

                }]

        }

}


Best Regards,

Shubhra


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

Reply via email to