Deprovision RHEL 7.7 using 2.2.45 loops with ERROR Daemon /proc/net/route contains no routes
- Dominant language
- Python
- Stars
- 581
- Forks
- 397
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 9
Description
This issue appears to be fixed in bug #1638 but only for FreeBSD, while deprovisioning a new RHEL 7.7 with agent 2.2.44 and 2.245 we get a similar issue.
We assign a static IP address which works fine and we can connect externally to update etc. Once complete we remove the static IP address and set the VM to DHCP as per instructions. We also restarted eth0 at this point. Then follow the rest of the steps and once we are done we run the “waagent -force -deprovision”. This runs but then just keeps looping this message “ERROR Daemon /proc/net/route contains no routes”
Basically by removing the static IP and resetting the adapter, it removes the routes in /proc/net/route but as we don't have a DHCP server it does not pick up any IP setting.
Work Around
We are able to deprovision if we either add routes to /proc/net/route or don't reset the adapter so it maintains it's settings.
Contributor guide
Research direction
Start at the `waagent -force -deprovision` entry point and reproduce the RHEL 7.7 case after removing the static IP and resetting eth0 to DHCP without a DHCP server. Inspect how the deprovision flow handles an empty `/proc/net/route`; done means deprovisioning no longer loops, while preserving the documented workaround behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, linux, python
- Domain
- cloud, networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100