Detail message of ProblemDetails does not be shown properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Low
|
Unassigned |
Bug Description
In the current Tacker implementation, message of `ProblemDetails
When users queries a non existent VnfLcmOpOccV2, Tacker-server replies the below message, which has a incorrect strings:
```
~$ curl -v "http://
* Trying 127.0.0.1:9890...
* Connected to 127.0.0.1 (127.0.0.1) port 9890 (#0)
> GET /vnflcm/
> Host: 127.0.0.1:9890
> User-Agent: curl/7.81.0
> Accept: */*
> X-Auth-Token: ******
> Version: 2.0.0
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 96
< Version: 2.0.0
< Accept-Ranges: none
< Content-Type: application/
< X-Openstack-
< Date: Mon, 20 Feb 2023 14:01:47 GMT
<
* Connection #0 to host 127.0.0.1 left intact
{"status": 404, "detail": "VnfLcmOpOcc <built-in function id> not found.", "title": "Not Found"}
```
`<built-in function id>` is expected to be `00000000-
The above bug has been occurred due to passing wrong parameter to `VnfLcmOpOccNot
```
def get_lcmocc(context, lcmocc_id):
lcmocc = objects.
if lcmocc is None:
raise sol_ex.
return lcmocc
```
Changed in tacker: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/874529
Review: https:/