[Bug 212053] New: Set promote_secondaries=1 by default
https://bugzilla.novell.com/show_bug.cgi?id=212053 Summary: Set promote_secondaries=1 by default Product: openSUSE 10.2 Version: Alpha 5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kernel01@hailfinger.org QAContact: qa@suse.de /proc/sys/net/ipv4/conf/*/promote_secondaries is currently set to 0 by default. Changing that to 1 would be a user-visible change for users with multiple ip addresses on one interface, but the changed behaviour is IMO less surprising than the current one. Description for promote_secondaries: Deleting the primary IP address of an interface forces deletion all secondary IP addresses unless promote_secondaries is set. This side effect of killing all secondary addresses without warning (and without documentation about this behaviour) has caused me and lots of others quite some grief. Scenario: You are logged into a remote box on one of its secondary IP addresses (to be able to change the primary IP address without disrupting your work), delete the primary IP address to later add the new primary IP address and suddenly find out that the secondary IP address you were using for administration has vanished. No way to connect to the box (it has no IP address anymore), so you have to ask someone to flip the power switch and hope it works with the old config after reboot. If promote_secondaries had been set, the disaster would not have happened. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |okir@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053 ------- Comment #1 from kernel01@hailfinger.org 2006-11-03 21:55 MST ------- ping -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053 okir@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|okir@novell.com |zoz@novell.com ------- Comment #2 from okir@novell.com 2006-11-13 06:39 MST ------- Yes, sounds reasonable. This is something that would need to be enabled in the network scripts. Reassigning to Christian Zoz -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053 zoz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |okir@novell.com Status|NEW |NEEDINFO Component|Network |Network Info Provider| |okir@novell.com Product|openSUSE 10.2 |openSUSE 10.3 Version|Alpha 5 |unspecified ------- Comment #3 from zoz@novell.com 2006-11-14 07:26 MST ------- Please help me to understand this: The secondary flag is used as soon as there are multiple addresses from the same subnet on one interface. Right? So you mean we should set promote_secondaries as soon as multiple static addresses are used? Or always (because it does not harm)? Or only if there is some address marked as secondary? On the other side: ifup/down can only set up or take down an interface completely. It does not add/delete single addresses while the interface stays up. So your action is bypassing ifup/down. Why should then ifup set this flag? I just want to know. I have no problem in adding this feature to ifup if you tell me that promote_secondaries=1 does not harm. And, since it is a new feature, it will probably not go to 10.2, but to 10.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053 kernel01@hailfinger.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|okir@novell.com | ------- Comment #4 from kernel01@hailfinger.org 2006-11-14 07:45 MST ------- The secondary flag is used as soon as there are multiple addresses on one interface. The subnet does not matter. Setting it always would be best (no harm done). Setting it only if there is some address marked as secondary is equivalent to setting the flag only if there are multiple addresses because an interface can only have one primary address, all others are secondaries. You do not need to set promote_secondaries for each interface. AFAIK it is enough to set it during network initialization once in /proc/sys/net/ipv4/conf/all/promote_secondaries . So /etc/init.d/network (section "start") may be the best place for this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=212053#c5 Christian Zoz <zoz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zoz@novell.com AssignedTo|zoz@novell.com |mt@novell.com Status|ASSIGNED |NEW --- Comment #5 from Christian Zoz <zoz@novell.com> 2007-11-27 03:16:14 MST --- Marius, this one is more a feature request. I'm not sure if we should change that. What do you think? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=212053#c6 --- Comment #6 from Carl-Daniel Hailfinger <kernel01@hailfinger.org> 2007-11-27 07:06:50 MST --- (posting from my external account due to bugzilla problems, internal is cadaha@suse.de) If we strive for least surprise, enabling promote_secondaries is the way to go. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=212053 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=212053#c7 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@novell.com, security-team@suse.de AssignedTo|mt@novell.com |werner@novell.com --- Comment #7 from Marius Tomaschewski <mt@novell.com> 2008-02-06 08:43:31 MST --- Carl-Daniel, I'm planning to implement support of configuration variables for the per-interface proc/sysctl flags in ifcfg-* files for 11.0, so it will be possible then, to set this value on a per-interface basis too. For earlier distributions than 11.0 you can change the policy (for all or the default) in /etc/sysctl.conf. Werner, can you add "net.ipv4.conf.default.promote_secondaries = 1" and/or "net.ipv4.conf.all.promote_secondaries = 1" to the policy in /etc/sysctl.conf? Added security-team into Cc to monitor / veto this policy change. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=212053 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=212053#c8 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|werner@novell.com |mt@novell.com --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2008-02-06 08:55:35 MST --- done -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=212053 User kernel01@hailfinger.org added comment https://bugzilla.novell.com/show_bug.cgi?id=212053#c9 --- Comment #9 from Carl-Daniel Hailfinger <kernel01@hailfinger.org> 2008-02-06 09:36:40 MST --- Great, thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=212053 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=212053#c10 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #10 from Marius Tomaschewski <mt@novell.com> 2009-02-13 10:05:34 MST --- fixed -- see comment #8. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com