openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

Observing internal server error 500 for API:/v1/provide-list-of-parallel-links #871

Closed Ziabatcha closed 7 months ago

Ziabatcha commented 8 months ago

Steps followed:

  1. Created a LINK-1 with link-id=533616788 using PUT request
  2. Created a LINK-2 with link-id=533616790 using PUT request
  3. Try to execute the POST API:/v1/provide-list-of-parallel-links with link-id=533616788 as body. Observing Internal server error 500

tag:testv1.1.3 Logs:

POST /v1/provide-list-of-parallel-links 500 39.401 ms - 55

 callback : POST http://x.x.x.x:xxxx/v1/record-service-request header :{"user":"User Name","originator":"MicroWaveDeviceInventory","x-correlator":"f8Dce023-299E-eeA2-b1AE-33BdCBeeDe0A","trace-indicator":1,"customer-journey":"unknown","operation-key":"Operation key not yet provided.","Content-Type":"application/json"}body :{"x-correlator":"550e8400-e29b-11d4-a716-446655440000","trace-indicator":"1.3.1","user":"User Name","originator":"Resolver","application-name":"MicroWaveDeviceInventory","release-number":"1.1.0","operation-name":"/v1/provide-list-of-parallel-links","response-code":500}response code:204
nardecchia-siae commented 8 months ago

As per specification and issue #812 that fixes #747 the link should contain informations about endpoints:

image

For this reason the API expects to retrieve informations about link endpoints that are missing in the links used per test and returns 500 internal server error

Ziabatcha commented 7 months ago

Still observing this issue in text_v1.1.4: Steps followed:

  1. Created a link1 using min-for- rest body and link-id=533616788 creation is successful, retrieve the verified
  2. Created a link2 using min-for- rest body and link-id=533616790 creation is successful, retrieve the verified
  3. Try to execute the POST API:/v1/provide-list-of-parallel-links with link-id=533616788 as body. Observing Internal server error 500
Ziabatcha commented 7 months ago

Tested and it is working in v1.1.5 Logs:

curl -X POST "/v1/provide-list-of-parallel-links" -H "accept: application/json" -H "user: User Name" -H "originator: Resolver" -H "x-correlator: 550e8400-e29b-11d4-a716-446655440000" -H "trace-indicator: 1.3.1" -H "customer-journey: Unknown value" -H "operation-key: ---------------" -H "Content-Type: application/json" -d "{\"link-id\":\"533616788\"}"
{
  "parallel-link-list": [
    "533616788",
    "533616790"
  ]
}