question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG][2.2.54.2] waagent-network-setup.service failed

See original GitHub issue

Describe 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

  1. Start a RHEL-8 VM with WALinuxAgent installed. firewalld service is disabled.
  2. Waiting for WALinuxAgent-2.2.54.2 downloaded and started.
  3. 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:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
lagalbracommented, Jul 23, 2021

@larohra FYI on the above, as I believe @yuxisun1217 meant to tag you and not me 😃

0reactions
larohracommented, Jul 26, 2021

@yuxisun1217 thanks for the reply!

Usually we only rebase the package when MSFT open a request BZ for us.

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found