Re: [onap-discuss] [msb] Cannot access Services through MSB

2017-11-29 Thread zhao.huabing
Hi Audhut,






If you're using K8s/OOM approach to deploy ONAP, all the services should be 
automatically registered to MSB by kube2msb registrator.


kube2msb registrator is watching the kubernetes events and get service 
endpoints information form the annotation of config and use that information to 
register the services to MSB. Detailed introduction can be found 
here:https://wiki.onap.org/display/DW/Microservices+Bus+Tutorial 






I guess the reason is that you didn't specify the kubernetes API token in the 
oom/kubernetes/kube2msb/values.yaml config file, kube2msb-registrator need it 
to access the kubernetes master. 


Please replace the token in red with the token in your kubernetes environment, 
you can find it in  ~/.kube/config



nsPrefix: onap

pullPolicy: IfNotPresent

image:

  kube2msb: nexus3.onap.org:10001/onap/oom/kube2msb

kubeMasterUrl: https://kubernetes.default.svc.cluster.local:443

discoveryUrl: http://msb-discovery.onap-msb:10081

kubeMasterAuthToken: 
QmFzaWMgTURrd056VXdSVEk1TVRGRk9UaEVOREJCTWprNlpHTnlaSGt4YzJsSVlsRlVZVU16WTFsUk1XWnZhV0UyY21GRWEwNUhkMDFDVWxORVRIUmlZUT09




MSB internal api gateway is exposed on nodeport 30080, once you get all the 
services running, you can browse all the registered services on the MSB portal  
http://{HOST_IP}:30080/msb .




BR,

Huabing







Original Mail



Sender:  ;
To: zhaohuabing10201488;
CC:  ;
Date: 2017/11/29 19:29
Subject: RE: Re:[onap-discuss] [msb] Cannot access Services through MSB




Hi  Zhao,


Tried it but without any luck.


I am executing this on the onap k8s env and I have observed that one of the POD 
is down - kube2msb-registrator-1900608333-06b2p. Could that be the reason? What 
 is the main function of this POD?


What are the other containers


-  msb-eag-565007981-vgnth – is this the external gateway


-  msb-iag-3532976410-8xf0c – is this the internal gateway


 


Is there a way to check if the service is registered in the internal gateway.


 


I will check once I get the registrator pod running.


 


Thanks,


Avdhut Kholkar


From: zhao.huab...@zte.com.cn [mailto:zhao.huab...@zte.com.cn] 
 Sent: Wednesday, November 29, 2017 1:33 PM
 To: Avdhut Kholkar 
 Cc: onap-discuss@lists.onap.org
 Subject: Re:[onap-discuss] [msb] Cannot access Services through MSB


 

Hi Avdhut,

 

It seems like the AAI service has not been successfully registered to MSB.

 

Could you please try this curl command and send me the output?

 

curl -X POST \
 -H "Content-Type: application/json" \
 -d '{"serviceName": "aai", "version": "v8", "url": "/aai/v8","protocol": 
"REST", "path": "/aai/v8", "nodes": [ {"ip": "{AAI_IP}","port": "8443"}]}' \
 "http://127.0.0.1:10081/api/microservices/v1/services";

 

Thanks,

Huabing

 

Original Mail



Sender:  ;



To:  ;



Date: 2017/11/29 14:36



Subject: [onap-discuss] [msb] Cannot access Services through MSB




___
onap-discuss mailing list
 onap-discuss@lists.onap.org
 https://lists.onap.org/mailman/listinfo/onap-discuss
 
 


Hi,


 


I have followed instructions mentioned over page: 
https://wiki.onap.org/display/DW/MSB+Test+Environment+Setup 


I have registered AAI service in MSB as mentioned in the wiki above


{


  "serviceName": "aai",


  "version": "v8",


  "url": "/aai/v11",


  "protocol": "REST",


  "visualRange": "1",


  "path":"/aai/v11",


  "nodes": [


{


  "ip": "10.235.34.13",


  "port": "40325",


  "ttl": 0


}


  ]


}


 


If I access the URL directly from AAI it works


https://:/aai/v8/cloud-infrastructure/cloud-regions


Response: 200 OK


{


"cloud-region": [


{


"cloud-owner": "OnapPrivateCloud",


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


"cloud-type": "SharedNode",


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


"cloud-region-version": "v1",


"cloud-zone": "CloudZone",


"resource-version": "1511873022465",


"tenants": {


"tenant": [


{


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


"tenant-name": "onap-dev",


"resource-version": "1511873022533"


}


]


}


}


]


}


 


But If I access through MSB API, I get a ‘BAD Gateway’ 

Re: [onap-discuss] [msb] Cannot access Services through MSB

2017-11-29 Thread Avdhut Kholkar
Hi  Zhao,
Tried it but without any luck.
I am executing this on the onap k8s env and I have observed that one of the POD 
is down - kube2msb-registrator-1900608333-06b2p. Could that be the reason? What 
is the main function of this POD?
What are the other containers

-  msb-eag-565007981-vgnth – is this the external gateway

-  msb-iag-3532976410-8xf0c – is this the internal gateway

Is there a way to check if the service is registered in the internal gateway.

I will check once I get the registrator pod running.

Thanks,
Avdhut Kholkar
From: zhao.huab...@zte.com.cn [mailto:zhao.huab...@zte.com.cn]
Sent: Wednesday, November 29, 2017 1:33 PM
To: Avdhut Kholkar 
Cc: onap-discuss@lists.onap.org
Subject: Re:[onap-discuss] [msb] Cannot access Services through MSB


Hi Avdhut,



It seems like the AAI service has not been successfully registered to MSB.



Could you please try this curl command and send me the output?



curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai", "version": "v8", "url": "/aai/v8","protocol": 
"REST", "path": "/aai/v8", "nodes": [ {"ip": "{AAI_IP}","port": "8443"}]}' \
"http://127.0.0.1:10081/api/microservices/v1/services";



Thanks,

Huabing



Original Mail
Sender:  mailto:avdhut.khol...@amdocs.com>>;
To:  mailto:onap-discuss@lists.onap.org>>;
Date: 2017/11/29 14:36
Subject: [onap-discuss] [msb] Cannot access Services through MSB
___
onap-discuss mailing list
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
https://lists.onap.org/mailman/listinfo/onap-discuss


Hi,

I have followed instructions mentioned over page: 
https://wiki.onap.org/display/DW/MSB+Test+Environment+Setup
I have registered AAI service in MSB as mentioned in the wiki above
{
  "serviceName": "aai",
  "version": "v8",
  "url": "/aai/v11",
  "protocol": "REST",
  "visualRange": "1",
  "path":"/aai/v11",
  "nodes": [
{
  "ip": "10.235.34.13",
  "port": "40325",
  "ttl": 0
}
  ]
}

If I access the URL directly from AAI it works
https://:/aai/v8/cloud-infrastructure/cloud-regions<https://%3cipaddress%3e:%3cport%3e/aai/v8/cloud-infrastructure/cloud-regions>
Response: 200 OK
{
"cloud-region": [
{
"cloud-owner": "OnapPrivateCloud",
"cloud-region-id": "RegionOne",
"cloud-type": "SharedNode",
"owner-defined-type": "OwnerType",
"cloud-region-version": "v1",
"cloud-zone": "CloudZone",
"resource-version": "1511873022465",
"tenants": {
"tenant": [
{
"tenant-id": "{{tenant_id}}",
"tenant-name": "onap-dev",
"resource-version": "1511873022533"
}
]
}
}
]
}

But If I access through MSB API, I get a ‘BAD Gateway’ error

GET 
/api/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/OnapPrivateCloud/RegionOne
Host: 10.235.34.13: 40325
Content-Type: application/json
X-FromAppId: AAI
Accept: application/json

Response: 502 Bad Gateway


502 Bad Gateway



502 Bad Gateway

error message:No route found for this request!

nginx



I also tried by registering a SO URL and have the same issue. I am able to 
access the SO URL directly but via MSB.
Note that my env did not register the services directly via ESR – this should 
not make a difference I think.

Can someone help?
Regards,
Avdhut
This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer
Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer 
<https://www.amdocs.com/about/email-disclaimer>

Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)
___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss


Re: [onap-discuss] [msb] Cannot access Services through MSB

2017-11-29 Thread Kanagaraj Manickam
You may want to try using the ONAP CLI ‘onap microservice-create ‘, which is 
very simple to use.

Regards
Kanagaraj M

***
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!**

***
This e-mail and its attachments contain confidential information from HUAWEI, 
which is intended only for the person  or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not   
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is  prohibited. If you receive 
this e-mail in error, please notify the sender by phone or email immediately 
and delete it!
***

From: onap-discuss-boun...@lists.onap.org 
[mailto:onap-discuss-boun...@lists.onap.org] On Behalf Of 
zhao.huab...@zte.com.cn
Sent: Wednesday, November 29, 2017 1:33 PM
To: avdhut.khol...@amdocs.com
Cc: onap-discuss@lists.onap.org
Subject: Re: [onap-discuss] [msb] Cannot access Services through MSB


Hi Avdhut,



It seems like the AAI service has not been successfully registered to MSB.



Could you please try this curl command and send me the output?



curl -X POST \
-H "Content-Type: application/json" \
-d '{"serviceName": "aai", "version": "v8", "url": "/aai/v8","protocol": 
"REST", "path": "/aai/v8", "nodes": [ {"ip": "{AAI_IP}","port": "8443"}]}' \
"http://127.0.0.1:10081/api/microservices/v1/services";



Thanks,

Huabing



Original Mail
Sender:  mailto:avdhut.khol...@amdocs.com>>;
To:  mailto:onap-discuss@lists.onap.org>>;
Date: 2017/11/29 14:36
Subject: [onap-discuss] [msb] Cannot access Services through MSB
___
onap-discuss mailing list
onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
https://lists.onap.org/mailman/listinfo/onap-discuss


Hi,

I have followed instructions mentioned over page: 
https://wiki.onap.org/display/DW/MSB+Test+Environment+Setup
I have registered AAI service in MSB as mentioned in the wiki above
{
  "serviceName": "aai",
  "version": "v8",
  "url": "/aai/v11",
  "protocol": "REST",
  "visualRange": "1",
  "path":"/aai/v11",
  "nodes": [
{
  "ip": "10.235.34.13",
  "port": "40325",
  "ttl": 0
}
  ]
}

If I access the URL directly from AAI it works
https://:/aai/v8/cloud-infrastructure/cloud-regions<https://%3cipaddress%3e:%3cport%3e/aai/v8/cloud-infrastructure/cloud-regions>
Response: 200 OK
{
"cloud-region": [
{
"cloud-owner": "OnapPrivateCloud",
"cloud-region-id": "RegionOne",
"cloud-type": "SharedNode",
"owner-defined-type": "OwnerType",
"cloud-region-version": "v1",
"cloud-zone": "CloudZone",
"resource-version": "1511873022465",
"tenants": {
"tenant": [
{
"tenant-id": "{{tenant_id}}",
"tenant-name": "onap-dev",
"resource-version": "1511873022533"
}
]
}
}
]
}

But If I access through MSB API, I get a ‘BAD Gateway’ error

GET 
/api/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/OnapPrivateCloud/RegionOne
Host: 10.235.34.13: 40325
Content-Type: application/json
X-FromAppId: AAI
Accept: application/json

Response: 502 Bad Gateway


502 Bad Gateway



502 Bad Gateway

error message:No route found for this request!

nginx



I also tried by registering a SO URL and have the same issue. I am able to 
access the SO URL directly but via MSB.
Note that my env did not register the services directly via ESR – this should 
not make a difference I think.

Can someone help?
Regards,
Avdhut
This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer
Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)


___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss


Re: [onap-discuss] [msb] Cannot access Services through MSB

2017-11-29 Thread zhao.huabing
Hi Avdhut,






It seems like the AAI service has not been successfully registered to MSB.






Could you please try this curl command and send me the output?






curl -X POST \-H "Content-Type: application/json" \-d '{"serviceName": "aai", 
"version": "v8", "url": "/aai/v8","protocol": "REST", "path": "/aai/v8", 
"nodes": [ {"ip": "{AAI_IP}","port": "8443"}]}' 
\"http://127.0.0.1:10081/api/microservices/v1/services";






Thanks,


Huabing






Original Mail





Sender:  ;
To:  ;
Date: 2017/11/29 14:36
Subject: [onap-discuss] [msb] Cannot access Services through MSB


___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

 

Hi,


 


I have followed instructions mentioned over page: 
https://wiki.onap.org/display/DW/MSB+Test+Environment+Setup 


I have registered AAI service in MSB as mentioned in the wiki above


{


  "serviceName": "aai",


  "version": "v8",


  "url": "/aai/v11",


  "protocol": "REST",


  "visualRange": "1",


  "path":"/aai/v11",


  "nodes": [


{


  "ip": "10.235.34.13",


  "port": "40325",


  "ttl": 0


}


  ]


}


 


If I access the URL directly from AAI it works


https://:/aai/v8/cloud-infrastructure/cloud-regions


Response: 200 OK


{


"cloud-region": [


{


"cloud-owner": "OnapPrivateCloud",


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


"cloud-type": "SharedNode",


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


"cloud-region-version": "v1",


"cloud-zone": "CloudZone",


"resource-version": "1511873022465",


"tenants": {


"tenant": [


{


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


"tenant-name": "onap-dev",


"resource-version": "1511873022533"


}


]


}


}


]


}


 


But If I access through MSB API, I get a ‘BAD Gateway’ error


 


GET 
/api/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/OnapPrivateCloud/RegionOne


Host: 10.235.34.13: 40325


Content-Type: application/json


X-FromAppId: AAI


Accept: application/json


 


Response: 502 Bad Gateway








502 Bad Gateway











502 Bad Gateway





error message:No route found for this request!





nginx








 


I also tried by registering a SO URL and have the same issue. I am able to 
access the SO URL directly but via MSB.


Note that my env did not register the services directly via ESR – this should 
not make a difference I think.


 


Can someone help?





Regards,


Avdhut



This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer


Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss


[onap-discuss] [msb] Cannot access Services through MSB

2017-11-28 Thread Avdhut Kholkar
Hi,

I have followed instructions mentioned over page: 
https://wiki.onap.org/display/DW/MSB+Test+Environment+Setup
I have registered AAI service in MSB as mentioned in the wiki above
{
  "serviceName": "aai",
  "version": "v8",
  "url": "/aai/v11",
  "protocol": "REST",
  "visualRange": "1",
  "path":"/aai/v11",
  "nodes": [
{
  "ip": "10.235.34.13",
  "port": "40325",
  "ttl": 0
}
  ]
}

If I access the URL directly from AAI it works
https://:/aai/v8/cloud-infrastructure/cloud-regions
Response: 200 OK
{
"cloud-region": [
{
"cloud-owner": "OnapPrivateCloud",
"cloud-region-id": "RegionOne",
"cloud-type": "SharedNode",
"owner-defined-type": "OwnerType",
"cloud-region-version": "v1",
"cloud-zone": "CloudZone",
"resource-version": "1511873022465",
"tenants": {
"tenant": [
{
"tenant-id": "{{tenant_id}}",
"tenant-name": "onap-dev",
"resource-version": "1511873022533"
}
]
}
}
]
}

But If I access through MSB API, I get a 'BAD Gateway' error

GET 
/api/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/OnapPrivateCloud/RegionOne
Host: 10.235.34.13: 40325
Content-Type: application/json
X-FromAppId: AAI
Accept: application/json

Response: 502 Bad Gateway


502 Bad Gateway



502 Bad Gateway

error message:No route found for this request!

nginx



I also tried by registering a SO URL and have the same issue. I am able to 
access the SO URL directly but via MSB.
Note that my env did not register the services directly via ESR - this should 
not make a difference I think.

Can someone help?
Regards,
Avdhut
This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement, you may review at 
https://www.amdocs.com/about/email-disclaimer 


Amdocs Development Centre India Private Limited having CIN: 
U72200PN2004PTC0188320 converted into Amdocs Development Centre India LLP (A 
limited liability partner­ship with LLP Identification Number: AAI-6901 
effective 28th Feb 2017)
___
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss