summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Falcon <therealfalcon@gmail.com>2021-08-13 22:21:52 -0500
committerGitHub <noreply@github.com>2021-08-13 21:21:52 -0600
commitb9c96b4f4291b0b8c014817ec6047648dc83845b (patch)
tree5f8014e8b96aa6788818d8c3e857db592ea18997
parent65607405aed2fb5e7797bb181dc947025c10f346 (diff)
downloadcloud-init-git-b9c96b4f4291b0b8c014817ec6047648dc83845b.tar.gz
testing: skip upgrade tests on LXD VMs (#980)
The issues we see on Bionic VMs don't appear anywhere else, including when invoking kvm directly. It likely has to do with the extra LXD agent setup happening on bionic. Given that we still have Bionic covered on all other platforms, the risk of skipping bionic for LXD VM tests seems low.
-rw-r--r--tests/integration_tests/test_upgrade.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/integration_tests/test_upgrade.py b/tests/integration_tests/test_upgrade.py
index 5c7a2e1e..376fcc96 100644
--- a/tests/integration_tests/test_upgrade.py
+++ b/tests/integration_tests/test_upgrade.py
@@ -3,7 +3,7 @@ import logging
import os
import pytest
-from tests.integration_tests.clouds import IntegrationCloud
+from tests.integration_tests.clouds import ImageSpecification, IntegrationCloud
from tests.integration_tests.conftest import get_validated_source
@@ -45,6 +45,15 @@ def test_clean_boot_of_upgraded_package(session_cloud: IntegrationCloud):
if not source.installs_new_version():
pytest.skip(UNSUPPORTED_INSTALL_METHOD_MSG.format(source))
return # type checking doesn't understand that skip raises
+ if (ImageSpecification.from_os_image().release == 'bionic' and
+ session_cloud.settings.PLATFORM == 'lxd_vm'):
+ # The issues that we see on Bionic VMs don't appear anywhere
+ # else, including when calling KVM directly. It likely has to
+ # do with the extra lxd-agent setup happening on bionic.
+ # Given that we still have Bionic covered on all other platforms,
+ # the risk of skipping bionic here seems low enough.
+ pytest.skip("Upgrade test doesn't run on LXD VMs and bionic")
+ return
launch_kwargs = {
'image_id': session_cloud.released_image_id,