Skip to content

Improve error logging when detecting shell service name fails - #6664

Merged
Josh Matthews (jmatth) merged 2 commits into
mainfrom
shell-service-cloud-followup
Oct 16, 2026
Merged

Josh Matthews (jmatth) merged 2 commits into
mainfrom
shell-service-cloud-followup

Conversation

@jmatth

Copy link
Copy Markdown
Member

Minor followup from #6601. As part of determining the correct shell service to use for a part the cli now calls CloudMetadata, and reports that the machine is missing a cloud configuration if that fails in any way. This change attempts to determine if the failure is actually a missing cloud config or something else like a network issue. When the part is missing cloud metadata gRPC returns code Unknown, which isn't very specific but should be good enough here. Network issues will manifest as other codes like Cancelled, DeadlineExceeded, etc. We could update the server code to return more specific error info like code NotFound but I don't think it's worth the effort.

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Oct 16, 2026
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Oct 16, 2026
@jmatth
Josh Matthews (jmatth) merged commit 6eecf27 into main Oct 16, 2026
22 checks passed
@jmatth
Josh Matthews (jmatth) deleted the shell-service-cloud-followup branch October 16, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test This pull request is marked safe to test from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants