From ee78c9e2f6076db2db1b2fc3c1178905de6f7e5d Mon Sep 17 00:00:00 2001 From: Josh Gachnang Date: Mon, 16 Mar 2015 23:24:52 -0700 Subject: [PATCH] Add Ironic cleaning network The cleaning network is where ramdisks will be booted during the cleaning process. We want to ensure nodes are being properly cleaned on tear down. Change-Id: Ic38de10668c97648d073fdf9a3afc59712057849 Implements: bp/implement-cleaning-states --- lib/ironic | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ironic b/lib/ironic index 35b5411cd4..71f9933d36 100644 --- a/lib/ironic +++ b/lib/ironic @@ -427,6 +427,11 @@ function create_ironic_accounts { # init_ironic() - Initialize databases, etc. function init_ironic { + # Save private network as cleaning network + local cleaning_network_uuid + cleaning_network_uuid=$(neutron net-list | grep private | get_field 1) + iniset $IRONIC_CONF_FILE neutron cleaning_network_uuid ${cleaning_network_uuid} + # (Re)create ironic database recreate_database ironic