network/tests/tasks
Wen Liang 66c3eef7e3 fix: Ask user's consent to restart NM due to wireless or team interfaces
If updates for network packages are available and wireless or team
connections are specified, NetworkManager must be restarted, the role
requires user's consent to restart NetworkManager. Otherwise, there
might be property conflicts between NetworkManager daemon and plugin, or
NetworkManager plugin is not taking effect.

`update_cache` is enabled in the module tasks to check if updates for
network packages are available due to wireless or team interfaces, in
that case, NetworkManager needs user's explicit consent to be restarted
after the network package updates. And using `state: latest` for
checking the network package updates because we have to guarantee that
NetworkManager and its plugin have the same and most recent version for
configuring the network connections settings in the backend. It is
worthwhile to mention that we have both tasks using dnf and yum module
for checking available updates for network packages. Because checking
package cache update is not supported in Ansible package module, Fedora
and RHEL8+ use DNF package manager by default, RHEL7 uses yum package
manager by default.

This commit will address the situation that users forget to explicitly
specify `network_allow_restart: true` when specifying wireless or team
connections.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2024-03-15 17:33:36 -04:00
..
provider ansible-lint: Fix yaml[truthy] failures 2023-02-20 15:00:28 +01:00
activate_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
assert_bond_options.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_bond_port_profile_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_controller_device_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_device_absent.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_device_present.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_dhcp_device_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_IPv4_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_IPv6_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_network_connections_failed.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
assert_output_in_stderr_without_warnings.yml library: Separate debug and info logs from warnings 2020-05-06 21:57:34 +02:00
assert_package_installed.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
assert_profile_absent.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_profile_present.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
check_network_dns.yml test: Add DNS, routes and network connectivity checks during cleanup 2024-02-14 20:20:49 -07:00
cleanup_802_1x_server.yml test: improve bond test failure debugging 2024-02-27 13:17:16 -05:00
cleanup_bond_profile+device.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
cleanup_mock_wifi.yml Cleaning up ansible-lint errors except '106', '303' and '403' 2021-04-15 20:53:53 +02:00
cleanup_profile+device.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_and_remove_interface.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
create_bond_profile.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
create_bond_profile_reconfigure.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
create_bridge_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_bridge_profile_no_autoconnect.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_dummy_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_team_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_test_interfaces_with_dhcp.yml test: improve bond test failure debugging 2024-02-27 13:17:16 -05:00
create_wireless_profile_restart_network.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
delete_interface.yml ansible-lint: Fix name[casing] warnings 2023-03-27 16:25:03 +02:00
el_repo_setup.yml refactor: improve support for ostree systems 2023-11-29 07:05:00 -07:00
enable_epel.yml fix: Install yum-utils package 2023-10-05 15:11:02 -06:00
get_current_interfaces.yml Cleaning up ansible-lint errors except '106', '303' and '403' 2021-04-15 20:53:53 +02:00
get_interface_stat.yml Rename files to be valid python identifiers 2020-04-22 17:40:03 +02:00
get_modules_and_utils_paths.yml ansible-lint: Fix name[casing] warnings 2023-03-27 16:25:03 +02:00
get_NetworkManager_NVR.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
get_profile_stat.yml Fingerprint RHEL System Role managed config files 2023-03-30 13:38:19 -06:00
manage_test_interface.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
remove+down_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
remove_package.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
remove_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
remove_test_interfaces_with_dhcp.yml test: improve bond test failure debugging 2024-02-27 13:17:16 -05:00
run_test.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
setup_802.1x.yml style: ansible-lint - fix missing YAML document start 2023-04-28 09:15:50 -06:00
setup_802_1x_server.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_mock_wifi.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_mock_wifi_wpa3_owe.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_mock_wifi_wpa3_sae.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_test_interface.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
show_interfaces.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
start_mock_wifi.yml wifi: Add Opportunistic Wireless Encryption (OWE) support 2021-05-24 10:51:01 +08:00
test_802.1x_capath.yml refactor: improve support for ostree systems 2023-11-29 07:05:00 -07:00