OOB inspection timeout fix for iDRAC
Make inspection timeout configurable to fix iDRAC driver out of band
inspection intermittent timeout issue for idrac-wsman and idrac-redfish
inspect interface.
For idrac, at least 20 seconds is recommended to be set for inspect
timeout for successful execution of OOB inspection.
Change-Id: Ibdf78d0669d0afb43d32bb71e7710145ffb7c05e
diff --git a/ironic_tempest_plugin/config.py b/ironic_tempest_plugin/config.py
index 6b05402..fd86d47 100644
--- a/ironic_tempest_plugin/config.py
+++ b/ironic_tempest_plugin/config.py
@@ -97,6 +97,9 @@
default=30,
help="Timeout for association of Nova instance and Ironic "
"node"),
+ cfg.IntOpt('inspect_timeout',
+ default=10,
+ help="Timeout for inspecting an Ironic node."),
cfg.IntOpt('power_timeout',
default=60,
help="Timeout for Ironic power transitions."),
diff --git a/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_inspection_basic.py b/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_inspection_basic.py
index d6e2af1..97f0fa3 100644
--- a/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_inspection_basic.py
+++ b/ironic_tempest_plugin/tests/scenario/ironic_standalone/test_inspection_basic.py
@@ -12,11 +12,14 @@
# License for the specific language governing permissions and limitations
# under the License.
+from tempest import config
from tempest.lib import decorators
from ironic_tempest_plugin.tests.scenario import \
baremetal_standalone_manager as bsm
+CONF = config.CONF
+
class BaremetalIdracInspect(bsm.BaremetalStandaloneScenarioTest):
@@ -50,7 +53,8 @@
self.baremetal_client.set_node_provision_state(self.node['uuid'],
'inspect')
- self.wait_provisioning_state(self.node['uuid'], 'manageable')
+ self.wait_provisioning_state(self.node['uuid'], 'manageable',
+ timeout=CONF.baremetal.inspect_timeout)
self._verify_node_inspection_data()