Ask Your Question

Revision history [back]

I have the similar kind of issue. what is going wrong in the below yml file for creating the flat network-

It gives error- Resource Create Failed: Neutronclientexception: 503-{U'Neutronerror': {U'Message': U'Unable To Create The Network. No Tenant Network Is Available For Allocation.', U'Type': U'Nonetworkavailable', U'Detail': U''}}

heat_template_version: 2013-05-23
description: Simple template to create 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
       #admin tenant id
       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"