ironic/ironic/tests/unit/drivers/modules/irmc
Zhou Hao 8a5c672fa9 [iRMC] Avoid repeatedly resuming clean after creating raid configuration
Fixed the bug of repeated resume cleaning due to the value of `fgi_status` not being updated correctly when obtaining the
RAID configuration status of the node managed by the `irmc` hardware type.

```
Unexpected error when processing next clean step. TypeError: 'NoneType' object is not subscriptable
```

This `NoneType` error occurs because ironic resumes clean without waiting for IPA to get the clean steps, and then it tries to read the
clean steps which should be a list but actually is none.
During auto clean, resume clean should be triggered by IPA, but in this case, it is triggered by a iRMC periodic task which checks
the progress of running raid config.
This error does not occur every time, sometime raid can be configured, auto clean can complete without error and the node can be deployed successfully.

Story: #2009206
Task: #43265

Signed-off-by: Zhou Hao <zhouhao@fujitsu.com>
Change-Id: I5a1c5708bdc1709e928f0faf7e18396e260dc551
2021-09-22 18:21:16 +08:00
..
__init__.py Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
fake_sensors_data_ng.xml Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
fake_sensors_data_ok.xml Move unit tests to correct directory 2015-09-30 17:47:19 -07:00
test_bios.py Enforce autospec in irmc tests 2020-08-12 17:33:22 +02:00
test_boot.py Merge "Refactor deploy_utils.validate_image_properties" 2021-06-30 22:37:04 +00:00
test_common.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_inspect.py Lazy-load node details from the DB 2021-03-02 09:09:02 +01:00
test_management.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_periodic_task.py [iRMC] Avoid repeatedly resuming clean after creating raid configuration 2021-09-22 18:21:16 +08:00
test_power.py Enforce autospec in irmc tests 2020-08-12 17:33:22 +02:00
test_raid.py Enforce autospec in irmc tests 2020-08-12 17:33:22 +02:00