Skip to content
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

GCP discovery can't enroll instances #31386

Closed
r0mant opened this issue Sep 1, 2023 · 0 comments · Fixed by #31853
Closed

GCP discovery can't enroll instances #31386

r0mant opened this issue Sep 1, 2023 · 0 comments · Fixed by #31853
Assignees
Labels
bug discovery gcp test-plan-problem Issues which have been surfaced by running the manual release test plan

Comments

@r0mant
Copy link
Collaborator

r0mant commented Sep 1, 2023

Given the following discovery config:

discovery_service:
  enabled: "yes"
  gcp:
    - types: ["gce"]
      project_ids: ["<redacted>"]
      locations: ["us-central1-a"]
      tags:
        "project": "*"

User is seeing the following error in the logs:

2023-09-01T21:24:49Z DEBU [DISCOVERY] GCP instances discovered (ProjectID: <REDACTED>, Instances [teleport-discovery-node]), starting installation pid:2919.1 discovery/discovery.go:737
2023-09-01T21:24:49Z DEBU [DISCOVERY] Running Teleport installation on these virtual machines: ProjectID: <REDACTED>, VMs: [teleport-discovery-node] pid:2919.1 discovery/discovery.go:712
2023-09-01T21:24:49Z ERRO [DISCOVERY] Failed to enroll discovered GCP VMs. error:[
ERROR REPORT:
Original Error: *trace.BadParameterError 
Stack Trace:

Caught:
	github.com/gravitational/teleport/lib/cloud/gcp/vm.go:52 github.com/gravitational/teleport/lib/cloud/gcp.convertAPIError
	github.com/gravitational/teleport/lib/cloud/gcp/vm.go:304 github.com/gravitational/teleport/lib/cloud/gcp.(*instancesClient).GetInstance
	github.com/gravitational/teleport/lib/cloud/gcp/vm.go:498 github.com/gravitational/teleport/lib/cloud/gcp.RunCommand
	github.com/gravitational/teleport/lib/srv/server/gcp_installer.go:69 github.com/gravitational/teleport/lib/srv/server.(*GCPInstaller).Run.func1
	golang.org/x/[email protected]/errgroup/errgroup.go:75 golang.org/x/sync/errgroup.(*Group).Go.func1
	runtime/asm_amd64.s:1598 runtime.goexit
User Message: Invalid resource field value in the request.

Seems like this GetInstance call is failing for some reason.

@r0mant r0mant added the bug label Sep 1, 2023
@r0mant r0mant added the gcp label Sep 1, 2023
@zmb3 zmb3 added test-plan-problem Issues which have been surfaced by running the manual release test plan discovery labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug discovery gcp test-plan-problem Issues which have been surfaced by running the manual release test plan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants