Skip to content

Commit

Permalink
COMPOSER-2437: Skip test_eth0_network_adapter_setup on Azure and RHEL…
Browse files Browse the repository at this point in the history
…-9.x.
  • Loading branch information
narmaku committed Jan 22, 2025
1 parent 06a5a82 commit 0da7c64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test_suite/generic/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,18 @@ 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
2. DEVICE=eth0 in /etc/sysconfig/network-scripts/ifcfg-eth0
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():
Expand Down

0 comments on commit 0da7c64

Please sign in to comment.