Bug 1450219
Summary: | [NMCI] race in bond_rename test | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Vladimir Benes <vbenes> | ||||||||
Component: | NetworkManager | Assignee: | Beniamino Galvani <bgalvani> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 7.4 | CC: | aloughla, atragler, bgalvani, fgiudici, lrintel, rkhan, sukulkar, thaller | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2018-04-10 13:22:08 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: | |||||||||||
Attachments: |
|
Description
Vladimir Benes
2017-05-11 21:24:01 UTC
Created attachment 1278036 [details]
debug log
workaround is to add few seconds sleep after * Bring "down" connection "bond0" Created attachment 1288394 [details]
[PATCH] manager: avoid that auto-activations preempt user activations
+ if (nm_auth_subject_is_internal (nm_active_connection_get_subject (active))) if (success && why the check for + && nm_streq0 (nm_active_connection_get_specific_object (candidate), nm_active_connection_get_specific_object (active))) ? It seems that is not necessary? The specific-object is like the path to the WifiAP. Seems to me, it doesn't matter if they differ... Should the check however consider the state of candidate? E.g. if candidate is already about to disconnect, it seems right to proceed with new activation? Dunno. But good catch, for this issue!! Created attachment 1288844 [details] [PATCH v2] manager: avoid that auto-activations preempt user activations (In reply to Thomas Haller from comment #4) > why the check for > + && nm_streq0 (nm_active_connection_get_specific_object (candidate), > nm_active_connection_get_specific_object (active))) > > ? It seems that is not necessary? The specific-object is like the path to > the WifiAP. Seems to me, it doesn't matter if they differ... Good point, fixed. > Should the check however consider the state of candidate? E.g. if candidate > is already about to disconnect, it seems right to proceed with new > activation? Dunno. Yes, makes sense. + if (nm_auth_subject_is_internal (nm_active_connection_get_subject (active))) if (success && ... (In reply to Thomas Haller from comment #6) > > + if (nm_auth_subject_is_internal (nm_active_connection_get_subject > (active))) > > if (success && ... Ops, fixed. Applied to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=0922a177385be188b9c9c8ad39c1068533f5a4b3 and nm-1-8: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-1-8&id=2236c3c728c49d2ebd68e83f1096b5180b2f41dd After this fix, the following CI test should work reliably without the extra delay: https://github.com/NetworkManager/NetworkManager-ci/blob/82dd537b29b5652dc269ef89ca229098877d9100/nmcli/features/bond.feature#L1267 New version of test for 1.8.1 introduced w/o the delay after bond down # VVV Workaround for rhbz1450219 * Wait for at least "2" seconds 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://access.redhat.com/errata/RHBA-2018:0778 |