tacker/releasenotes/notes/store-software-image-prop-in-bytes-d517fee13c70d7a0.yaml
Shubham 01cf3efd4c Convert software image properties to byte
Convert softwareImage properties such as 'min_disk', 'min_ram' and
'size' to bytes before storing it to 'vnf_software_images' db table.
Since the size in bytes will be a large number, the type of
'min_disk' and 'min_ram' columns of 'vnf_software_images' tables has
been changed to BigInt.

Closes-Bug: #1879436
Co-Authored-By: Prashant Bhole <prash.bhole@gmail.com>
Change-Id: I3bf839783863f84f507d9b15c6eab6250d9f5d30
2020-11-06 04:32:06 +00:00

16 lines
776 B
YAML

---
fixes:
- |
Fixes `bug 1879436`_. Users who build VNF packages can specify software
image properties like `min_disk`, `min_ram` and `size` in different units
as mentioned in section 3.2.6.4 of `TOSCA Simple Profile in YAML Version 1.2`_ template.
These property values are converted from various units to ``byte`` unit and
returned in `GET /vnfpkgm/v1/vnf_packages/{vnf_package_id}` API response.
.. note:: For old vnf packages, the software image properties are not converted
into ``byte`` unit.
.. _TOSCA Simple Profile in YAML Version 1.2: http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csprd01/TOSCA-Simple-Profile-YAML-v1.2-csprd01.html
.. _bug 1879436: https://bugs.launchpad.net/tacker/+bug/1879436