[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
https://bugzilla.novell.com/show_bug.cgi?id=212053#c6
--- Comment #6 from Carl-Daniel Hailfinger
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
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
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
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
participants (1)
-
bugzilla_noreply@novell.com