Skip to content

Helm v3.18.0 missing verbosity on network requests when debugging #30915

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

Open
minijus opened this issue May 26, 2025 · 1 comment · May be fixed by #30917
Open

Helm v3.18.0 missing verbosity on network requests when debugging #30915

minijus opened this issue May 26, 2025 · 1 comment · May be fixed by #30917

Comments

@minijus
Copy link

minijus commented May 26, 2025

There is a significant change between versions v3.17.3 and v3.18.0 when using --debug option.

v3.17.3:

helm pull oci://example.com/bitnamicharts/mongodb --version 16.5.3 --debug
DEBU[0000] resolving                                     host=example.com
DEBU[0000] do request                                    host=example.com request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.17.3 request.method=HEAD url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
DEBU[0000] fetch response received                       host=example.com response.header.connection=keep-alive response.header.content-length=87 response.header.content-type="application/json;charset=ISO-8859-1" response.header.date="Mon, 26 May 2025 09:48:00 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.www-authenticate="Bearer realm=\"https://example.com:443/artifactory/api/docker//v2/token\",service=\"example.com:443\",scope=\"repository:bitnamicharts/mongodb:pull\"" response.status="401 " url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
DEBU[0000] Unauthorized                                  header="Bearer realm=\"https://example.com:443/artifactory/api/docker//v2/token\",service=\"example.com:443\",scope=\"repository:bitnamicharts/mongodb:pull\"" host=example.com
DEBU[0000] do request                                    host=example.com request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.17.3 request.method=HEAD url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
INFO[0000] trying next host                              error="failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404 " host=example.com
Error: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404 
helm.go:86: 2025-05-26 12:48:00.482963 +0300 EEST m=+0.245820292 [debug] failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404

v3.18.0:

helm pull oci://example.com/bitnamicharts/mongodb --version 16.5.3 --debug
Error: failed to resolve example.com/bitnamicharts/mongodb:16.5.3: GET "https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3": GET "https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443": response status code 404: : Not Found
helm.go:92: 2025-05-26 12:56:11.646723 +0300 EEST m=+0.185389335 [debug] failed to resolve example.com/bitnamicharts/mongodb:16.5.3: GET "https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3": GET "https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443": response status code 404: : Not Found

While from both outputs it is clear which request fails with 404, but only from output on v3.17.3 is evident that earlier response with WWW-Authenticate header is incorrect and should be looked at (this is not part of the issue).

@TerryHowe TerryHowe linked a pull request May 26, 2025 that will close this issue
3 tasks
@TerryHowe
Copy link
Contributor

Created a PR to revive the loggin. ORAS v2 does not implement logging like ORAS v1, it had to manually added

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

Successfully merging a pull request may close this issue.

2 participants