Browse code

Prepare devstack for Ironic cleaning testing

This patch changes the two config options required for Ironic to
successfully test cleaning in devstack.

First, we disable erase_devices clean step. Erase devices in VMs
ends up running shred on the drives for the agent driver, which is
incredibly slow and completely unneeded in devstack.

Additionally, we allow Ironic more time to complete the unprovision
after the nova instance is deleted. This time is spend in the CLEANING
state to clean up the node.

This is related to the Ironic blueprint "implement-cleaning-states".

Change-Id: I77081165a80491da3e66d8a4554b6d71fc3d9353

Jay Faulkner authored on 2015/03/27 07:19:32
Showing 2 changed files
... ...
@@ -370,6 +370,7 @@ function configure_ironic_conductor {
370 370
         iniset $IRONIC_CONF_FILE glance swift_container glance
371 371
         iniset $IRONIC_CONF_FILE glance swift_temp_url_duration 3600
372 372
         iniset $IRONIC_CONF_FILE agent heartbeat_timeout 30
373
+        iniset $IRONIC_CONF_FILE agent agent_erase_devices_priority 0
373 374
     fi
374 375
 
375 376
     if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then
... ...
@@ -476,6 +476,7 @@ function configure_tempest {
476 476
     # Baremetal
477 477
     if [ "$VIRT_DRIVER" = "ironic" ] ; then
478 478
         iniset $TEMPEST_CONFIG baremetal driver_enabled True
479
+        iniset $TEMPEST_CONFIG baremetal unprovision_timeout 300
479 480
         iniset $TEMPEST_CONFIG compute-feature-enabled change_password False
480 481
         iniset $TEMPEST_CONFIG compute-feature-enabled console_output False
481 482
         iniset $TEMPEST_CONFIG compute-feature-enabled interface_attach False