[Bug 681952] New: ip addr add returns different error codes than before
https://bugzilla.novell.com/show_bug.cgi?id=681952 https://bugzilla.novell.com/show_bug.cgi?id=681952#c0 Summary: ip addr add returns different error codes than before Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: All OS/Version: Other Status: NEEDINFO Severity: Major Priority: P5 - None Component: Network AssignedTo: mt@novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de InfoProvider: ms@novell.com Found By: Development Blocker: --- In any previous version (since suse ... 10.0?), ip addr add always returned the error code 2 in case the ip address is already set on the interface: # ip a s dev bond0 | grep 172 inet 172.16.2.3/24 brd 172.16.2.255 scope global bond0 # ip a a 172.16.2.3/24 dev bond0 ; echo $? RTNETLINK answers: File exists 2 On 11.4, it returns the exit code 254: # ip a s dev eth0 | grep 172 inet 172.16.1.1/24 brd 172.16.1.255 scope global eth0 # ip addr add 172.16.1.1/24 dev eth0 ; echo $? RTNETLINK answers: File exists 254 This of course causes ifup to return an error in this quite common case... Are there more changes like this / did the error reporting changed in another places too? Is this just a bug in some patch or is the new behaviour intended to be used in all further iproute2 versions? -- 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=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c1
Marcus Schaefer
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c3
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c4
Li Bin
From the patch's comment, I thought it's a new behaviour. it don't exit just wanna continue after errors in the batch mode, so that it could process the next one. If it's okay, I'll close this bug. Thanks!
commit 1db61e022d5f4318b9b236fef48be48a65e00878
Author: Michele Petrazzo - Unipex
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c5
--- Comment #5 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c6
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c7
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c8
--- Comment #8 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c9
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c10
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c11
--- Comment #11 from Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c13
Li Bin
i would proceed with an upstream ready solution, so that we do not deviate in the return codes. but yes, +1
I subscribe the mailinglist several times but no response. Do you talk this issue with upstream. -- 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=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c14
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c15
--- Comment #15 from Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c16
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c17
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c18
--- Comment #18 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c19
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=681952
https://bugzilla.novell.com/show_bug.cgi?id=681952#c20
Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com