Number format value cannot be passed to Additional Params

Bug #1978563 reported by Pooja Singla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
Pooja Singla

Bug Description

Getting error when number format value is passed in Additional Params section in Instantiation JSON file.

additionalParams in json:
************************
  "additionalParams": {
    "foo_number": 12,
    "lcm-operation-user-data": "./UserData/lcm_user_data.py",
    "lcm-operation-user-data-class": "SampleUserData"
  }
************************

Error:
************************
stack@instance-vnfm-ubuntu20-20210907:~/temporary/Pooja/Issue92$ openstack vnflcm instantiate b1b5bac2-d925-4b1d-bdc5-46e2ab5aa3e1 inst_1.json
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Invalid input for field/attribute foo_number. Value: 12. 12 is not valid under any of the given schemas
************************

Revision history for this message
Pooja Singla (psingla) wrote :

I am assigning this bug to myself to work on it.

Changed in tacker:
assignee: nobody → Pooja Singla (psingla)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tacker/+/845734

Changed in tacker:
status: New → In Progress
Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.opendev.org/c/openstack/tacker/+/845734
Committed: https://opendev.org/openstack/tacker/commit/d8f16acd8a95a1554601c639f954027e4c83854f
Submitter: "Zuul (22348)"
Branch: master

commit d8f16acd8a95a1554601c639f954027e4c83854f
Author: Pooja Singla <email address hidden>
Date: Wed Jun 15 08:36:12 2022 +0000

    Implemented number format in additional params

    Number format value was giving error when passed in
    additional param section of instantiation json file.

    Added number type in keyvalue_pairs in parameter_types.py.

    Closes-Bug: #1978563
    Change-Id: I4d87615ff106abf0e59ef45f0ff322d75fea0038

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 8.0.0.0rc1

This issue was fixed in the openstack/tacker 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.