Browse code

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

Josh Gachnang authored on 2015/03/17 15:24:52
Showing 1 changed files
... ...
@@ -427,6 +427,11 @@ function create_ironic_accounts {
427 427
 
428 428
 # init_ironic() - Initialize databases, etc.
429 429
 function init_ironic {
430
+    # Save private network as cleaning network
431
+    local cleaning_network_uuid
432
+    cleaning_network_uuid=$(neutron net-list | grep private | get_field 1)
433
+    iniset $IRONIC_CONF_FILE neutron cleaning_network_uuid ${cleaning_network_uuid}
434
+
430 435
     # (Re)create  ironic database
431 436
     recreate_database ironic
432 437