Merge "Devstack: add check of chassis creating"

This commit is contained in:
Jenkins 2016-03-23 00:03:43 +00:00 committed by Gerrit Code Review
commit a188a31365

View File

@ -670,6 +670,7 @@ function _clean_ncpu_failure {
function enroll_nodes { function enroll_nodes {
local chassis_id local chassis_id
chassis_id=$(ironic chassis-create -d "ironic test chassis" | grep " uuid " | get_field 2) chassis_id=$(ironic chassis-create -d "ironic test chassis" | grep " uuid " | get_field 2)
die_if_not_set $LINENO chassis_id "Failed to create chassis"
if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
local ironic_node_cpu=$IRONIC_VM_SPECS_CPU local ironic_node_cpu=$IRONIC_VM_SPECS_CPU