Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running netperf_test.py in Rhel8.3, the IP address removal deletes the default route #2103

Open
buttermilkb opened this issue Jul 13, 2021 · 0 comments

Comments

@buttermilkb
Copy link

buttermilkb commented Jul 13, 2021

When running netperf_test.py in Rhel8.3, in line 195 of the tearDown() function below default route gets deleted and crashes the machine
self.networkinterface.remove_ipaddr(self.ipaddr, self.netmask)

Before running netperf_test.py (pulled directly from the current avocado-misc-tests) route -n will produce this output:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 8.x.x.x 0.0.0.0 UG 0 0 0 env32 8.x.x.x 0.0.0.0 255.255.240.0 U 0 0 0 env32

After running the output is:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface

However, commenting out the IP address removal, the routes will remain the same. The route gets deleted only after the IP address gets removed, but it does not happen immediately after the line is executed. Running netperfs on SuSE while keeping the IP address removal does not change or delete the routes, the issue occurs specifically in Rhel.

The commit that adds the line (2f6f946) is a large commit that looks like it is changing from a configure_network module to NetworkInterface module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant