Comment 1 for bug 1628572

Revision history for this message
halfss (ljvsss) wrote :

heat need 'python-croniter' work with cidr

(kolla-toolbox)[ansible@kolla-test ~]$ heat stack-create -f test.yaml test
WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead
ERROR: Property error: : resources.experiment_subnet.properties.cidr: : "192.168.1.0/24" does not validate net_cidr (constraint not found)

which test.yaml contain this:
'
  net_cidr:
    type: string
    description: CIDR of private network
    default: 192.168.1.0/24
  net_gateway:
    type: string
    description: CIDR of private network
    default: 192.168.1.1
  public_net:
    type: string
    description: Public network
    default: ext-net

  experiment_subnet:
    type: OS::Neutron::Subnet
    properties:
      name: {get_param: subnet_name}
      tenant_id: {get_resource: experiment_project}
      network_id: { get_resource: experiment_net }
      cidr: { get_param: net_cidr }
      gateway_ip: { get_param: net_gateway }
'