Skip to content

Fix verify_ifcfg_eth0 for fedora 39 & above #3877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025

Conversation

balakreddy
Copy link
Contributor

This testcase failes for the latest fedora 42.
For Fedora 39 and above, fedora uses NetworkManager for the network management. The legacy /etc/sysconfig/network-scripts/ directory and ifcg-* files are deprecated. Tested with azure and the testcase is passing.

This testcase failes for the latest fedora 42.
For Fedora 39 and above, fedora uses NetworkManager for the
network management. The legacy /etc/sysconfig/network-scripts/
directory and ifcg-* files are deprecated. Tested with azure
and the testcase is passing.

Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
@LiliDeng LiliDeng requested a review from Copilot June 22, 2025 15:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the verify_ifcfg_eth0 method to support Fedora 39+ by using NetworkManager (nmcli) instead of legacy ifcfg files.

  • Introduces branch for Fedora ≥39 to assert autoconnect and DHCP usage via nmcli
  • Retains existing ifcfg-eth0 file check for Fedora <39
Comments suppressed due to low confidence (1)

microsoft/testsuites/core/azure_image_standard.py:473

  • [nitpick] Add or update integration/end-to-end tests to cover the new nmcli–based branch for Fedora 39+ so that these assertions are validated in CI.
                # Check if the autoconnect is enabled for eth0

@squirrelsc squirrelsc merged commit 24efaea into microsoft:main Jun 23, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants