Revert "Wait for compute service to check in"
This reverts commit dcdf8c8e60
.
Change-Id: Ib14016a3bc6f2714758ad0291396233218c593c6
This commit is contained in:
14
functions
14
functions
@@ -407,20 +407,6 @@ EOF
|
|||||||
return $rval
|
return $rval
|
||||||
}
|
}
|
||||||
|
|
||||||
function wait_for_compute {
|
|
||||||
local timeout=$1
|
|
||||||
time_start "wait_for_service"
|
|
||||||
timeout $timeout bash -x <<EOF || rval=$?
|
|
||||||
ID=""
|
|
||||||
while [[ "\$ID" == "" ]]; do
|
|
||||||
sleep 1
|
|
||||||
ID=\$(openstack --os-cloud devstack-admin --os-region "$REGION_NAME" compute service list --host `hostname` --service nova-compute -c ID -f value)
|
|
||||||
done
|
|
||||||
EOF
|
|
||||||
time_stop "wait_for_service"
|
|
||||||
return $rval
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# ping check
|
# ping check
|
||||||
# Uses globals ``ENABLED_SERVICES``, ``TOP_DIR``, ``MULTI_HOST``, ``PRIVATE_NETWORK``
|
# Uses globals ``ENABLED_SERVICES``, ``TOP_DIR``, ``MULTI_HOST``, ``PRIVATE_NETWORK``
|
||||||
|
7
lib/nova
7
lib/nova
@@ -795,13 +795,6 @@ function start_nova_compute {
|
|||||||
fi
|
fi
|
||||||
run_process n-cpu "$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf"
|
run_process n-cpu "$NOVA_BIN_DIR/nova-compute --config-file $compute_cell_conf"
|
||||||
fi
|
fi
|
||||||
# NOTE(sdague): with cells v2 all the compute services must be up
|
|
||||||
# and checked into the database before discover_hosts is run. This
|
|
||||||
# happens in all in one installs by accident, because > 30 seconds
|
|
||||||
# happen between here and the script ending. However, in multinode
|
|
||||||
# tests this can very often not be the case. So ensure that the
|
|
||||||
# compute is up before we move on.
|
|
||||||
wait_for_compute 60
|
|
||||||
|
|
||||||
export PATH=$old_path
|
export PATH=$old_path
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user