Do not source old/localrc twise in grenade
By sourcing localrc second time we try to enable ironic plugin one more time witch is not allowed by [0] This patch checks if ironic was enabled or not in base environment without sourcing localrc. [0] https://review.openstack.org/#/c/396794/ Change-Id: I432c243c66c0d11adcf4c6568968fbeaaf9acdcd
This commit is contained in:
parent
a28701fe6b
commit
c81b385843
@ -56,7 +56,8 @@ set -o xtrace
|
||||
|
||||
function is_nova_migration {
|
||||
# Deterine whether we're "upgrading" from another compute driver
|
||||
_ironic_old_driver=$(source $BASE_DEVSTACK_DIR/functions; source $BASE_DEVSTACK_DIR/localrc; echo $VIRT_DRIVER)
|
||||
# read localrc from the end, pick only first match
|
||||
_ironic_old_driver=$( tac $BASE_DEVSTACK_DIR/localrc |grep -m 1 VIRT_DRIVER | awk -F '=' '{print $2}')
|
||||
[ "$_ironic_old_driver" != "ironic" ]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user