RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1276591 - iproute: 'ip addr flush' failed to send flush request: Cannot assign requested address
Summary: iproute: 'ip addr flush' failed to send flush request: Cannot assign requeste...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iproute
Version: 6.8
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 6.8
Assignee: Phil Sutter
QA Contact: Jaroslav Aster
URL:
Whiteboard:
Depends On:
Blocks: 1291825
TreeView+ depends on / blocked
 
Reported: 2015-10-30 08:59 UTC by Jianwen Ji
Modified: 2018-08-20 06:22 UTC (History)
6 users (show)

Fixed In Version: iproute-2.6.32-48.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1291825 (view as bug list)
Environment:
Last Closed: 2016-05-11 00:20:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0895 0 normal SHIPPED_LIVE iproute bug fix and enhancement update 2016-05-10 22:50:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.