Skip to content

[NVBug 6758151] Classify DNS-filtered Prime Agent installer response instead of generic checksum error #4518

Open

Description

@qiaochuz-nv

Queue rank 30/48 · Difficulty 3/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6758151 · Priority: Unprioritized (reporter suggests P2) · ARB: Christian Munley
GitHub: none found (installer search returned nothing; internal JIRA NMGYM-52)

Summary

On workers whose network DNS/web-filters the Prime release host, ensure_prime_agent bootstrap fails and both prime_agent_math and prime_agent_reasoning_gym never start. The upstream installer receives an HTTP 200 HTML block page in place of the release manifest and prints a misleading "expected one valid checksum" error. Gym retries the deterministic failure 3x and raises a generic subprocess.CalledProcessError with no actionable classification. The connectivity block is infra policy; the Gym-fixable part is diagnostics/robustness.

Reproduction

On a host where pub-728493de92a943e2a9b2d17b4719f318.r2.dev resolves to a DNS filter, run the prime_agent_math (or reasoning_gym) env. PrimeAgent.model_post_init → ensure_prime_agent("0.7.0") (called at app.py:291) runs sh install.sh 0.7.0, which fails 3x with "error: expected one valid checksum for prime-agent-0.7.0-linux-x64.tar.gz", then raises CalledProcessError before any inference.

Root cause

setup_prime_agent.py:61-73 (_run_installer) curl -fsSL fetches the externally-mutable install.sh and runs sh install.sh <ver>. The installer fetches release checksums from the filtered host, gets HTTP 200 HTML (TLS trusts the filter CA), and prints the checksum error. ensure_prime_agent retries at :102-111, catching (OSError, CalledProcessError) and re-raising the generic error at :109. No code inspects the response for HTML/block-page markers. The misleading text originates upstream; Gym propagates it unclassified.

Status on main (not_fixed)

setup_prime_agent.py has one commit only, b0261ab9 (#2406). git log 804c12a7..HEAD over the prime_agent paths is empty. Two commits DID touch these paths post-integration — 016bb6b (legacy-env config.yaml lines) and b4d3fbc (app.py:282 ray_enabled = False) — but both predate the reporter's 804c12a main and neither changes the bootstrap. Retry loop at :102-111 and generic raise at :109 intact. Pins unchanged: math config.yaml:28, reasoning_gym config.yaml:23, configs/prime_agent.yaml:30.

Proposed fix

In setup_prime_agent.py: capture installer stdout/stderr; detect non-release/HTML/block-page markers ("Website Filtered", "blocked.dnsfilter.com", HTML content-type, checksum error with no reachable release) and raise a classified RuntimeError naming the release host and likely DNS/web filtering; skip retry on deterministic failures. Document the preinstall escape hatch in README. Coordinate wording with the upstream installer owner.

Validation

Add a unit test to tests/test_app.py mocking _run_installer/subprocess to simulate the filter-page failure; assert the classified error and no 3x retry. Re-run QA testcases/environments/prime_agent_math.py and prime_agent_reasoning_gym.py on an unfiltered worker. A diagnostics-only change does NOT unblock on a filtered host.

Triage

Difficulty 3/5 — localized to one file but needs a classification design choice plus upstream coordination, and a diagnostics-only fix won't unblock startup. Needs GPU/model: no.

Reviewer notes

Verifier confirmed not_fixed (single commit b0261ab; 804c12a..HEAD empty) and difficulty 3. Corrections: the status claim "90 commits landed overall" is imprecise — scope it to the 804c12a..HEAD range, and note 016bb6b and b4d3fbc touched these paths post-integration but neither is a fix; the ensure_prime_agent call site is app.py:291.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions