-
Notifications
You must be signed in to change notification settings - Fork 107
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
rhel-system-roles does not reload the network profile upon profile modification #124
Comments
Thank you for the bug report. I tried to reproduce this on a current system with the upstream role but the role seems to work as expected. On the target host I tried: cat > 'role_test_static.yml' <<EOF
# SPDX-License-Identifier: BSD-3-Clause
---
- hosts: all
vars:
network_connections:
- name: "{{ network_interface }}"
state: up
type: ethernet
ip:
address:
- "192.0.2.42/30"
dhcp4: no
auto6: no
roles:
- linux-system-roles.network
EOF
ansible-playbook -i rhel77-cloud, role_test_static.yml -e network_interface=eth2 as the initial configuration. On the host: 4: eth2 inet 192.0.2.42/30 brd 192.0.2.43 scope global noprefixroute eth2\ valid_lft forever preferred_lft forever Afterwards I applied the bond config: cat > 'role_test_bond.yml' <<EOF
---
- hosts: all
vars:
network_connections:
- autoconnect: 'yes'
bond:
miimon: 100
mode: active-backup
interface_name: bond0
ip:
address:
- "192.0.2.5/30"
auto6: 'no'
dhcp4: 'no'
name: bond0
state: up
type: bond
- name: "{{ network_interface }}"
master: bond0
type: ethernet
state: up
roles:
- linux-system-roles.network
EOF
ansible-playbook -i rhel77-cloud, role_test_bond.yml -e network_interface=eth2 And it looks correct: ip -o a |grep -iw inet |grep -e eth2 -e bond0
8: bond0 inet 192.0.2.5/30 brd 192.0.2.7 scope global noprefixroute bond0\ valid_lft forever preferred_lft forever Ansible log: ansible-playbook -i rhel77-cloud, role_test_bond.yml -e network_interface=eth2
PLAY [all] *************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************************
ok: [rhel77-cloud]
TASK [linux-system-roles.network : Check which services are running] ***************************************************************************************************************************************
ok: [rhel77-cloud]
TASK [linux-system-roles.network : Check which packages are installed] *************************************************************************************************************************************
ok: [rhel77-cloud]
TASK [linux-system-roles.network : Print network provider] *************************************************************************************************************************************************
ok: [rhel77-cloud] => {
"msg": "Using network provider: nm"
}
TASK [linux-system-roles.network : Install packages] *******************************************************************************************************************************************************
skipping: [rhel77-cloud]
TASK [linux-system-roles.network : Enable and start NetworkManager] ****************************************************************************************************************************************
ok: [rhel77-cloud]
TASK [linux-system-roles.network : Enable network service] *************************************************************************************************************************************************
skipping: [rhel77-cloud]
TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] ******************************************************************************************************************
skipping: [rhel77-cloud]
TASK [linux-system-roles.network : Configure networking connection profiles] *******************************************************************************************************************************
[WARNING]: [005] <info> #0, state:up persistent_state:present, 'bond0': add connection bond0, fe7d0bdf-beba-4057-a9b7-a8eedcb78740
[WARNING]: [006] <info> #0, state:up persistent_state:present, 'bond0': up connection bond0, fe7d0bdf-beba-4057-a9b7-a8eedcb78740 (not-active)
[WARNING]: [007] <info> #1, state:up persistent_state:present, 'eth2': update connection eth2, f5b1efd7-4d71-46cd-82b0-2ae6132f37bb
[WARNING]: [008] <info> #1, state:up persistent_state:present, 'eth2': up connection eth2, f5b1efd7-4d71-46cd-82b0-2ae6132f37bb (is-modified)
changed: [rhel77-cloud]
TASK [linux-system-roles.network : Re-test connectivity] ***************************************************************************************************************************************************
ok: [rhel77-cloud]
PLAY RECAP *************************************************************************************************************************************************************************************************
rhel77-cloud : ok=7 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Could you please check if this is still an issue for you? |
There is no issue!! I tried to reproduce the issue using performed steps.
|
Hello, Thank you for your inputs. I have verified with NetworkManager version "NetworkManager-1.18.4-3.el7.x86_64" and did not observed the issue. Will keep this open for some time and if I see everything okay, will close this. |
SUMMARY
rhel-system-roles network configuration does not reload the existing network profile upon modification when the interface will be makred as a part of bond slave.
ISSUE TYPE
COMPONENT NAME
rhel-system-roles-1.0-5.el7.noarch
rhel-system-roles.network
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
ADDITIONAL INFORMATION
A network restart resolves the issue and implements the change.
The text was updated successfully, but these errors were encountered: