f5a50a1d7d
Configuration based off upstream documentation here: http://docs.openstack.org/developer/ironic/deploy/install-guide.html A few notes: -ironic-api is not configured to use mod_wsgi -several places it's noted that discoverd is going away and needs to be replaced with ironic-inspector - (sqlite connection should be changed too) -currently enabling ironic reconfigures nova compute (driver and scheduler) as well as changes neutron network settings -a nice enhancement would be to configure the web console Required post-deployment configuration: Create the flat network to launch the instances: neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \ --provider:network_type flat --provider:physical_network physnet1 neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \ --ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \ start=$START_IP,end=$END_IP --enable-dhcp And then the above ID is used to set cleaning_network_uuid in the neutron section of ironic.conf. Change-Id: I572e7ff1f23c4e57a2c50817cafe9269fd9950dd Implements: blueprint ironic-container
56 lines
1.4 KiB
Django/Jinja
56 lines
1.4 KiB
Django/Jinja
# ml2_conf.ini
|
|
[ml2]
|
|
{% if enable_ironic | bool %}
|
|
type_drivers = flat
|
|
tenant_network_types = flat
|
|
mechanism_drivers = openvswitch
|
|
{% else %}
|
|
# Changing type_drivers after bootstrap can lead to database inconsistencies
|
|
type_drivers = flat,vlan,vxlan
|
|
tenant_network_types = vxlan
|
|
{% endif %}
|
|
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
mechanism_drivers = openvswitch,l2population
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
mechanism_drivers = linuxbridge,l2population
|
|
{% endif %}
|
|
|
|
[ml2_type_vlan]
|
|
{% if enable_ironic | bool %}
|
|
network_vlan_ranges = physnet1
|
|
{% else %}
|
|
network_vlan_ranges =
|
|
{% endif %}
|
|
|
|
[ml2_type_flat]
|
|
flat_networks = physnet1
|
|
|
|
[ml2_type_vxlan]
|
|
vni_ranges = 1:1000
|
|
vxlan_group = 239.1.1.1
|
|
|
|
[securitygroup]
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
|
|
{% endif %}
|
|
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
[agent]
|
|
tunnel_types = vxlan
|
|
l2_population = true
|
|
arp_responder = true
|
|
|
|
[ovs]
|
|
bridge_mappings = physnet1:{{ neutron_bridge_name }}
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
[linux_bridge]
|
|
physical_interface_mappings = physnet1:{{ neutron_external_interface }}
|
|
|
|
[vxlan]
|
|
l2_population = true
|
|
{% endif %}
|
|
local_ip = {{ hostvars[inventory_hostname]['ansible_' + tunnel_interface]['ipv4']['address'] }}
|