[BUG][2.2.54.2] waagent-network-setup.service failed
See original GitHub issueDescribe the bug: A clear and concise description of what the bug is. waagent-network-setup.service failed because “can’t open file ‘/var/lib/waagent/WALinuxAgent-2.2.54.2/bin/WALinuxAgent-2.2.54.2-py2.7.egg’: [Errno 2] No such file or directory”
2021-04-13T08:58:20.898332Z INFO ExtHandler ExtHandler Distro: redhat-8.5; OSUtil: RedhatOSUtil; AgentService: waagent; Python: 3.6.8; systemd: True; LISDrivers: Absent; logrotate: logrotate 3.14.0;
2021-04-13T08:58:20.903325Z INFO ExtHandler ExtHandler WALinuxAgent-2.2.54.2 running as process 5342
2021-04-13T08:58:20.906831Z INFO ExtHandler ExtHandler Cgroup monitoring is not supported on ['redhat', '8.5', 'Ootpa', 'Red Hat Enterprise Linux']
2021-04-13T08:58:20.907598Z INFO ExtHandler ExtHandler Starting setup for Persistent firewall rules
2021-04-13T08:58:21.782166Z INFO ExtHandler ExtHandler Firewalld service not running/unavailable, trying to set up waagent-network-setup.service
2021-04-13T08:58:21.793557Z INFO ExtHandler ExtHandler Service: waagent-network-setup.service already enabled. No change needed.
2021-04-13T08:58:21.811422Z INFO ExtHandler ExtHandler Logs from the waagent-network-setup.service since system boot:
-- Logs begin at Tue 2021-04-13 16:56:51 CST, end at Tue 2021-04-13 16:58:21 CST. --
Apr 13 16:57:11 localhost.localdomain python3.6[555]: /usr/bin/python3.6: can't open file '/var/lib/waagent/WALinuxAgent-2.2.54.2/bin/WALinuxAgent-2.2.54.2-py2.7.egg': [Errno 2] No such file or directory
Apr 13 16:57:11 localhost.localdomain systemd[1]: waagent-network-setup.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 13 16:57:11 localhost.localdomain systemd[1]: waagent-network-setup.service: Failed with result 'exit-code'.
Apr 13 16:57:11 localhost.localdomain systemd[1]: Failed to start Setup network rules for WALinuxAgent.
Note: Please add some context which would help us understand the problem better
- Start a RHEL-8 VM with WALinuxAgent installed. firewalld service is disabled.
- Waiting for WALinuxAgent-2.2.54.2 downloaded and started.
- Check the waagent-network-setup.service
# systemctl status waagent-network-setup
Warning: The unit file, source configuration file or drop-ins of waagent-network-setup.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● waagent-network-setup.service - Setup network rules for WALinuxAgent
Loaded: loaded (/usr/lib/systemd/system/waagent-network-setup.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/waagent-network-setup.service.d
└─10-environment.conf
Active: failed (Result: exit-code) since Tue 2021-04-13 16:57:11 CST; 31min ago
Main PID: 555 (code=exited, status=2)
Apr 13 16:57:11 localhost.localdomain python3.6[555]: /usr/bin/python3.6: can't open file '/var/lib/waagent/WALinuxAgent-2.2.54.2/bin/WALinuxAgent-2.2.54.2-py2.7.egg': [Errno 2] No such file or directory
Apr 13 16:57:11 localhost.localdomain systemd[1]: waagent-network-setup.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 13 16:57:11 localhost.localdomain systemd[1]: waagent-network-setup.service: Failed with result 'exit-code'.
Apr 13 16:57:11 localhost.localdomain systemd[1]: Failed to start Setup network rules for WALinuxAgent.
Distro and WALinuxAgent details (please complete the following information):
- Distro and Version: RHEL-8.5
- WALinuxAgent version WALinuxAgent-2.2.49.2 running on redhat 8.5 Python: 3.6.8 Goal state agent: 2.2.54.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@larohra FYI on the above, as I believe @yuxisun1217 meant to tag you and not me 😃
@yuxisun1217 thanks for the reply!
Do you know the process for this by any chance? We can proactively start reaching out to you whenever we have a new stable version is available for the repos.
Thanks!