If `self.promote_rgw_to_primary(self.primary_rgw_app)` is executed
before sites are syncronised, the sites will not be syncronised after.
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
* Rename `test_004_migration_and_multisite_failover` to `test_100_migration_and_multisite_failover`
* This will allow us to insert more multi-site tests after `test_003`,
before scale-down scenario is run in `test_100_migration_and_multisite_failover`.
* Rename `test_005_virtual_hosted_bucket` to `test_101_virtual_hosted_bucket`.
* This was previously run after `test_004_migration_and_multisite_failover`.
So, we rename the test case to `test_101` to keep the same order.
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This PR implements tests for the ceph-mon charm's action 'rotate-key'.
For now, the charm only supports key rotation for managers, but
more entities will be added. This PR will be used to test those
new entities as well.
The OpenStack Charms gate has proven to be unstable when running
juju-3.x, this patch pins libjuju again to 2.9.x until the issues get
addressed.
Depends-On: https://github.com/openstack-charmers/zaza/pull/652
Existing code uses the python libjuju unit.run in order to execute
a wait check for ca readiness across the units. The behavior of libjuju
changed between 2.x and 3.x and causes this functionality to break. This
is abstracted and handled in the zaza library, so use that code instead
as it properly handles the differences.
Signed-off-by: Billy Olsen <billy.olsen@canonical.com>
When juju 3.x is used (installed from a snap in strict confinement) the
temporary directory of the system (e.g. /tmp) can't be read by 'juju',
this is used by zaza-openstack-tests to write testing policy files
among other transitory files that are passed to juju's CLI.
This change moves Python's default temporary file to ~/tmp unless
overriden by the environment variable TEST_TMPDIR.
This change introduces a place to keep the constraints needed to build
testing environments. It will be global to all charms under the Charmed
OpenStack umbrella, they will be enforced by zosci at the gate.
These constraints are not meant to be used to build charms, for that the
tooling that should be used is pip-compile.
This PR implements the needed changes so that the Ceph charms
can be run without a full Openstack environment. In particular,
the RBD mirror charm needed tweaking so as to not depend on
Cinder, using pools of its own creating.
As seen in Bug #2045206 wait_for_endpoints can fails if keystone
is in a transient state. This change puts tenacity around the
keystone client setup to make it more resilient.
Closes-Bug: 2045206