Closed abhishek-kumar0409 closed 3 weeks ago
@tliron - FYI - This issue was reproduced only on TOSCA-1.2 packages. Let me know your thoughts.
What do you mean? Do you mean that this issue appears in TOSCA 1.2 but not in TOSCA 1.3?
Hey Tal - I meant - the issue was reproduced in VNF Packages conforming to ETSI SOL-001 v2.5.1 (i.e. TOSCA-1.2). At the moment, I am not sure if this issue is reproducible in ETSI SOL-001 v3.3.1 (TOSCA 1.3).
Nevertheless, this enhancement will help us to establish to have some parity with other opensource tosca parsers as well as we don't encounter the errors in those toolsets. We would like to see this feature in both TOSCA-1.2 and 1.3 grammars.
Hi @tliron - Would you be able to add a fix for this issue?
@abhishek-kumar0409 I try to follow the spec as literally as possible. Since this feature did not exist in TOSCA 1.2, it shouldn't normally be supported. However, I can add a quirk to specifically enable it. Would that suit you?
Actually, I am seeing that it is specified in TOSCA 1.2. Let me try to figure out what is going on.
@tliron - Appreciate your help. Is the fix available in the v0.22.5 version of the binary? Or, do you plan to release a patch version soon ?
I would appreciate if you could build and test from main branch before I release a version.
Thanks Tal. Can you suggest how to build the binary in mac ?
Ignore my above request. I was getting error because my go version was 1.21.
I compiled the package using the new binary and I'm getting the same error.
PROBLEMS (1)
@410,9 data_types["mycompany.datatypes.nfv.VnfInfoModifiableAttributesExtensions"].properties["password"].metadata: unsupported keyname
Here is the example I just tried, and it works for me. Are you sure you are using the puccini-tosca
executable you built and not the one you've downloaded?
tosca_definitions_version: tosca_simple_yaml_1_2
data_types:
Planet:
properties:
radius:
type: float
metadata:
galaxy: Milky Way
node_types:
Server:
derived_from: tosca:Compute
metadata:
galactic.planet: Jupiter
version: 1.0.0
properties:
planet:
type: Planet
required: false
metadata:
galaxy: Andromeda
My bad. I messed up with the binary. The fix is working fine now. Thanks a zillion for your help.
Issue: Puccni is rejecting the descriptors having metadata attribute within the property definitions.
Feature request: Support for the metadata in the property definitions
Steps to reproduce issue:
Command Executed: puccini-tosca compile my_sample_nf_vnfd.yaml -x etsinfv
VNFD-Snippet
Per TOSCA-1.3 spec, the metadata seems to be an optional parameter.
Currently, Puccini only support few of the properties. Can the support be extended for the metadata attribute?
tosca/grammars/cloudify_v1_3/property-definition.go