mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-29 14:00:27 +00:00
The NetworkManager in Fedora 33 does not use ifcfg-rh plugin by default,
the CI will fail on Fedora 33 with:
```
TASK [assert that profile 'bond0' is present] **********************************
task path: /tmp/tmpaz9m374e/tests/playbooks/tasks/assert_profile_present.yml:4
fatal: [/cache/fedora-33.qcow2]: FAILED! => {
"assertion": "profile_stat.stat.exists",
"changed": false,
"evaluated_to": false,
"msg": "profile /etc/sysconfig/network-scripts/ifcfg-bond0 does not exist"
}
```
Previously, we are checking the existence of
`/etc/sysconfig/network-scripts/` to determine whether ifcfg-rh plugin
is enabled. This is incorrect on Fedora 33.
The fix is checking the FILENAME[1] used for storing the NetworkManager
connection, the profile is considered as exists when it exists and does
not contains `/run`.
Since we cannot tell which provider we are using, we just check both
initscripts files and NetworkManager connections.
[1]: nmcli -f NAME,FILENAME connection show
Signed-off-by: Gris Ge <fge@redhat.com>
|
||
|---|---|---|
| .. | ||
| provider | ||
| activate_profile.yml | ||
| assert_device_absent.yml | ||
| assert_device_present.yml | ||
| assert_output_in_stderr_without_warnings.yml | ||
| assert_profile_absent.yml | ||
| assert_profile_present.yml | ||
| cleanup_802_1x_server.yml | ||
| cleanup_mock_wifi.yml | ||
| cleanup_profile+device.yml | ||
| create_and_remove_interface.yml | ||
| create_bridge_profile.yml | ||
| create_bridge_profile_no_autoconnect.yml | ||
| create_team_profile.yml | ||
| create_test_interfaces_with_dhcp.yml | ||
| delete_interface.yml | ||
| get_current_interfaces.yml | ||
| get_interface_stat.yml | ||
| get_NetworkManager_NVR.yml | ||
| get_profile_stat.yml | ||
| manage_test_interface.yml | ||
| remove+down_profile.yml | ||
| remove_profile.yml | ||
| remove_test_interfaces_with_dhcp.yml | ||
| run_test.yml | ||
| setup_802.1x.yml | ||
| setup_802_1x_server.yml | ||
| setup_mock_wifi.yml | ||
| setup_test_interface.yml | ||
| show_interfaces.yml | ||
| test_802.1x_capath.yml | ||