Remove the SW RAID configuration
Does not tear down the raid set, but removes the
configuration that may unduely influence the deployment
process of future nodes.
Change-Id: I0f282fb327e075b2897c46c45273d443c8f30e47
diff --git a/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py b/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py
index 3605c28..4f8bfe8 100644
--- a/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py
+++ b/ironic_tempest_plugin/tests/scenario/baremetal_standalone_manager.py
@@ -607,6 +607,9 @@
'op': 'remove'}]
self.update_node(self.node['uuid'], patch=patch)
+ def remove_raid_configuration(self):
+ self.baremetal_client.set_node_raid_config(self.node['uuid'], {})
+
def rescue_unrescue(self):
rescue_password = uuidutils.generate_uuid()
self.rescue_node(self.node['uuid'], rescue_password)
diff --git a/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_cleaning.py b/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_cleaning.py
index ef74e01..b1ddecc 100644
--- a/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_cleaning.py
+++ b/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_cleaning.py
@@ -110,6 +110,11 @@
# remove the root device hint, so it is best for us to go ahead
# and remove it before exiting the test.
self.remove_root_device_hint()
+ # Removes RAID configuration
+ # TODO(TheJulia): We _should_ tear the raid configuration down
+ # however bouncing neutron ports with known DHCP reload bugs
+ # is not a super great idea for tempest tests.
+ self.remove_raid_configuration()
class SoftwareRaidDirect(bsm.BaremetalStandaloneScenarioTest):
@@ -146,3 +151,8 @@
# remove the root device hint, so it is best for us to go ahead
# and remove it before exiting the test.
self.remove_root_device_hint()
+ # Removes RAID configuration
+ # TODO(TheJulia): We _should_ tear the raid configuration down
+ # however bouncing neutron ports with known DHCP reload bugs
+ # is not a super great idea for tempest tests.
+ self.remove_raid_configuration()