用于扁平网络的Openstack Heat模板

时间:2015-09-28 09:12:31

标签: openstack openstack-neutron openstack-heat

我已经配置了2节点Openstack(Icehouse)设置,并且还配置了热量。使用HOT模板创建实例时,它已成功启动。但是,当我尝试使用我的yml文件创建扁平网络时,它显示如下错误 -

“无法创建网络。没有租户网络可供分配”

heat_template_version: 2013-05-23
description: Simple template to deploy a single compute instance

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"

1 个答案:

答案 0 :(得分:0)

<VirtualHost wessex.ttltesting.co.uk:80>
DocumentRoot "/home/wessexbiomass.co.uk/www/htdocs"
ServerName wessex.ttltesting.co.uk
<Directory "/home/wessexbiomass.co.uk/www/htdocs">
allow from all
Options None
Require all granted
</Directory>
</VirtualHost>