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:
Lucas Alvares Gomes 2015-08-14 17:21:47 +01:00
parent b1ea5eacbc
commit 51bddb8c64

View File

@ -618,6 +618,7 @@ function enroll_nodes {
local node_id=$(ironic node-create $standalone_node_uuid\
--chassis_uuid $chassis_id \
--driver $IRONIC_DEPLOY_DRIVER \
--name node-$total_nodes \
-p cpus=$ironic_node_cpu\
-p memory_mb=$ironic_node_ram\
-p local_gb=$ironic_node_disk\