From 51bddb8c64f5cb4086d672574202262ad9c38332 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Fri, 14 Aug 2015 17:21:47 +0100 Subject: [PATCH] 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 --- lib/ironic | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ironic b/lib/ironic index 1323446c1f..b3ad586923 100644 --- a/lib/ironic +++ b/lib/ironic @@ -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\