This fixes flakyness with iscsi tests. There was a previous fix that

did mostly the same, but this PR makes it more similar to what we
have pending for the stable branches.

This PR is being tested in this gerrit patchset:
https://review.opendev.org/c/openstack/charm-ceph-iscsi/+/871154
This commit is contained in:
Luciano Lo Giudice
2022-08-17 14:48:21 -03:00
parent 4c414c25d0
commit 1e12a7a6a1

View File

@@ -254,9 +254,11 @@ class CephISCSIGatewayTest(test_utils.BaseCharmTest):
"""
self.create_iscsi_target(test_ctxt)
self.login_iscsi_target(test_ctxt)
self.refresh_partitions(test_ctxt)
self.check_client_device(test_ctxt, init_client=True)
self.logout_iscsi_targets(test_ctxt)
self.login_iscsi_target(test_ctxt)
self.refresh_partitions(test_ctxt)
self.check_client_device(test_ctxt, init_client=False)
self.refresh_partitions(test_ctxt)