Pin production jobs to ubuntu-24.04; the exact ubuntu-26.04 PyPI failure pattern has a matching public runner-images report, while the India-region incident was reported fully mitigated on November 23, 2026.^1^^2^
pool:
vmImage: ubuntu-24.04
steps:
- checkout: self
- bash: |
python --version
python -m pip --version
python -m pip install -r requirements.txt
displayName: Install Python dependencies
Ubuntu 24.04 is a supported Microsoft-hosted image and also backs the current ubuntu-latest label. Explicitly pinning ubuntu-24.04 avoids a future label change and meets the Ubuntu 24.04-or-later requirement.^3^
What can currently be concluded
- This is not adequately addressed by increasing pip retries or timeouts. Your 100-retry result already rules out that mitigation for the consistent 26.04 failure.
- There is a public report matching the important discriminator: PyPI fails from Azure DevOps
ubuntu-26.04, including SSL unexpected-EOF/read-timeout symptoms, while the same pipeline succeeds onubuntu-24.04.^1^ - The regional advisory and image report should be tracked separately. The status feed describes intermittent PyPI downloads affecting some customers in India, but now records that incident as mitigated.^2^
- The available image documentation does not establish IPv6 preference, DNS resolver behavior, OpenSSL, Python, or pip as the cause. Ubuntu 26.04 being a different hosted image makes those valid investigation targets, but none should be presented as the confirmed root cause.
Because each hosted job receives a fresh VM containing the latest revision of the selected image, repeated runs may land on updated image revisions; local changes do not persist between jobs.^3^
Capture a useful 24.04/26.04 comparison
Add the same non-secret diagnostic step to both minimal pipelines and attach its output to the existing runner-images issue:
- bash: |
set -x
echo "Image: $ImageOS $ImageVersion"
python --version
python -m pip --version
openssl version -a
cat /etc/resolv.conf
getent ahosts pypi.org
getent ahosts files.pythonhosted.org
curl -4 -Iv --connect-timeout 20 https://pypi.org/simple/
curl -6 -Iv --connect-timeout 20 https://pypi.org/simple/ || true
displayName: Capture PyPI network diagnostics
Redact proxy addresses or other organization-specific values before posting logs. The output separates several cases:
- DNS lookup failure versus successful address resolution.
- IPv4 success with IPv6 failure.
- TCP/TLS failure visible in
curl. - Differences in Python, pip, and OpenSSL versions.
- The exact hosted-image revision represented by
ImageVersion.
Also compare the Included software manifests linked from the hosted-agent table for both images. Microsoft directs hosted-image problems and software requests to the runner-images repository rather than documentation feedback.^3^
Workarounds and escalation
- Keep 24.04 pinned until the runner-images issue records a fix and a subsequent 26.04 test passes. Do not use 22.04 as the production fallback; it is deprecated and scheduled for removal on April 17, 2027.^3^
- Provide both minimal pipelines in issue #15414, including timestamps, India geography,
ImageVersion, failing hostnames, exact SSL/timeout text, and the comparison output above. This lets the image team correlate failures with an image revision. - Open an Azure DevOps support case if the failure continues after the regional incident’s mitigation, referencing both the incident and runner-images issue. Ask support to determine whether the failing jobs are part of residual regional routing/CDN behavior or the reproducible 26.04 image case.
- If 26.04 becomes mandatory before resolution, a controlled agent pool is the remaining isolation option. Microsoft-hosted agents cannot have their compute configuration changed; Azure Pipelines documents self-hosted agents, VM scale-set agents, and Managed DevOps Pools as alternatives.^3^
References