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

[BUG]: ping test from ./run-docker.sh --diagnostics is bogus in secure networks #4961

Open
2 of 4 tasks
xrow opened this issue Aug 27, 2024 · 4 comments
Open
2 of 4 tasks

Comments

@xrow
Copy link

xrow commented Aug 27, 2024

What happened?

This test times out because ICMP Packages are blocked in a AKS (I have a private AKS setup). Is it smarter to test via curl and https?

*** PingTest ***
Attempt to Ping: www.bing.com with timeout 10000
Address: 0.0.0.0
Status: TimedOut
Round trip time: 0
Error reported in diagnostic logs. Please examine the log for more details.
- /app-root/azp-logs/Agent_20240827-162650-utc.log
Unsuccessful status response from www.bing.com. Verify internet connection is working
*** PingTest Failed ***

Versions

agent v3.234.0

bash-5.1# uname -a
Linux imos-azure-devops-agent-linux-dhhrh-85ncp 5.15.0-1070-azure #79-Ubuntu SMP Mon Jul 29 20:31:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
bash-5.1# cat /etc/re
redhat-release resolv.conf
bash-5.1# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.4 (Plow)

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

bash-5.1# ./run-docker.sh --diagnostics
Starting Agent listener with startup type: service - to prevent running of an agent in a separate process after self-update

  ___                      ______ _            _ _
 / _ \                     | ___ (_)          | (_)
/ /_\ \_____   _ _ __ ___  | |_/ /_ _ __   ___| |_ _ __   ___  ___
|  _  |_  / | | | '__/ _ \ |  __/| | '_ \ / _ \ | | '_ \ / _ \/ __|
| | | |/ /| |_| | | |  __/ | |   | | |_) |  __/ | | | | |  __/\__ \
\_| |_/___|\__,_|_|  \___| \_|   |_| .__/ \___|_|_|_| |_|\___||___/
                                   | |
        agent v3.234.0             |_|          (commit 21ca259)

Running Diagnostics Only...

----- Diagnostics for Networking -----
*** DnsTest ***
GetHostEntry: www.bing.com returns:
    204.79.197.200
    13.107.21.200
    2a02:26f0:480:36::212:4008
    2a02:26f0:480:36::212:4016
*** DnsTest Succeeded ***

*** PingTest ***
Attempt to Ping: www.bing.com with timeout 10000
Address: 0.0.0.0
Status: TimedOut
Round trip time: 0
Error reported in diagnostic logs. Please examine the log for more details.
    - /app-root/azp-logs/Agent_20240827-163518-utc.log
Unsuccessful status response from www.bing.com.  Verify internet connection is working
*** PingTest Failed ***

*** MtuInfo ***
IP interface information for imos-azure-devops-agent-linux-dhhrh-85ncp.imos-azure-devops-agent-linux-dhhrh-85ncp

lo
  IPv4 MTU ............................... : 65536
  IPv6 MTU ............................... : 65536
docker0
  IPv4 MTU ............................... : 1500
eth0
  IPv4 MTU ............................... : 1500
  IPv6 MTU ............................... : 1500
*** MtuInfo Completed ***

Networking 1 or more diagnostics tests FAILED!


----- Diagnostics for Disk Health -----
*** DiskInfo ***
Agent running on Drive /
Drive /
  Drive type: Fixed
  Volume label: /
  File system: overlay
  Available space to current user:    105,481,744 KB
  Total available space:              105,498,128 KB
  Total size of drive:                129,886,128 KB
Drive /proc
  Drive type: Ram
  Volume label: /proc
  File system: proc
  Available space to current user:              0 KB
  Total available space:                        0 KB
  Total size of drive:                          0 KB
Drive /dev
  Drive type: Ram
  Volume label: /dev
  File system: tmpfs
  Available space to current user:         65,536 KB
  Total available space:                   65,536 KB
  Total size of drive:                     65,536 KB
Drive /dev/pts
  Drive type: Ram
  Volume label: /dev/pts
  File system: devpts
  Available space to current user:              0 KB
  Total available space:                        0 KB
  Total size of drive:                          0 KB
Drive /dev/mqueue
  Drive type: Ram
  Volume label: /dev/mqueue
  File system: mqueue
  Available space to current user:              0 KB
  Total available space:                        0 KB
  Total size of drive:                          0 KB
Drive /sys
  Drive type: Ram
  Volume label: /sys
  File system: sysfs
  Available space to current user:              0 KB
  Total available space:                        0 KB
  Total size of drive:                          0 KB
Drive /sys/fs/cgroup
  Drive type: Ram
  Volume label: /sys/fs/cgroup
  File system: cgroup2fs
  Available space to current user:              0 KB
  Total available space:                        0 KB
  Total size of drive:                          0 KB
Drive /app-root/azp-logs
  Drive type: Fixed
  Volume label: /app-root/azp-logs
  File system: lofs
  Available space to current user:    105,481,740 KB
  Total available space:              105,498,124 KB
  Total size of drive:                129,886,128 KB
Drive /app-root/azp-work
  Drive type: Fixed
  Volume label: /app-root/azp-work
  File system: lofs
  Available space to current user:    105,481,740 KB
  Total available space:              105,498,124 KB
  Total size of drive:                129,886,128 KB
Drive /etc/hosts
  Drive type: Fixed
  Drive is not Ready
Drive /dev/termination-log
  Drive type: Fixed
  Drive is not Ready
Drive /etc/hostname
  Drive type: Fixed
  Drive is not Ready
Drive /etc/resolv.conf
  Drive type: Fixed
  Drive is not Ready
Drive /dev/shm
  Drive type: Ram
  Volume label: /dev/shm
  File system: tmpfs
  Available space to current user:         65,528 KB
  Total available space:                   65,528 KB
  Total size of drive:                     65,536 KB
Drive /var/lib/containerd
  Drive type: Fixed
  Volume label: /var/lib/containerd
  File system: lofs
  Available space to current user:    105,481,740 KB
  Total available space:              105,498,124 KB
  Total size of drive:                129,886,128 KB
Drive /run/containerd/containerd.sock
  Drive type: Ram
  Drive is not Ready
Drive /app-root/.local/tmp
  Drive type: Fixed
  Volume label: /app-root/.local/tmp
  File system: lofs
  Available space to current user:    105,481,740 KB
  Total available space:              105,498,124 KB
  Total size of drive:                129,886,128 KB
Drive /var/lib/containers
  Drive type: Fixed
  Volume label: /var/lib/containers
  File system: lofs
  Available space to current user:    105,481,736 KB
  Total available space:              105,498,120 KB
  Total size of drive:                129,886,128 KB
Drive /run/secrets/kubernetes.io/serviceaccount
  Drive type: Ram
  Volume label: /run/secrets/kubernetes.io/serviceaccount
  File system: tmpfs
  Available space to current user:     28,363,516 KB
  Total available space:               28,363,516 KB
  Total size of drive:                 28,363,528 KB
Drive /home/podman/.local/share/containers
  Drive type: Fixed
  Volume label: /home/podman/.local/share/containers
  File system: lofs
  Available space to current user:    105,481,736 KB
  Total available space:              105,498,120 KB
  Total size of drive:                129,886,128 KB
*** DiskInfo Completed ***

*** FolderPermissionInfo ***
Checking for Read & Write Permissions
/app-root/azp-agent                                                         True
/app-root/azp-agent/externals                                               True
/app-root/azp-agent/bin                                                     True
/app-root/azp-agent/run.sh                                                  True
/app-root/azp-agent/start.sh                                                True
/app-root/azp-agent/env.sh                                                  True
/app-root/azp-agent/license.html                                            True
/app-root/azp-agent/config.sh                                               True
/app-root/azp-agent/run-docker.sh                                           True
/app-root/azp-agent/.env                                                    True
/app-root/azp-agent/.credentials_rsaparams                                  True
/app-root/azp-agent/.credentials                                            True
/app-root/azp-agent/svc.sh                                                  True
/app-root/azp-agent/.agent                                                  True
/app-root/azp-agent/.path                                                   True
*** FolderPermissionInfo Completed ***



Agent exit code 0
bash-5.1# ping www.bing.com
PING e86303.dscx.akamaiedge.net (184.86.251.22) 56(84) bytes of data.
^C
--- e86303.dscx.akamaiedge.net ping statistics ---
20 packets transmitted, 0 received, 100% packet loss, time 19447ms

bash-5.1#
@caineblood
Copy link

The above comment asking you to download a file is malware to steal your account; do not under any circumstances download or run it. The post needs to be removed. If you have attempted to run it please have your system cleaned and your account secured immediately.

@xrow
Copy link
Author

xrow commented Aug 27, 2024

@YeGop0218 Nice try though. I hope github will fix it soon.

@xrow
Copy link
Author

xrow commented Aug 27, 2024

@microsoft Please act fast on the virus.

@DenisNikulin5
Copy link
Contributor

Hi @xrow thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

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

No branches or pull requests

4 participants
@xrow @DenisNikulin5 @caineblood and others