nvme: Delete lports in _nvmet_target_cleanup - #262
Conversation
Delete the lports in `_nvmet_target_cleanup`, which is called when when the test ends. Additionally, ignore file not found errors when deleting the lports, in `_cleanup_nvmet` as they might have already been deleted by `_nvmet_target_cleanup`. Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
|
It is still not clear for me why the change is required. My understanding is that,
Then _nvmet_target_cleanup() should not need to delete lport. I guess you needed this change to avoid some failures. What kind of failure do you observe? |
For some reason when IMO |
|
Thanks, I'm interested in the failure. May I know how to recreate the failure? I would like to take a closer look in it. At the blktests master branch tip, the line 186 of common/nvme is not in _nvme_fcloop_del_lport(), but in _nvme_fcloop_del_tport(). When you see the failure, line 186 is in _nvme_fcloop_del_lport(), right? k |
|
This happens on Centos 10, same with #263. sorry for the lack of updates, I have been a bit busy. |
Delete the lports in
_nvmet_target_cleanup, which is called when when the test ends. Additionally, ignore file not found errors when deleting the lports, in_cleanup_nvmetas they might have already been deleted by_nvmet_target_cleanup.This will also fix the issue of
common/nvme: line 186: echo: write error: No such file or directorybeing printed after the test has finished which will happen when running tests withNVMET_TRTYPES=fc ./check tests/nvme/*