Icehouse Heat, Unable to create the network. No tenant network is available for allocation

asked 2015-09-24 06:18:02 -0600

I have configured 2-Node Openstack(Icehouse) setup and heat is also configured. when creating instance using HOT template it is successfully launched. But when I'm trying to create the flat network using my yml file it shows below error-

> "Unable to create the network. No tenant network is available for allocation"

my yml file is:

heat_template_version: 2013-05-23
description: Simple template to deploy a flat network
resources:
  provider_01:
     type: OS::Neutron::ProviderNet
     properties:
       physical_network: physnet2
       shared: true
       network_type: flat
  network_01:
    type: OS::Neutron::Net
    properties:
       admin_state_up: true
       name: External2
       shared: true
       #tenant_id: 6ec23610836048ddb8f9294dbf89a41e
  subnet_01:
    type: OS::Neutron::Subnet
    properties:
       name: Subnet2
       network_id: { get_resource: network_01 }
       cidr: 192.168.56.0/24
       gateway_ip: 192.168.56.1
       allocation_pools: [{"start": 192.168.56.50, "end": 192.168.56.70}]
       enable_dhcp: true
  port_01:
    type: OS::Neutron::Port
    properties:
       admin_state_up: true
       network_id: { get_resource: network_01 }
       #security_groups: "default"
edit retag flag offensive close merge delete