Commit Graph

15 Commits

Author SHA1 Message Date
Luciano Lo Giudice 1e12a7a6a1 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
2023-03-03 13:37:21 -03:00
Luciano Lo Giudice 3ab81b4ebb Refresh kernel partition table between tests (#779)
The test suite for ceph-iscsi does a bunch of operations on filesystems
in quick succession, so some tests are prone to fail if the kernel doesn't
update the partition table. This PR does this manually between tests by
calling the 'partprobe' command.

Co-authored-by: Luciano Lo Giudice <luciano.logiudice@canonical.com>
2022-06-09 16:58:37 +02:00
Alex Kavanagh 0af4c93d52 Switch unit.public_address to unit.get_public_address()
Due to the bug [1] on OpenStack providers, unit.public_address doesn't
actually work reliably.  The fix [2] is only for the async function
unit.get_public_address().  Sadly, zaza relied on unit.public_address
and so it needs this patch for juju 2.9 support on OpenStack providers.

This patch relies on an associated patch in zaza [3]; thus this will
fails its tests until that passes.

[1]: https://github.com/juju/python-libjuju/issues/551
[2]: https://github.com/juju/python-libjuju/pull/600
[3]: https://github.com/openstack-charmers/zaza/pull/468
2022-01-14 15:21:32 +00:00
Liam Young a91ae76975 Stop assuming there are two iscsi gateways
The tests assume there are two iscsi gateways which is not a
safe assumption.
2020-11-06 14:12:59 +00:00
Liam Young 7e0eaf919f Stdout v stdout now handled by zaza 2020-09-24 08:59:46 +00:00
Liam Young ad1ea7667d handle stdout v Stdout 2020-09-23 17:04:19 +00:00
Liam Young 76e7666f9c Fix typo 2020-09-23 11:25:00 +00:00
Liam Young c3105657d4 Fix doc strings 2020-09-23 11:09:31 +00:00
Liam Young eda2dfb450 Typo fix 2020-09-23 10:26:18 +00:00
Liam Young 0a458766c2 Extend iSCSI tests.
Extend iSCSI tests to mount multipath device and write data to it
Then unmount it and logout of the iscsi target. Finally log back
into the iscsi target, mount device and check data is present.
2020-09-23 10:26:18 +00:00
Liam Young c5786d9184 Ceph iscsi default pool test (#415)
* Add Ceph-iscsi Erasure coding check

Add a test which created a ceph iscsi target backed by an
erasure coded pool.

* Fix EC pool type

* Test ceph iscsi target from default pool
2020-09-21 13:40:48 +01:00
Liam Young 540bd91cc0 Add Ceph-iscsi Erasure coding check (#412)
* Add Ceph-iscsi Erasure coding check

Add a test which created a ceph iscsi target backed by an
erasure coded pool.

* Update action params inline with charm change

* Fix EC pool type
2020-09-18 09:46:08 +01:00
Liam Young 53b81209a6 Add missing doc string 2020-04-17 07:17:49 +00:00
Liam Young 4dfcd931fa Create new pool for tests 2020-04-09 08:21:07 +00:00
Liam Young ff3e7f64dc Add ceph-iscsi tests 2020-04-01 14:38:47 +00:00