Unable to retrieve parameters passed as comma_delimited_list

asked 2016-06-22 04:55:08 -0600

abdul.chetpet gravatar image

Following is the parameter block :

  parameters :   
    type: comma_delimited_list
    description: List of floating IPs to be assigned to Instances

Thereafter in the resources block, am accessing it :

      type: OS::Neutron::FloatingIP
        floating_network: { get_param: public_net }
        floating_ip_address:  { "Fn::Select" : [ { get_param: public_ip_index}, { get_param: [public_ip] } ] }
        port_id: { get_resource: inst_port }

And I supply the parameters in a separate environment file :

   instance_ip_list: ","

However, on instantiating the stack, the instance_ip_list is empty leading to failure in stack creation. But If I add the following defaults in the template, then it works fine.

default: ["",""]

Please can someone help in clarifying why this difference in behaviour.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-23 07:02:49 -0600

teju gravatar image

You need to pass a list (Python data type) of IP addresses like ["",""].

Instead, if you pass "," , the code treats this as an incompatible data type since this is a string and the code is expecting a list

edit flag offensive delete link more


Have tried that as well

  instance_ip_list: ["",""]

And error is Resource CREATE failed: resources.dsc-instance: resources[1]: Property error: resources.inst_floating_ip.properties.floating_ip_address: Error validating value '': Invalid IP addres

abdul.chetpet gravatar imageabdul.chetpet ( 2016-06-23 07:31:55 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-22 04:55:08 -0600

Seen: 87 times

Last updated: Jun 23 '16