Hi Bharath,

Yes, please file a bug in jira and submit your patch which fixes it.

Appreciate your help

Bin

在 2018年10月24日,15:02,bharath thiruveedula 
<bharath_...@hotmail.com<mailto:bharath_...@hotmail.com>> 写道:

Hi Yang,

I found the problem. In this line 
https://github.com/onap/multicloud-openstack/blob/d6d8cbf451a596aa7cbaa240fbcafb288a3494bc/share/newton_base/openoapi/tenants.py#L52
we are appending "/v2.0/tenants" to the base url which also contains "/v2.0", 
so at the end it sends the request to '/v2.0/v2.0/tenants' to openstack . This 
creating the issue. So I modified the code from multicloud-windriver pod. Then 
it worked. Do we need to change this in upstream code?


Best Regards
Bharath T
________________________________
From: Yang, Bin <bin.y...@windriver.com<mailto:bin.y...@windriver.com>>
Sent: Wednesday, October 24, 2018 8:45 AM
To: bharath thiruveedula; 
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: RE: [multicloud] Unable to get tenant info from multicloud proxy


Hi Bharath,



               I didn’t see any issue from your registration. The only 
difference is that I register the vim with keystone v3 endpoint, while you are 
using the v2.0



I guess we need more debugging exercises:

Exercise 1, test the multicloud service with following curl commands



               export NODE_IP=<oom k8s node IP>

export MC_EP_PORT=30294

export MSB_PORT=30280





export 
MC_EPv0=http://$NODE_IP:MSB_PORT/api/multicloud/v0/pod25_regionOne<http://$node_ip:msb_port/api/multicloud/v0/pod25_regionOne>



curl -v -s -H "Content-Type: application/json" -X POST -d '{}'  
$MC_EPv0/identity/v2.0/tokens



export TOKEN=<TOKEN ID from token response>



curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET 
 $MC_EPv0/tenants





If exercise 1 does not work well with the tenants API, please dump the log with 
exercise 2 as below:



exercise 2, dump the debug output from multicloud service



step 1: dump debug output

               root@onap-oom-rancher:~# kubectl -n onap get pods |grep 
multicloud-windriver

dev-multicloud-multicloud-windriver-b5f9b7d5b-27z4l          2/2       Running  
          0          22h

root@onap-oom-rancher:~# kubectl -n onap exec -it 
dev-multicloud-multicloud-windriver-b5f9b7d5b-27z4l bash



               Defaulting container name to multicloud-windriver.

Use 'kubectl describe pod/dev-multicloud-multicloud-windriver-b5f9b7d5b-27z4l' 
to see all of the containers in this pod.

root@dev-multicloud-multicloud-windriver-b5f9b7d5b-27z4l:/opt/windriver# tail 
-f /var/log/onap/multicloud/openstack/windriver/titanium_cloud.log



               step 2: issue the requests in exercise 1, observe and capture 
the debug output, send it back to me.



Thanks





Best Regards,

Bin Yang,    Solution Engineering Team,    Wind River

ONAP Multi-VIM/Cloud PTL

Direct +86,10,84777126    Mobile +86,13811391682    Fax +86,10,64398189

Skype: yangbincs993



From: bharath thiruveedula [mailto:bharath_...@hotmail.com]
Sent: Wednesday, October 24, 2018 9:36 AM
To: Yang, Bin; onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: Re: [multicloud] Unable to get tenant info from multicloud proxy



Hi,



I register the VIM in ESR with the following values:





Cloud Owner: pod25

Cloud Region: regionOne

Cloud Zone: Cloud Zone

Cloud Type: Titanium Cloud

Auth URL: http://<ip>:5000/v2.0

username: <username>

password: <password>



Default Tenant: admin



The request I am  sending is 
http://<base_url>/api/multicloud/v0/pod25_regionOne/tenants



Is there something else I need to add while registering VIM?



I am running ONAP using OOM. Using robot scripts it created one VIM, but

sending request to default VIM errors out saying "VIM not supported"



Best Regards

Bharath T

________________________________

From: Yang, Bin <bin.y...@windriver.com<mailto:bin.y...@windriver.com>>
Sent: Tuesday, October 23, 2018 8:21 AM
To: bharath thiruveedula; 
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: RE: [multicloud] Unable to get tenant info from multicloud proxy



I just test the API with master branch, it works well (Note it is ONAP deployed 
by OOM)



> GET /api/multicloud/v0/CloudOwner_pod01/tenants HTTP/1.1

> Host: 10.12.5.184:30280

> User-Agent: curl/7.45.0

> Accept: */*

> Content-Type: application/json

>

< HTTP/1.1 200 Unknown Status Code

< Server: openresty

< Date: Tue, 23 Oct 2018 02:48:42 GMT

< Content-Type: application/json

< Content-Length: 32584

< Connection: keep-alive

< status: 200

< content-location: 
http://msb-iag.onap:80/api/multicloud-titaniumcloud/v0/CloudOwner_pod01/tenants

< Vary: Cookie

< -content-encoding: gzip

< Allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS

< x-frame-options: SAMEORIGIN

<

{ [5067 bytes data]



Best Regards,

Bin Yang,    Solution Engineering Team,    Wind River

ONAP Multi-VIM/Cloud PTL

Direct +86,10,84777126    Mobile +86,13811391682    Fax +86,10,64398189

Skype: yangbincs993



From: bharath thiruveedula [mailto:bharath_...@hotmail.com]
Sent: Tuesday, October 23, 2018 10:32 AM
To: Yang, Bin; onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: Re: [multicloud] Unable to get tenant info from multicloud proxy



Hi Yang,



I am using ONAP Beijing in my own machine.



Best Regards

Bharath T



________________________________

From: Yang, Bin <bin.y...@windriver.com<mailto:bin.y...@windriver.com>>
Sent: Tuesday, October 23, 2018 7:56:27 AM
To: bharath thiruveedula; 
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: RE: [multicloud] Unable to get tenant info from multicloud proxy



Which version of ONAP are you testing with? Where is it deployed? Integration 
lab?



Best Regards,

Bin Yang,    Solution Engineering Team,    Wind River

ONAP Multi-VIM/Cloud PTL

Direct +86,10,84777126    Mobile +86,13811391682    Fax +86,10,64398189

Skype: yangbincs993



From: bharath thiruveedula [mailto:bharath_...@hotmail.com]
Sent: Tuesday, October 23, 2018 8:58 AM
To: Yang, Bin; onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: Re: [multicloud] Unable to get tenant info from multicloud proxy



Hi Yang/Victor,



The response I got for "/tenants" is 404 resource not found. I actually 
register the cloud with admin details.



I am using titanium cloud version.



Best Regards

Bharath T

________________________________

From: Yang, Bin <bin.y...@windriver.com<mailto:bin.y...@windriver.com>>
Sent: Tuesday, October 23, 2018 6:22 AM
To: bharath thiruveedula; 
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Cc: HUANG, HAIBIN (haibin.hu...@intel.com<mailto:haibin.hu...@intel.com>)
Subject: RE: [multicloud] Unable to get tenant info from multicloud proxy



Hi Bharath,



What’s the response you got? Did it include any permission or privilege message?



And how do you onboard your openstack? Which cloud version was you 
choosing/populating? ocata? titanium_cloud?



It is most probably a tenant user privilege issue, while API “/tenants” 
requires openstack admin privilege, other APIs work well with openstack member 
privilege.



Thanks



Best Regards,

Bin Yang,    Solution Engineering Team,    Wind River

ONAP Multi-VIM/Cloud PTL

Direct +86,10,84777126    Mobile +86,13811391682    Fax +86,10,64398189

Skype: yangbincs993



From: bharath thiruveedula [mailto:bharath_...@hotmail.com]
Sent: Tuesday, October 23, 2018 1:59 AM
To: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>; Yang, Bin
Subject: [multicloud] Unable to get tenant info from multicloud proxy



Hi,



I am using multicloud to orchestrate VNF/NS in openstack through VF-C. I am 
currently facing an issue while getting tenant details from multicloud. The 
request looks like 
"msb_base_url:80/api/multicloud/v0/cloudowner_regionone/tenants", but this 
request throws 404 error. On the other side all other requests are working fine 
for example "/api/multicloud/v0/cloudowner_regionone/tenantid/servers", 
"/api/multicloud/v0/cloudowner_regionone/tenantid/images" and so on.



Am I missing something here while getting tenant information?



Best Regards

Bharath T

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13257): https://lists.onap.org/g/onap-discuss/message/13257
Mute This Topic: https://lists.onap.org/mt/27511033/21656
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to