Error state during VFIO enablement is discovered by
'wait_for_application_state' function. So that's the one
that should be re-tried after error recovery.
Fixes: e4e1d18624
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
It is possible for OVN exporter to run even if it
can't connect to OVN sockets. In that case it will
report only reduced number of metrics. We need to
use metric that confirms that the exporter is successfully
connected to the OVN.
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
When adding/removing units during the downscale test,
the test should take into consideration 'target_deploy_status'.
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
Rebooting units can cause the to go into an error state[0]
and it seems to pop up in our CI from time to time when we
enable huge pages on a machine.
We can try to recover from this at least once before
giving up on the test run.
[0] https://bugs.launchpad.net/juju/+bug/2077936
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
With Epoxy, new rbacs becomes the default under oslo.policy. Add a new
test target TempestTestWithKeystoneMinimalNewRBAC to ensure proper
configuration for tempest under new RBAC environments.
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This ensures that prometheus exporter on ovn-chassis and
ovn-central units is reachable and responds to requests
after the unit is deployed.
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
Charm ovn-chassis used 'magpie' as a principal charm, but magpie
doesn't have 'noble' release. Switching to 'ubuntu' is an easy
way to unblock noble functional tests.
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
If the test uses bionic source image the charm has not be able
to determine ubuntu_release which it cant always do. This
causes breakage when the image is bionic because it has to apply
ussuri uca for retrofit to work.
Some projects will return specific failed code when up because of
templating in URL. In some other case, due to the nature of the test,
the service will never go up but be present in keystone. Allow the
caller to override which service returns a specific code.
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
Tempests can be used on deployments without nova-compute, testing only
control plane APIs. Fallback to a value when no nova-compute units is
found.
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
This adds basic LXD support that allows adding second NIC to
instances hosting networking charms as well as populating said
charms configuration with the second NIC MAC address.
Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
The `[image]` section and `http_image` configuration key is
optional, only populate it if the caller has populated the
`TEST_SWIFT_IP` environment variable.
Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
At present this value is hard coded, which may cause test failures
on deployment with different number of compute nodes.
Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
Perform repetitive task in loop on input data rather than
repeating the same call three times in the code.
Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>