Upload VNF package fails when softwareImage properties in VNFD template has fraction values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
High
|
Keiko Kuriu |
Bug Description
There are two issues while Uploading of vnf package using [1],[2]
1. Uploading of VNF Package fails if 'sw_image_data' properties 'min_size', 'min_ram' and 'size' has fraction values.
Consider following snippet of VNFD for sw_image_data, 'min_disk' has value in fraction.
sw_image_data:
name: VrtualStorage
version: '0.4.0'
checksum:
algorithm: sha-256
hash: b9c3036539fd7a5
container_format: bare
disk_format: qcow2
min_disk: 1.5 GB
min_ram: 8192 MB
size: 2 GB
Please checkout link [3] for error log.
2. Units not stored in DB for 'min_size', 'min_ram' and 'size'
Consider following snippet of VNFD for sw_image_data, for 'min_size', 'min_ram' and 'size'
sw_image_data:
name: VrtualStorage
version: '0.4.0'
checksum:
algorithm: sha-256
hash: b9c3036539fd7a5
container_format: bare
disk_format: qcow2
min_disk: 2000 MB
min_ram: 8192 MB
size: 2000 MB
'min_size', 'min_ram' and 'size' data saved in `tacker` DB table `vnf_software_
i.e. why it is hard to find whether the stored data is in TB/GB/MB etc.
Please checkout the link [4] to see select query result of 'vnf_software_
Proposed solutions -
1. Convert min_ram/
2. To store the fraction value we can change the DB datatype of `min_disk`, `min_ram` and `size` to `FLOAT`. But ETSI specs [5] 9.5.3.2 Type: VnfPackageSoftw
[1]/vnfpkgm/
[2]/vnfpkgm/
[3]http://
[4]http://
[5]https:/
sample command:
openstack vnf package upload --path samples/
Changed in tacker: | |
assignee: | nobody → Shubham Potale (shubhamp) |
description: | updated |
description: | updated |
description: | updated |
summary: |
- The unit of min_ram, min_disk and size of vnf_software_images are not - stored in tacker DB + Upload VNF package fails when softwareImage properties in VNFD template + has fraction values |
description: | updated |
description: | updated |
Changed in tacker: | |
assignee: | Shubham Potale (shubhamp) → nobody |
Changed in tacker: | |
assignee: | Prashant Bhole (pbhole) → Keiko Kuriu (keiko-k) |
Changed in tacker: | |
assignee: | Keiko Kuriu (keiko-k) → Cong Phuoc Hoang (hoangphuoc) |
Changed in tacker: | |
assignee: | Cong Phuoc Hoang (hoangphuoc) → Keiko Kuriu (keiko-k) |
Changed in tacker: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. opendev. org/731636
Review: https:/