Update idrac-redfish export configuration step

Add to ignore destructive settings during export. User can still put
those back during import manually.

Depends-On: https://review.opendev.org/c/x/sushy-oem-idrac/+/816815
Change-Id: I7d4c08082cadec399227ee4546e7353ff6bd2ae8
This commit is contained in:
Aija Jauntēva 2021-11-05 05:08:36 -04:00
parent aed88ed93e
commit 89cf1e7f6b
5 changed files with 18 additions and 2 deletions

View File

@ -396,6 +396,12 @@ section uses the iDRAC Server Configuration Profile (SCP) and can be edited as
necessary if it complies with the SCP. For more information about SCP and its
capabilities, see SCP_Reference_Guide_.
.. NOTE::
iDRAC BMC connection settings are not exported to avoid overwriting these in
another system when using unmodified exported configuration mold in import
step. If need to replicate iDRAC BMC connection settings, then add these
settings manually to configuration mold for import step.
To replicate the system configuration to that of a similar system, perform the
following steps:

View File

@ -17,4 +17,4 @@ ansible>=2.7
python-ibmcclient>=0.2.2,<0.3.0
# Dell EMC iDRAC sushy OEM extension
sushy-oem-idrac>=3.0.1,<4.0.0
sushy-oem-idrac>=4.0.0,<5.0.0

View File

@ -396,7 +396,8 @@ class DracRedfishManagement(redfish_management.RedfishManagement):
configuration = drac_utils.execute_oem_manager_method(
task, 'export system configuration',
lambda m: m.export_system_configuration())
lambda m: m.export_system_configuration(
include_destructive_fields=False))
if configuration and configuration.status_code == 200:
configuration = {"oem": {"interface": "idrac-redfish",

View File

@ -890,6 +890,8 @@ class DracRedfishManagementTestCase(test_utils.BaseDracTest):
mock_get_system.return_value.managers = [fake_manager1, fake_manager2]
self.management.export_configuration(task, 'edge')
fake_manager_oem2.export_system_configuration.assert_called_once_with(
include_destructive_fields=False)
mock_save_configuration.assert_called_once_with(
task,
'edge',

View File

@ -0,0 +1,7 @@
---
features:
- |
Updates ``idrac-redfish`` management interface export configuration step
to not export iDRAC BMC connection settings to avoid overwriting those
in another system when using unmodified configuration mold in import step.
For import step it is still possible to add these settings back manually.