VNF package once deleted cannot be uploaded again
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Medium
|
Koichi Edagawa |
Bug Description
When we try to upload a VNF package which has been uploaded and deleted once before, "Duplicate entry" error occurs and it fails to be onboarded.
Detailed procedure for the issue is the following:
1) Create a new package ID and upload a VNF package
2) Delete the VNF package
3) Create a new package ID and upload the same VNF package used at 1) and 2
During uploading the VNF package next time, the following message outputs in tacker-
-------
2021-03-22 18:35:53.717 ERROR oslo_messaging.
pymysql.
-------
<Operation log>
$ openstack vnf package create
+------
| Field | Value |
+------
| ID | a8e42c3e-
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/
| | } |
| | } |
| Onboarding State | CREATED |
| Operational State | DISABLED |
| Usage State | NOT_IN_USE |
| User Defined Data | {} |
+------
$ openstack vnf package upload --path samples/
Upload request for VNF package a8e42c3e-
$ openstack vnf package show a8e42c3e-
+------
| Field | Value |
+------
| Additional Artifacts | |
| Checksum | { |
| | "algorithm": "sha512", |
| | "hash": |
| | "e727c1eff69fa4
| | } |
| ID | a8e42c3e-
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/
| | } |
| | } |
| Onboarding State | ONBOARDED |
| Operational State | ENABLED |
| Software Images | [ |
| | { |
| | "provider": "", |
| | "version": "0.4.0", |
| | "createdAt": "2021-03-22 09:31:48+00:00", |
| | "size": 1000000000, |
| | "diskFormat": "qcow2", |
| | "minRam": 256000000, |
| | "containerFormat": "bare", |
| | "name": "VirtualStorage", |
| | "imagePath": "", |
| | "minDisk": 2000000000, |
| | "id": "VirtualStorage", |
| | "checksum": { |
| | "hash": "6513f21e44aa3d
| | d39390617cd5a35
| | "algorithm": "sha-512" |
| | }, |
| | "userMetadata": {} |
| | } |
| | ] |
| Usage State | NOT_IN_USE |
| User Defined Data | {} |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | b1bb0ce7-
| VNFD Version | 1.0 |
+------
$ openstack vnf package update --operational-state 'DISABLED' a8e42c3e-
+------
| Field | Value |
+------
| Operational State | DISABLED |
+------
$ openstack vnf package delete a8e42c3e-
All specified vnf-package(s) deleted successfully
$ openstack vnf package show a8e42c3e-
Can not find requested vnf package: a8e42c3e-
$ openstack vnf package create
+------
| Field | Value |
+------
| ID | 3df4e144-
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/
| | } |
| | } |
| Onboarding State | CREATED |
| Operational State | DISABLED |
| Usage State | NOT_IN_USE |
| User Defined Data | {} |
+------
$ openstack vnf package upload --path samples/
Upload request for VNF package 3df4e144-
$ openstack vnf package show 3df4e144-
+------
| Field | Value |
+------
| ID | 3df4e144-
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/
| | } |
| | } |
| Onboarding State | CREATED |
| Operational State | DISABLED |
| Usage State | NOT_IN_USE |
| User Defined Data | {} |
+------
* Operational State doesn't change from "DISABLED" to "ENABLED".
description: | updated |
Changed in tacker: | |
importance: | Undecided → Medium |
Changed in tacker: | |
assignee: | nobody → Sheel Rana (ranasheel2000) |
Changed in tacker: | |
status: | New → In Progress |
Changed in tacker: | |
assignee: | nobody → Koichi Edagawa (k-edagawa) |
Changed in tacker: | |
status: | Confirmed → In Progress |
Seems onboarding is failed because state is not changed CREATED->ONBOARDED.
Onboarding state in successful operation:
| Onboarding State | ONBOARDED |
Onboarding state in failure case :
| Onboarding State | CREATED | (same state which is set during vnf package create operation)