Hi Keong

 

I modified UUI source for calling AAI logical-link creation based on API
docs.

But the same error has happened as attachment log file.

Do I need to check AAI log.

 

Best regards,

Tao

 

 

发件人: Keong Lim [mailto:[email protected]] 
发送时间: 2019年1月29日 11:55
收件人: shentao
抄送: [email protected]; 'onap-discuss'
主题: RE: Network Link Creation Error of Calling AAI

 

Hi Tao,

 

>From your log file, the error message is

 

2019-01-29 02:21:02.103 ERROR 473 --- [http-nio-8082-exec-9] o.o.u.s.s.sotn.
impl.SOTNServiceImpl      : Can not createLink[code=400, message=Bad
Request]

 

This lacks some detail because the “Bad Request” is usually described in
the response body with more specific information.

 

I see the request body includes this data, which I assume to be for a
“logical-link” object:

 

{

    "-xmlns": "http://org.onap.aai.inventory/v13";,

    "link-name": "couldlink",

    "link-type": "cross-link",

    "operational-status": "up",

    "relationship-list": {

        "relationship": [{

                "related-to": "p-interface",

                "related-link":
"/aai/v13/network/pnfs/pnf/13f51197-4bf7-33a7-8e3b-e8129547ee9e/p-interfaces
/p-interface/nodeId-13f51197-4bf7-33a7-8e3b-e8129547ee9e-ltpId-d4827cc3-63de
-31b7-a3d7-f01edd2a6944"

            }, {

                "related-to": "p-interface",

                "related-link":
"/aai/v13/network/pnfs/pnf/pns1/p-interfaces/p-interface/tp222"

            }, {

                "related-to": "ext-aai-network",

                "related-link":
"/aai/v13/network/ext-aai-networks/ext-aai-network/binbin1548728461500"

            }

        ]

    }

}

 

As a “logical-link”, it is missing the “in-maint” parameter which is
mandatory, e.g. "in-maint": "false".

 

So, please try adding this extra parameter to your request body and try it
again.

 

 

Keong

 

 

 

From: shentao [mailto:[email protected]] 
Sent: Tuesday, 29 January 2019 14:11
To: Keong Lim <[email protected]>
Cc: [email protected]; 'onap-discuss' <[email protected]>
Subject: Network Link Creation Error of Calling AAI

 

Hi Keong

 

We are trying to test CCVPN use case for Casablanca MR.

When UUI was calling AAI’s API to create a link with partner ONAP network,
an error has happened.

Attachment is UUI error log. Could you help us to have a look if UUI request
body is wrong.

 

Best regards,

Tao

 

 

---------------------------------------------

沈涛

中国移动通信有限公司研究院网络技术研究所

中国北京市西城区宣武门西大街32号(100053)

 

Shen Tao

China Mobile Research Institute

No.32 Xuanwumen west street,Xicheng District, Beijing 100053, China

 

Tel: +86 15801696688-34070

Mobile: +86 13521591389

Email:  [email protected]

---------------------------------------------

 


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

View/Reply Online (#15226): https://lists.onap.org/g/onap-discuss/message/15226
Mute This Topic: https://lists.onap.org/mt/29591960/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

2019-01-30 01:47:28.200  INFO 473 --- [http-nio-8082-exec-1] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createHostUrl is starting
2019-01-30 01:47:28.200  INFO 473 --- [http-nio-8082-exec-1] 
o.o.u.server.util.RestfulServices        : The request body content is: 
{"-xmlns":"http://org.onap.aai.inventory/14","aai-id":"cuolds1548812848236","esr-system-info":{"esr-system-info-id":"example-esr-system-info-id-val-0","service-url":"10.20.0.1","user-name":"demo","password":"demo123456!","system-type":"ONAP"}}
2019-01-30 01:47:28.342  INFO 473 --- [http-nio-8082-exec-1] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createHostUrl has finished
2019-01-30 01:47:28.372  INFO 473 --- [http-nio-8082-exec-4] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createTopoNetwork is starting
2019-01-30 01:47:28.372  INFO 473 --- [http-nio-8082-exec-4] 
o.o.u.server.util.RestfulServices        : The request body content is: 
{"-xmlns":"http://org.onap.aai.inventory/v14","network-id":"cuolds","provider-id":"","client-id":"","te-topo-id":"","relationship-list":{"relationship":[{"related-to":"ext-aai-network","related-link":"/aai/v14/network/ext-aai-networks/ext-aai-network/cuolds1548812848236"}]}}
2019-01-30 01:47:28.410  INFO 473 --- [http-nio-8082-exec-4] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createTopoNetwork has finished
2019-01-30 01:47:28.445  INFO 473 --- [http-nio-8082-exec-6] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createPnf is starting
2019-01-30 01:47:28.446  INFO 473 --- [http-nio-8082-exec-6] 
o.o.u.server.util.RestfulServices        : The request body content is: 
{"-xmlns":"http://org.onap.aai.inventory/v14","pnf-name":"pnfgong1","pnf-id":"pnfgong1","in-maint":"true","relationship-list":{"relationship":[{"related-to":"ext-aai-network","relationship-label":"org.onap.relationships.inventory.BelongsTo","related-link":"/aai/v14/network/ext-aai-networks/ext-aai-network/cuolds1548812848236","relationship-data":{"relationship-key":"ext-aai-network.aai-id","relationship-value":"cuolds1548812848236"}},{"related-to":"network-resource","relationship-label":"tosca.relationships.network.LinksTo","related-link":"/aai/v14/network/network-resources/network-resource/cuolds"}]}}
2019-01-30 01:47:28.500  INFO 473 --- [http-nio-8082-exec-6] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createPnf has finished
2019-01-30 01:47:28.537  INFO 473 --- [http-nio-8082-exec-7] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createTerminationPoint is 
starting
2019-01-30 01:47:28.538  INFO 473 --- [http-nio-8082-exec-7] 
o.o.u.server.util.RestfulServices        : The request body content is: 
{"-xmlns":"http://org.onap.aai.inventory/v14","interface-name":"tpgong1","speed-value":"1000000","in-maint":"true","network-ref":"","transparent":"true","operational-status":"up"}
2019-01-30 01:47:28.596  INFO 473 --- [http-nio-8082-exec-7] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createTerminationPoint has 
finished
2019-01-30 01:47:28.611  INFO 473 --- [http-nio-8082-exec-3] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createLink is starting
2019-01-30 01:47:28.612  INFO 473 --- [http-nio-8082-exec-3] 
o.o.u.server.util.RestfulServices        : The request body content is: 
{"link-name":"gongjielinkss","link-type":"cross-link","operational-status":"up","in-maint":"false","relationship-list":[{"related-to":"p-interface","related-link":"/aai/v14/network/pnfs/pnf/13f51197-4bf7-33a7-8e3b-e8129547ee9e/p-interfaces/p-interface/nodeId-13f51197-4bf7-33a7-8e3b-e8129547ee9e-ltpId-5d807c73-a6b9-3b3a-8e57-86ecaf11e0a5"},{"related-to":"p-interface","related-link":"/aai/v14/network/pnfs/pnf/pnfgong1/p-interfaces/p-interface/tpgong1"},{"related-to":"ext-aai-network","related-link":"/aai/v14/network/ext-aai-networks/ext-aai-network/cuolds1548812848236"}]}
2019-01-30 01:47:28.629  INFO 473 --- [http-nio-8082-exec-3] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : aai createLink has finished
2019-01-30 01:47:28.629 ERROR 473 --- [http-nio-8082-exec-3] 
o.o.u.s.s.sotn.impl.SOTNServiceImpl      : Can not createLink[code=400, 
message=Bad Request]

Reply via email to