Azure DevOps hosted-agent PyPI connectivity failures potentially correlated with 23-Nov-2026 service event

Muthusamy, Elango 0 Reputation points
2026-11-23T13:10:47.0833333+00:00

We are experiencing intermittent outbound TCP/TLS failures from Microsoft-hosted Azure DevOps ubuntu-latest agents to:

We would like to add further diagnostic evidence to this case and request correlation with today's Azure DevOps - Recent Events investigation, which was opened on 23-Nov-2026 at approximately 05:02 UTC.

  • pypi.org
  • files.pythonhosted.org

The issue is affecting multiple independent pipelines and has been observed with both uv and pip.

Our diagnostics on 23-Nov-2026 between approximately 12:23 and 12:29 UTC reproduced the problem independently of our application and Python package manager:

  • General Internet connectivity from the hosted agent was successful.
  • Observed hosted-agent public egress IP: 40.81.64.3.
  • DNS resolution for pypi.org and files.pythonhosted.org succeeded.
  • Direct HTTPS to pypi.org/simple/ timed out before TCP/TLS establishment.
  • Direct HTTPS to files.pythonhosted.org also timed out before TCP/TLS establishment.
  • Ten repeated PythonHost connectivity attempts produced severe intermittent failures.
  • The exact same opentelemetry-api==1.41.1 wheel was downloaded five times directly from the hosted agent: 4 downloads succeeded with HTTP 200 in approximately 79-109 ms, while 1 identical request timed out after 20 seconds before connection establishment.
  • Successful wheel requests reached 167.82.56.223.
  • Within python:3.13-slim, files.pythonhosted.org resolved successfully to 167.82.60.223 and 167.82.56.223.
  • HTTPS from the Docker container subsequently failed with a TLS handshake timeout.
  • Direct download of the identical wheel from Docker failed with: SSL: UNEXPECTED_EOF_WHILE_READING.
  • Docker Hub access and pulling python:3.13-slim succeeded normally.

This behavior is also occurring in another pipeline using pip, while the CT2 backend pipeline uses uv. Different packages fail between attempts, which further indicates that the individual Python packages are not the root cause.

Could Microsoft please:

  1. Confirm whether these failures correlate with today's Azure DevOps incident/investigation.
  2. Check Microsoft-hosted agent/network telemetry for the supplied 12:23-12:29 UTC window.
  3. Investigate outbound TCP 443 connectivity toward pypi.org / files.pythonhosted.org and the associated Fastly CDN endpoints.
  4. Check for TCP establishment failures, TLS resets/handshake failures, SNAT/egress issues, or regional hosted-agent degradation.
  5. Confirm whether any related Azure DevOps hosted-agent networking issue is currently known internally but not reflected in public Pipelines status.
  6. Advise whether moving these release workloads to Managed DevOps Pools with controlled VNet/NAT egress is recommended.

We note that Microsoft's currently available public Pipelines health information reports the service as healthy, so we are specifically requesting correlation between our hosted-agent outbound networking symptoms and today's separately reported Azure DevOps event. [status.dev.azure.com], [status.dev.azure.com]

The supporting pipeline diagnostic logs can be provided with the case.We are experiencing intermittent outbound TCP/TLS failures from Microsoft-hosted Azure DevOps ubuntu-latest agents to:

  • pypi.org
  • files.pythonhosted.org

The issue is affecting multiple independent pipelines and has been observed with both uv and pip.

Our diagnostics on 23-Nov-2026 between approximately 12:23 and 12:29 UTC reproduced the problem independently of our application and Python package manager:

  • General Internet connectivity from the hosted agent was successful.
  • Observed hosted-agent public egress IP: 40.81.64.3.
  • DNS resolution for pypi.org and files.pythonhosted.org succeeded.
  • Direct HTTPS to pypi.org/simple/ timed out before TCP/TLS establishment.
  • Direct HTTPS to files.pythonhosted.org also timed out before TCP/TLS establishment.
  • Ten repeated PythonHost connectivity attempts produced severe intermittent failures.
  • The exact same opentelemetry-api==1.41.1 wheel was downloaded five times directly from the hosted agent: 4 downloads succeeded with HTTP 200 in approximately 79-109 ms, while 1 identical request timed out after 20 seconds before connection establishment.
  • Successful wheel requests reached 167.82.56.223.
  • Within python:3.13-slim, files.pythonhosted.org resolved successfully to 167.82.60.223 and 167.82.56.223.
  • HTTPS from the Docker container subsequently failed with a TLS handshake timeout.
  • Direct download of the identical wheel from Docker failed with: SSL: UNEXPECTED_EOF_WHILE_READING.
  • Docker Hub access and pulling python:3.13-slim succeeded normally.

This behavior is also occurring in another pipeline using pip, while the CT2 backend pipeline uses uv. Different packages fail between attempts, which further indicates that the individual Python packages are not the root cause.

Could Microsoft please:

  1. Confirm whether these failures correlate with today's Azure DevOps incident/investigation.
  2. Check Microsoft-hosted agent/network telemetry for the supplied 12:23-12:29 UTC window.
  3. Investigate outbound TCP 443 connectivity toward pypi.org / files.pythonhosted.org and the associated Fastly CDN endpoints.
  4. Check for TCP establishment failures, TLS resets/handshake failures, SNAT/egress issues, or regional hosted-agent degradation.
  5. Confirm whether any related Azure DevOps hosted-agent networking issue is currently known internally but not reflected in public Pipelines status.
  6. Advise whether moving these release workloads to Managed DevOps Pools with controlled VNet/NAT egress is recommended.

We note that Microsoft's currently available public Pipelines health information reports the service as healthy, so we are specifically requesting correlation between our hosted-agent outbound networking symptoms and today's separately reported Azure DevOps event. he supporting pipeline diagnostic logs can be provided with the case.

12:23 UTC - hosted agent diagnostics started

12:24 UTC - pypi.org TCP timeout

12:24 UTC - files.pythonhosted.org TCP timeout

12:24-12:27 UTC - repeated PythonHost failures

12:27 UTC - identical wheel intermittent failure

12:27-12:28 UTC - Docker TLS handshake timeout

12:28-12:29 UTC - Docker wheel SSL EOF

Azure DevOps

3 answers

Sort by: Newest
  1. nishant bhardwaj 0 Reputation points
    2026-11-25T06:15:45.4533333+00:00

    We hit the same issue on Microsoft-hosted ubuntu-latest agents from 20 Nov: pip install inside docker build timed out against pypi.org / files.pythonhosted.org (Read timed out and SSL: UNEXPECTED_EOF_WHILE_READING). Sharing how we narrowed it down, what we think is happening, and the workaround that unblocked us.

    How we narrowed it down

    1. Build logs: pip retried 5x per request and gave up with No matching distribution found. That was a symptom of the timeouts, not a missing package.
    2. General connectivity: in the same runs, Docker Hub pulls and Debian apt-get (300+ MB) worked fine. So the agent had internet; only PyPI was failing.
    3. Packages: we downloaded all ~100 of our requirements (Python 3.11 / Linux wheels) from a different network without errors. So the packages and requirements were fine.
    4. Diagnostic step on the agent: curl to pypi.org from the agent itself failed (TLS connect error ... unexpected eof, 60s), while a curlimages/curl container on the same agent got HTTP 200 in ~0.3s. MTU was 1500 on all interfaces, which ruled out Docker networking and MTU.
    5. Ruled out: base image (slim vs full), pip vs pip3, Dockerfile flags and pipeline config. The same failure happened in all of them.
    6. The clue: the failing clients (agent curl, python:3.x-slim) use OpenSSL 3.5, which offers post-quantum hybrid key exchange (X25519MLKEM768) by default. The client that worked used an older OpenSSL without it.
    7. A/B test in one Docker build (same agent, same image, OpenSSL 3.5.7, same package six):
      • Default TLS: timed out (FAILED)
      • Classic key exchange only: installed in under 1 second (OK)
      Our full build (~100 packages) then passed with the change.

    Probable cause (our inference, not confirmed by Microsoft or PyPI)

    • A lossy or unstable network path between Azure hosted agents and some of PyPI's Fastly CDN edges. This fits the intermittent failures and the TCP timeouts others here report, and Microsoft's event https://status.dev.azure.com/_event/912152819 reportedly points at the PyPI CDN.
    • The newer post-quantum handshake makes it worse. Its first message (ClientHello) needs two network packets instead of one, so on a path that drops packets it is much more likely to stall. Some network devices also mishandle these larger handshakes. Classic key exchange fits in one packet, which would explain why it connected immediately.

    Workaround (add before pip install)

    
    RUN printf '%s\n' \
    
          'openssl_conf = openssl_init' \
    
          '[openssl_init]' \
    
          'ssl_conf = ssl_sect' \
    
          '[ssl_sect]' \
    
          'system_default = system_default_sect' \
    
          '[system_default_sect]' \
    
          'Groups = X25519:P-256:P-384' \
    
          > /etc/ssl/openssl-classic.cnf
    
    RUN OPENSSL_CONF=/etc/ssl/openssl-classic.cnf pip install --no-cache-dir --retries 10 --timeout 60 -r requirements.txt
    
    

    (Use ENV OPENSSL_CONF=... instead if you also want it for runtime HTTPS calls.)

    Is it safe? Yes. Connections are still fully encrypted and certificates are still verified. X25519 / P-256 / P-384 are the standard key exchanges most HTTPS traffic used until very recently. You only give up post-quantum protection against future "record now, decrypt later" attacks, which doesn't matter for public package downloads.

    Caveats

    • This can't fix failures that happen before the TLS handshake (pure TCP timeouts), so keep the pip retries.
    • We ran one A/B test during an intermittent issue, so this is strong evidence, not proof. Running ~20 attempts each way across a few runs would confirm whether the handshake really matters.
    • Tested with pip only. uv may use a different TLS stack and ignore OPENSSL_CONF.
    • Treat it as a temporary workaround until Microsoft resolves the event.

    Was this answer helpful?

    0 comments No comments

  2. Muthusamy, Elango 0 Reputation points
    2026-11-23T13:19:45.23+00:00

    Confirm which hosted image the pipeline is using.

    • If you use ubuntu-latest, note that it currently maps to ubuntu-24.04.
    • If you need to rule out an image-related change, pin the job explicitly to ubuntu-24.04 or ubuntu-22.04.
    • Do not use ubuntu-20.04; it is no longer available on Microsoft-hosted agents.

    Its working fine with ubuntu-24.04

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. AI answer

    2026-11-23T13:11:58.1266667+00:00

    The public data does not establish that these PyPI connection failures were part of the 23-Nov-2026 Azure DevOps event, so open an Azure DevOps support request with the run IDs and UTC timeline to have Microsoft correlate the affected hosted-agent stamps and network telemetry.

    What can be concluded publicly

    • The Azure DevOps recent-events feed recorded “Slow commands in CUS region”, initially communicated at 05:02:56 UTC on 23-Nov-2026. It does not publicly attribute that event to Pipelines hosted-agent egress, PyPI, Fastly, TLS, or SNAT. ^1^
    • The Pipelines health response available for comparison said that Pipelines was healthy, but its reported update time was 17-Nov-2026, so it cannot rule in or rule out a narrower degradation on 23 November. ^2^
    • Python’s public infrastructure status showed files.pythonhosted.org operational and no reported November 2026 incident. That makes a publicly declared PyPI-wide outage less likely, but does not exclude a path-specific problem involving particular source networks or CDN edges. ^3^
    • Another report from 20-Nov-2026 describes Microsoft-hosted Ubuntu agents failing to reach Python package endpoints. It has no accepted or recommended answer and therefore corroborates the symptom only—not its cause or incident correlation. ^4^

    Your same-URL success/failure results, failures outside pip and uv, and reproduction inside and outside the container are already the useful discriminators. They should not be replaced with more package-level troubleshooting.

    Escalation payload

    Use Azure DevOps → Get support and create a technical support request; Microsoft directs blocked customers to Support rather than Q&A for service-side investigation. ^5^

    Include:

    1. Correlation request
      • Incident: “Slow commands in CUS region”
      • Initial communication: 2026-11-23 05:02:56 UTC
      • Ask whether its impact scope included hosted-agent provisioning stamps, Azure networking, or outbound HTTPS.
    2. Affected executions
      • Organization geography and Azure DevOps organization region.
      • Pipeline names, run IDs, job IDs, and exact ubuntu-latest image/version from each log.
      • UTC interval: 12:23–12:29 on 23-Nov-2026.
      • Whether failing runs were assigned to different agents.
    3. Network evidence
      • Observed egress address: [IP Address].
      • Destinations, resolved addresses, complete URLs, and ports.
      • Successful and failed timestamps with duration and error phase: TCP connect, TLS handshake, or established HTTP.
      • Successful CDN address [IP Address] and resolved addresses [IP Address]/[IP Address].
      • The identical-wheel comparison and Docker TLS/EOF errors.
    4. Explicit telemetry questions
      • TCP SYN/SYN-ACK failures or resets.
      • TLS handshake termination.
      • SNAT allocation or port exhaustion.
      • Regional/stamp-specific hosted-agent degradation.
      • Routing or peering degradation toward the Fastly endpoints.

    Attach the complete logs rather than only excerpts. For each completed run, use run results → … → Download logs. For any new reproduction, select Run pipeline → Enable system diagnostics first; Microsoft documents custom trace capture and artifact upload for support investigations. Trace files can contain credentials or secrets, so provide them through the private support case, not a public Q&A post. ^6^

    Microsoft-hosted agents are fresh VMs, may run in any region mapped to the organization’s geography, and use changing Azure regional ranges. Consequently, the observed public address alone does not identify the exact agent stamp or prove a particular regional path; Microsoft must correlate it with run/job metadata. ^7^

    Managed DevOps Pools recommendation

    Move release workloads to Managed DevOps Pools when deterministic egress, allowlisting, or customer-visible network telemetry is an operational requirement—not as proof that Microsoft-hosted-agent networking caused this event. Microsoft specifically recommends Managed DevOps Pools when allowing the entire hosted-agent geography is unsuitable. ^8^

    Two supported designs are relevant:

    • Isolated network with Microsoft-provided static IPs: In the pool, open Settings → Networking, choose Microsoft Provided IPs under Route through public IP addresses, and select the static-IP count. The service creates and manages a NAT gateway; changing the count later can change the assigned addresses.
    • Existing VNet: Create a dedicated subnet, delegate it to Microsoft.DevOpsInfrastructure/pools, grant the DevOpsInfrastructure principal the required Reader and Network Contributor access, and associate it with the pool. The pool and VNet must be in the same region, and [IP Address]/16 must be avoided because Managed DevOps Pools uses it internally. ^9^

    A controlled pool improves egress stability and observability and permits reproducible source-IP testing. It cannot guarantee that a third-party CDN path will never experience transient failures, so retain bounded retries for package downloads as resilience rather than as the incident diagnosis.


    References

    1. Azure DevOps - Recent Events
    2. https://status.dev.azure.com/_apis/status/health?services=Pipelines
    3. Python Infrastructure Status
    4. Microsoft hosted Agent Ubuntu VMs – Python Dependency Installation Failure - Microsoft Q&A
    5. Get support and provide feedback
    6. Review logs to diagnose pipeline issues
    7. Microsoft-hosted agents
    8. Allowed IP addresses and domain URLs
    9. Configure Managed DevOps Pools networking
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.