From 0da7c6435235eb8260b0b6ad8699ced7be743c8d Mon Sep 17 00:00:00 2001 From: Nicolas Munoz Date: Wed, 22 Jan 2025 11:49:36 +0900 Subject: [PATCH] COMPOSER-2437: Skip test_eth0_network_adapter_setup on Azure and RHEL-9.x. --- test_suite/generic/test_generic.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test_suite/generic/test_generic.py b/test_suite/generic/test_generic.py index 41c42960..6ee0fff4 100644 --- a/test_suite/generic/test_generic.py +++ b/test_suite/generic/test_generic.py @@ -704,8 +704,8 @@ def test_ipv_localhost(self, host): assert host.file('/etc/hosts').contains(expected_host), \ '/etc/hosts does not contain ipv4 or ipv6 localhost' - @pytest.mark.run_on(['rhel', 'fedora35', 'centos']) - def test_eth0_network_adapter_setup(self, host): + @pytest.mark.run_on(['rhel', 'centos']) + def test_eth0_network_adapter_setup(self, host, instance_data): """ Make sure that eht0 default adapter is correctly setup: 1. NETWORKING=yes in /etc/sysconfig/network @@ -713,6 +713,9 @@ def test_eth0_network_adapter_setup(self, host): Does not apply to >fedora35: https://fedoramagazine.org/converting-networkmanager-from-ifcfg-to-keyfiles/ """ + if instance_data['cloud'] == 'azure' and \ + version.parse(host.system_info.release).major == 9: + pytest.skip('Skipping due to cloud-init known issue in RHEL-9.x. See COMPOSER-2437 for details.') device_name = 'eth0' with host.sudo():