The uuidgen utility is not installed by default, and the top-level code runs
before the deb/rpm files are processed. This fixes Ironic gates.
Change-Id: Ib593bbf40fb06b72be8d9ceaa7d791e3d44e4dd0
| ... | ... |
@@ -59,7 +59,6 @@ IRONIC_HW_EPHEMERAL_DISK=${IRONIC_HW_EPHEMERAL_DISK:-0}
|
| 59 | 59 |
IRONIC_IPMIINFO_FILE=${IRONIC_IPMIINFO_FILE:-$IRONIC_DATA_DIR/hardware_info}
|
| 60 | 60 |
|
| 61 | 61 |
# Set up defaults for functional / integration testing |
| 62 |
-IRONIC_NODE_UUID=${IRONIC_NODE_UUID:-`uuidgen`}
|
|
| 63 | 62 |
IRONIC_SCRIPTS_DIR=${IRONIC_SCRIPTS_DIR:-$TOP_DIR/tools/ironic/scripts}
|
| 64 | 63 |
IRONIC_TEMPLATES_DIR=${IRONIC_TEMPLATES_DIR:-$TOP_DIR/tools/ironic/templates}
|
| 65 | 64 |
IRONIC_BAREMETAL_BASIC_OPS=$(trueorfalse False IRONIC_BAREMETAL_BASIC_OPS) |
| ... | ... |
@@ -621,6 +620,7 @@ function enroll_nodes {
|
| 621 | 621 |
|
| 622 | 622 |
# First node created will be used for testing in ironic w/o glance |
| 623 | 623 |
# scenario, so we need to know its UUID. |
| 624 |
+ IRONIC_NODE_UUID=${IRONIC_NODE_UUID:-`uuidgen`}
|
|
| 624 | 625 |
local standalone_node_uuid=$([ $total_nodes -eq 0 ] && echo "--uuid $IRONIC_NODE_UUID") |
| 625 | 626 |
|
| 626 | 627 |
local node_id=$(ironic node-create $standalone_node_uuid\ |