From 75fc071b54a07fbdbaabaebd359299170bd7fda2 Mon Sep 17 00:00:00 2001 From: vsaienko Date: Fri, 11 Dec 2015 13:14:00 +0200 Subject: Add configure_provision_network function This change allows to configure ironic provision network by setting IRONIC_PROVISION_NETWORK_NAME variable. In this case additional interface $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID will be configured with IRONIC_PROVISION_SUBNET_GATEWAY ip address. Additional configuration parameters are: IRONIC_PROVISION_PROVIDER_NETWORK_TYPE IRONIC_PROVISION_SEGMENTATION_ID IRONIC_PROVISION_ALLOCATION_POOL IRONIC_PROVISION_SUBNET_GATEWAY IRONIC_PROVISION_SUBNET_PREFIX Change-Id: I619f2fb92aafe7348b0a47eaaaad1790df5ae5c7 Partial-bug: #1526403 --- devstack/plugin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'devstack/plugin.sh') diff --git a/devstack/plugin.sh b/devstack/plugin.sh index f10358ba5..bd635c487 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -37,6 +37,15 @@ if is_service_enabled ir-api ir-cond; then # Initialize ironic init_ironic + if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then + echo_summary "Creating bridge and VMs" + create_bridge_and_vms + fi + if [[ -n "${IRONIC_PROVISION_NETWORK_NAME}" ]]; then + echo_summary "Configuring Ironic provisioning network" + configure_ironic_provision_network + fi + # Start the ironic API and ironic taskmgr components echo_summary "Starting Ironic" start_ironic @@ -51,6 +60,7 @@ if is_service_enabled ir-api ir-cond; then # unstack - Called by unstack.sh before other services are shut down. stop_ironic + cleanup_ironic_provision_network cleanup_baremetal_basic_ops fi -- cgit v1.2.1