Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637474 - net.lo race condition in _gen_module_list() with rc_parallel=yes.
Summary: net.lo race condition in _gen_module_list() with rc_parallel=yes.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-14 11:13 UTC by hagbardcelin
Modified: 2017-11-27 21:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Simple fix for described problem. (simple-race-fix.patch,552 bytes, patch)
2017-11-14 11:14 UTC, hagbardcelin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hagbardcelin 2017-11-14 11:13:42 UTC
When starting multiple interfaces with rc_paralell=YES the interfaces randomly picks up half-generated /run/openrc/nettree and thus fail to come online. Simple fix that works here is making one nettree for each interface(This might not be the RIGHT fix, but it works here). Will attach patch.

Reproducible: Sometimes

Steps to Reproduce:
1. Set rc_paralell=yes
2. Have multiple configured network interfaces
3. Boot repeatedly. 
Actual Results:  
Some of the networks cards will eventually fail usually with 'line 616: _exists: command not found

Expected Results:  
All network card come online as configured.
Comment 1 hagbardcelin 2017-11-14 11:14:32 UTC
Created attachment 504154 [details, diff]
Simple fix for described problem.
Comment 2 Larry the Git Cow gentoo-dev 2017-11-14 20:48:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=dbfe9a7fefa70150528a66aae380b7de52d15832

commit dbfe9a7fefa70150528a66aae380b7de52d15832
Author:     Hagbard Celine <hagbardcelin@gmail.com>
AuthorDate: 2017-11-14 19:11:32 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-11-14 19:11:40 +0000

    init.d/net.lo: per-iface moduleslist
    
    Avoid race conditions in generation of modules list (nettree), and allow
    per-interface custom module work more easily.
    
    Closes: https://bugs.gentoo.org/637474
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 init.d/net.lo.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=66dc589e7478dc380c038c29073d8e438d80ed93

commit 66dc589e7478dc380c038c29073d8e438d80ed93
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2017-11-14 19:14:12 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-11-14 19:14:12 +0000

    init.d/net.lo: atomically create moduleslist.
    
    Bug: https://bugs.gentoo.org/637474
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 init.d/net.lo.in | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)}
Comment 3 Larry the Git Cow gentoo-dev 2017-11-27 21:00:39 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56c4748dce0925382fc68822034d76f1634348c7

commit 56c4748dce0925382fc68822034d76f1634348c7
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2017-11-27 20:29:43 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-11-27 21:00:29 +0000

    net-misc/netifrc: bump.
    
    New functionality & improvements:
    - Wireless: 'iw' module to replace older 'iwconfig' module.
      (Brian Evans <grknight@gentoo.org>)
    - iproute2: VXLAN & GRETAP support (iplink_$IFVAR)
      (Sergey Popov <pinkbyte@gentoo.org>)
    - Bonding: ARP IP targets (Marc Schiffbauer <mschiff@gentoo.org>)
    - wpa_supplicant: better matching of wired connections
      (Henning Schild <henning@hennsch.de>)
    - IPv6: clearer message for Tentative duplicate address detection (DAD).
    - Refactor veinfo printing of iproute2 commands.
    
    Fixes:
    - Avoid moduleslist race condition (Hagbard Celine <hagbardcelin@gmail.com>)
    - Delete IPv6 tunnel correctly (stkchp <s@tkch.net>)
    
    Bug: https://bugs.gentoo.org/638836
    Bug: https://bugs.gentoo.org/637474
    Bug: https://bugs.gentoo.org/636846
    Bug: https://github.com/gentoo/netifrc/pull/24
    Bug: https://github.com/gentoo/netifrc/pull/26
    Bug: https://github.com/gentoo/netifrc/pull/25
    Bug: https://github.com/gentoo/netifrc/pull/27
    Package-Manager: Portage-2.3.16, Repoman-2.3.6

 net-misc/netifrc/Manifest             | 17 +++++----
 net-misc/netifrc/netifrc-0.6.0.ebuild | 71 +++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+), 8 deletions(-)}