Bug 1220374
| Summary: | teaming is not working after systemctl restart network | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Marek Grac <mgrac> |
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Ščotka <jscotka> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | jscotka, lnykryn |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | initscripts-9.49.25-1.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Fix:
Now during restart of network initscripts we are also telling NM to refresh its configuration (because network initscripts usually does not handle the devices, NM does).
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 11:23:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Was the network service running (from systemd poit-of-view), before the first restart? Can you try following commands instead of systemctl restart? export SYSTEMCTL_SKIP_REDIRECT=1 service network restart @Lukáš: yes, network is running at the start - all devices has IP address obtained from DHCP output with yours setting: eth0 is not part of teaming (dhcp) eth1/2 previously single (dhcp) -> now teaming device exists but is 'down' (as without these settings) Shutting down interface eth0: [ OK ] Shutting down interface eth1: [ OK ] Shutting down interface eth2: [ OK ] Shutting down loopback interface: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' [ OK ] Bringing up loopback interface: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo' [ OK ] Bringing up interface eth0: Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3) [ OK ] Bringing up interface eth1: Error: Connection activation failed: Master connection not found or invalid [FAILED] Bringing up interface eth2: Error: Connection activation failed: Master connection not found or invalid [FAILED] Bringing up interface team0: [ OK ] Can you try this? export SYSTEMCTL_SKIP_REDIRECT=1 service network stop nmcli connection reload service network start @Lukáš: This one, works for me. Upstream patch (with a cool hash): https://git.fedorahosted.org/cgit/initscripts.git/commit/?id=474747 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2134.html |
Summary: It is required to run "/usr/bin/systemctl restart network.service" twice to has working teaming after appropriate ifcfg- where changed. Description: Let have a system with clean installation with three network cards: * eth0 - network A * eth1, eth2 - network B previous config files are all DHCP based (created by kickstart) minimal config for ifcfg-eth1/2 TEAM_MASTER=team0 DEVICETYPE=teamport HWADDR=52:54:00:01:00:4b ONBOOT=yes BOOTPROTO=none master config: DEVICE=team0 NAME=team0 DEVICETYPE=team ONBOOT=yes BOOTPROTO=dhcp TEAM_CONFIG='{"runner": {"name": "activebackup"}, "hwaddr" : "52:54:00:01:00:4b"}' IPV6INIT=NO Let's do a restart: Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details. 2nd attempt ends with success only useful information found in log is: May 11 14:18:27 virt-076.cluster-qe.lab.eng.brq.redhat.com network[2980]: RTNETLINK answers: File exists several times. Expected result: teaming will work after first restart of network settings.