Ironic: Create nodes with names
This patch is setting a name for each node created in Ironic, when testing stuff it's easier to refer to a nome by its name then uuid. The format of the name is: node-0, node-1, ... Change-Id: I60fcddbcb36d1b1da8b3846b6edf14c59401f102
This commit is contained in:
parent
b1ea5eacbc
commit
51bddb8c64
@ -618,6 +618,7 @@ function enroll_nodes {
|
|||||||
local node_id=$(ironic node-create $standalone_node_uuid\
|
local node_id=$(ironic node-create $standalone_node_uuid\
|
||||||
--chassis_uuid $chassis_id \
|
--chassis_uuid $chassis_id \
|
||||||
--driver $IRONIC_DEPLOY_DRIVER \
|
--driver $IRONIC_DEPLOY_DRIVER \
|
||||||
|
--name node-$total_nodes \
|
||||||
-p cpus=$ironic_node_cpu\
|
-p cpus=$ironic_node_cpu\
|
||||||
-p memory_mb=$ironic_node_ram\
|
-p memory_mb=$ironic_node_ram\
|
||||||
-p local_gb=$ironic_node_disk\
|
-p local_gb=$ironic_node_disk\
|
||||||
|
Loading…
Reference in New Issue
Block a user