Bug 1276591

Summary: iproute: 'ip addr flush' failed to send flush request: Cannot assign requested address
Product: Red Hat Enterprise Linux 6 Reporter: Jianwen Ji <jiji>
Component: iprouteAssignee: Phil Sutter <psutter>
Status: CLOSED ERRATA QA Contact: Jaroslav Aster <jaster>
Severity: medium Docs Contact:
Priority: high    
Version: 6.8CC: jaster, jishi, mmarusic, network-qe, vinayaksharma082, zhchen
Target Milestone: rc   
Target Release: 6.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: iproute-2.6.32-48.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1291825 (view as bug list) Environment:
Last Closed: 2016-05-11 00:20:19 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:
Bug Depends On:    
Bug Blocks: 1291825    

Comment 1 Phil Sutter 2015-11-02 15:30:50 UTC
I could reproduce the issue using iproute-2.6.32-45.el6 on my local RHEL6 VM.

Comment 3 Phil Sutter 2015-11-03 11:27:14 UTC
This bug exists upstream as well, so this should affect also RHEL7.

Comment 4 Phil Sutter 2015-11-10 13:58:45 UTC
Patches fixing this issue (and related ones) sent upstream: https://www.mail-archive.com/netdev@vger.kernel.org/msg86280.html

Comment 9 errata-xmlrpc 2016-05-11 00:20:19 UTC
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://rhn.redhat.com/errata/RHBA-2016-0895.html

Comment 10 Vinayak Sharma 2018-08-16 18:14:11 UTC
Can i get more information regarding this bug?

Comment 11 Jianwen Ji 2018-08-17 10:18:11 UTC
(In reply to Vinayak Sharma from comment #10)
> Can i get more information regarding this bug?

What kind of info do you want to get?

Comment 12 Vinayak Sharma 2018-08-17 11:16:23 UTC
(In reply to Jianwen Ji from comment #11)
> (In reply to Vinayak Sharma from comment #10)
> > Can i get more information regarding this bug?
> 
> What kind of info do you want to get?

Hi Jianwen ji,
Thanks for replying

Actually it is not clear from the comments or bug details on this page that how "ip addr flush" is failing exactly . Is it giving some non zero exit code and failing or is it exiting with exit code 0 but is not doing what it is supposed to do ? 

I am sorry if i am missing something as i am new to bugzilla and RHEL also .

Thanks

Comment 13 Vinayak Sharma 2018-08-17 11:20:45 UTC
I also need steps to reproduce this issue if possible

Comment 14 Jianwen Ji 2018-08-20 02:10:21 UTC
(In reply to Vinayak Sharma from comment #13)
> I also need steps to reproduce this issue if possible

I can't recall all the information
'ip addr flush' should exit with non zero code and gave the following error message:
    Failed to send flush request: Cannot assign requested address

Here is one simple bash reproducer for reference:

#!/bin/bash
ROW=200
NUM=200
IFA=${1:-"eth6"}
set -o pipefail
ip addr flush dev $IFA
for i in `seq $ROW`;do
        for j in `seq $NUM`;do
                ip a a 172.111.$i.$j/16 dev $IFA
        done
done
ip a a 172.111.253.253/16 dev $IFA
ip link set dev $IFA up
ip addr flush dev $IFA

Hope this could help you.

Comment 15 Vinayak Sharma 2018-08-20 06:22:23 UTC
(In reply to Jianwen Ji from comment #14)
> (In reply to Vinayak Sharma from comment #13)
> > I also need steps to reproduce this issue if possible
> 
> I can't recall all the information
> 'ip addr flush' should exit with non zero code and gave the following error
> message:
>     Failed to send flush request: Cannot assign requested address
> 
> Here is one simple bash reproducer for reference:
> 
> #!/bin/bash
> ROW=200
> NUM=200
> IFA=${1:-"eth6"}
> set -o pipefail
> ip addr flush dev $IFA
> for i in `seq $ROW`;do
>         for j in `seq $NUM`;do
>                 ip a a 172.111.$i.$j/16 dev $IFA
>         done
> done
> ip a a 172.111.253.253/16 dev $IFA
> ip link set dev $IFA up
> ip addr flush dev $IFA
> 
> Hope this could help you.

Thanks for the response ,

Yes your response is helpful .

We have executed the shell script provided by you to reproduce this issue .
the command "ip addr flush dev $IFA"
gave error message "Failed to send flush request: Cannot assign requested address"
However output of "ip addr show" displayed that ip address of interface "$IFA" was flushed actually.

That means this bug is just an issue of wrongly displaying error messege when command is actually doing its work as expected in background.

Thank you so much

Comment 16 Vinayak Sharma 2018-08-20 06:22:32 UTC
(In reply to Jianwen Ji from comment #14)
> (In reply to Vinayak Sharma from comment #13)
> > I also need steps to reproduce this issue if possible
> 
> I can't recall all the information
> 'ip addr flush' should exit with non zero code and gave the following error
> message:
>     Failed to send flush request: Cannot assign requested address
> 
> Here is one simple bash reproducer for reference:
> 
> #!/bin/bash
> ROW=200
> NUM=200
> IFA=${1:-"eth6"}
> set -o pipefail
> ip addr flush dev $IFA
> for i in `seq $ROW`;do
>         for j in `seq $NUM`;do
>                 ip a a 172.111.$i.$j/16 dev $IFA
>         done
> done
> ip a a 172.111.253.253/16 dev $IFA
> ip link set dev $IFA up
> ip addr flush dev $IFA
> 
> Hope this could help you.

Thanks for the response ,

Yes your response is helpful .

We have executed the shell script provided by you to reproduce this issue .
the command "ip addr flush dev $IFA"
gave error message "Failed to send flush request: Cannot assign requested address"
However output of "ip addr show" displayed that ip address of interface "$IFA" was flushed actually.

That means this bug is just an issue of wrongly displaying error messege when command is actually doing its work as expected in background.

Thank you so much