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
| ... | ... |
@@ -618,6 +618,7 @@ function enroll_nodes {
|
| 618 | 618 |
local node_id=$(ironic node-create $standalone_node_uuid\ |
| 619 | 619 |
--chassis_uuid $chassis_id \ |
| 620 | 620 |
--driver $IRONIC_DEPLOY_DRIVER \ |
| 621 |
+ --name node-$total_nodes \ |
|
| 621 | 622 |
-p cpus=$ironic_node_cpu\ |
| 622 | 623 |
-p memory_mb=$ironic_node_ram\ |
| 623 | 624 |
-p local_gb=$ironic_node_disk\ |