| Summary: | Draklive-install - After reboot, configuring network fails to connect - NM grabs remaining interfaces | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | claire robinson <eeeemail> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | release_blocker | CC: | alien, ennael1, mageia, thierry.vignaud |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | 3beta3 | ||
| Source RPM: | CVE: | ||
| Status comment: | |||
| Attachments: | Don't set NM_CONTROLLED unless we know it's value. | ||
|
Description
claire robinson
2013-03-05 15:39:35 CET
claire robinson
2013-03-05 15:39:45 CET
Whiteboard:
(none) =>
3beta3 This was using gnome livedvd
claire robinson
2013-03-05 15:44:23 CET
Priority:
Normal =>
release_blocker yes they are all related so why open another one ? Related doesn't mean it's a duplicate, that's why. For mga4 I think we'll have to use perl-Glib-Object-Introspection to hook in NM... CC:
(none) =>
thierry.vignaud is there a way to (quick&dirty) prevent the grabbing or will we put this in the errata? the "NM_CONTROLLED=no" option in /etc/sysconfig/network-scripts/ifcfg-* (or the check box in drakconnect) the initial bug is fixed now, no ? Created attachment 4878 [details]
Don't set NM_CONTROLLED unless we know it's value.
So for this issue, I've actually done the opposite in the attached patch.
I've modifed the drakx-net code to only write the NM_CONTROLLED value to the config when it KNOWS the user has made a choice, otherwise it's left out. Previously it would default to no and thus NM would be relagated to the side lines and thus a combination of NM+initscripts will be used which is generally a bit confusing.
This means that everything else defaults to NM.
This means the live CDs with NM installed in them will use NM. And after installation NM will grab the interfaces too.
Simply removing NM or disabling/masking it should be enough for things to flip over to initscripts handling without any explicit tweaks of the config file.
This is maybe too intrusive for this late stage tho'.
This is an old bug about MGA3 so I don't think it should prevent us from releasing MGA4 even if things are in the same state.
This patch can perhaps come after release.CC:
(none) =>
mageia commit 360f3b5937e1fb1ff173240ec5c3ee9f8e9f9491
Author: Colin Guthrie <colin@...>
Date: Fri Jan 24 09:57:13 2014 +0000
ifcfg: Do not write the NM_CONTROLLED flag unless we know it's value.
If it's not read from the config, it will be read as undef, but written
back as 'no'. This changes the behaviour where no setting means
'automatic' - i.e. if NM is installed, use it, otherwise don't.
If the user wants to be specific, then they make the consious choice
to tick the box in drakx-net.
mga#6675 mga#9261
---
Commit Link:
http://gitweb.mageia.org/software/drakx-net/commit/?id=360f3b5937e1fb1ff173240ec5c3ee9f8e9f9491
Bug links:
Mageia
https://bugs.mageia.org/show_bug.cgi?id=6675
https://bugs.mageia.org/show_bug.cgi?id=9261
I have added a patch in addition to Colin's, so the UI tools from drakx-net does not force NM_CONTROLLED to "no" if unset in the ifcfg file. That way, the tools will not change the interface configuration without an explicit modification from the administrator. Pushed both commits to master. Any conclusion on that bug? did it fix the problem? CC:
(none) =>
ennael1 I *think* this is now fixed. I'll double check later today and close it of it's ok. Closing as fixed Status:
NEW =>
RESOLVED |