Ask Your Question
0

Heat template for flat network [closed]

asked 2015-09-24 01:36:07 -0600

updated 2015-09-28 01:30:24 -0600

trying to create a network with heat_template_version: 2013-05-23 but it shows below 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''}}

resources:
  network_01:
    type: OS::Neutron::Net
    properties:
       admin_state_up: true
       name: External2
       shared: true
       #admin tenant id
       tenant_id: 6ec23610836048ddb8f9294dbf89a41e

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by IRSHAD
close date 2015-11-19 01:08:11.483866

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-19 01:07:33 -0600

I have done this using the below script. May be helpful for others-

heat_template_version: 2014-10-16
description: Template to create a tenant network along with router config

parameters:
    ImageId:
        type: string
        label: cirros-0.3.2-x86_64
        description: cirros-0.3.2-x86_64

resources:
    demo-net:
        type: OS::Neutron::Net
        properties:
            name: demo-net

    demo-subnet:
        type: OS::Neutron::Subnet
        properties:
            name: demo-subnet
            network_id: { get_resource: demo-net }
            cidr: 10.10.0.0/24
            gateway_ip: 10.10.0.1

    my_instance:
        type: OS::Nova::Server
        properties:
            name: "demo_test_nw_01"
            image: { get_param: ImageId }
            flavor: "m1.tiny"
            networks:
            - network : { get_resource: demo-net }
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-24 01:36:07 -0600

Seen: 302 times

Last updated: Nov 19 '15