Is it possible to do comma_delimited_list inside a comma_delimited_list ?

asked 2019-11-22 07:45:50 -0500

Cheos96 gravatar image

Hi everybody,

I have a problem, inside my environment file, i have a structure (what you see below) to associate multiple port to specific servers: The ports are created in a nested stack and i want to iterate over a list of type ports to specify the type of each port.

list_port_type:

    - ["normal","direct","normal"]                                   #P1 & P2 & P3 for S1
    - ["direct","normal","normal"]                                   #P4 & P5 & P6 for S2

When i execute the template, i got an error :

2019-11-22 11:53:59Z [deploy_01._grp_server]: CREATE_IN_PROGRESS state changed

2019-11-22 11:54:03Z [deploy_01._grp_server]: CREATE_FAILED resources[0]:resources._grp_server.resources[1].resources._grp_port.Property error: resources._port.properties.binding: vnic_type: "[u'normal'" is not an allowed value [normal, direct, macvtap, direct-physical, baremetal]

2019-11-22 11:54:03Z [deploy_01]: CREATE_FAILED Resource CREATE failed: resources[0]: resources._grp_server.resources[1].resources._grp_port.Property error: resources._port.properties.binding: vnic_type: "[u'normal'" is not an allowed value [normal, direct, macvtap, direct-physical, baremetal]

Can someone help me with this.

Stack deploy_01 CREATE_FAILED

edit retag flag offensive close merge delete

Comments

1

You need to show how you're using this in the template. Best guess: use the json parameter type instead of comma_delimited_list

zaneb gravatar imagezaneb ( 2019-11-25 10:23:32 -0500 )edit

Yes i changed my comma_delimited_list to json and a few changes and my template worked. Thanks :D

Cheos96 gravatar imageCheos96 ( 2019-11-25 17:07:40 -0500 )edit