ba15202d99
After Ironic is moved to devstack plugin the tempest is always executed before ironic devstack plugin. Unfortunatly there is no quick way to change order. This change introduce new function ironic_configure_tempest that is called from Ironic's devstack plugin. It updated flavor_ref and flavor_ref_alt compute tempest options. Change-Id: I85a77dd2193bac0ea4bd4fc1985c82d9f598b06b
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# plugin.sh - devstack plugin for ironic
|
|
|
|
echo_summary "ironic's plugin.sh was called..."
|
|
source $DEST/ironic/devstack/lib/ironic
|
|
|
|
if is_service_enabled ir-api ir-cond; then
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Installing Ironic"
|
|
install_ironic
|
|
install_ironicclient
|
|
cleanup_ironic
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring Ironic"
|
|
configure_ironic
|
|
|
|
if is_service_enabled key; then
|
|
create_ironic_accounts
|
|
fi
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
# Initialize ironic
|
|
init_ironic
|
|
|
|
# Start the ironic API and ironic taskmgr components
|
|
echo_summary "Starting Ironic"
|
|
start_ironic
|
|
prepare_baremetal_basic_ops
|
|
if is_service_enabled tempest; then
|
|
ironic_configure_tempest
|
|
fi
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
stop_ironic
|
|
cleanup_baremetal_basic_ops
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
cleanup_ironic
|
|
fi
|
|
fi
|