Vnf package upload fails with incorrect http status code
Bug #1861947 reported by
Tushar Patil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Confirmed
|
Low
|
Unassigned |
Bug Description
If I delete an on-boarded vnf package and try to upload a vnf package using the same vnf package uuid, it fails with 409 error.
Actual Result: 409 error
Expected Result: 404 error
description: | updated |
description: | updated |
To post a comment you must log in.
Hi, I checked whether this bug occurred, but it seemed to have been already fixed.
Is it right?
If so, let's close this bug.
$ openstack vnf package list ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- +------ ------- +------ ------- ------+ ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- +------ ------- +------ ------- ------+ d180-4b18- 861e-49220f6234 ed | Sample VNF | ONBOARDED | NOT_IN_USE | DISABLED | ------- ------- ------- ------- ----+-- ------- ------- --+---- ------- ------- +------ ------- +------ ------- ------+ d180-4b18- 861e-49220f6234 ed
+------
| Id | Vnf Product Name | Onboarding State | Usage State | Operational State |
+------
| 0e02ff7e-
+------
$ openstack vnf package delete 0e02ff7e-
All specified vnf-package(s) deleted successfully
$ openstack vnf package list
$ openstack vnf package upload --path ./sample_ vnf_pkg. zip 0e02ff7e- d180-4b18- 861e-49220f6234 ed --debug 127.0.0. 1:9890/ vnfpkgm/ v1/vnf_ packages/ 0e02ff7e- d180-4b18- 861e-49220f6234 ed/package_ content -H "Accept: application/zip" -H "Content-Type: application/zip" -H "User-Agent: python- tackerclient" -H "X-Auth-Token: {SHA256} 3ffaa6c2af99747 f35fbfdf62d3101 0b01eff5ae057a0 22b5ced9c004d66 ab14" -d '<_io.BufferedR eader name='. /sample_ vnf_pkg. zip'>' 127.0.0. 1:9890 "PUT /vnfpkgm/ v1/vnf_ packages/ 0e02ff7e- d180-4b18- 861e-49220f6234 ed/package_ content HTTP/1.1" 404 118 Request- Id: req-eb233b94- 5343-4cc9- a4a8-0a3bce5afa 75 d180-4b18- 861e-49220f6234 ed"}} 127.0.0. 1:9890/ vnfpkgm/ v1/vnf_ packages/ 0e02ff7e- d180-4b18- 861e-49220f6234 ed/package_ content used request id req-eb233b94- 5343-4cc9- a4a8-0a3bce5afa 75 d180-4b18- 861e-49220f6234 ed"}}
~~~~~~~~~~~~
REQ: curl -g -i -X PUT http://
Starting new HTTP connection (1): 127.0.0.1:9890
http://
RESP: [404] Connection: keep-alive Content-Length: 118 Content-Type: application/json; charset=UTF-8 Date: Thu, 14 May 2020 05:48:49 GMT X-Openstack-
RESP BODY: {"itemNotFound": {"code": 404, "message": "Can not find requested vnf package: 0e02ff7e-
PUT call to nfv-orchestration for http://
Error message: {"itemNotFound": {"code": 404, "message": "Can not find requested vnf package: 0e02ff7e-
~~~~~~~~~~~~