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

google_compute_snapshot does not allow source_disk to be in a different GCP project #15702

Closed
Fructokinase opened this issue Sep 1, 2023 · 4 comments
Assignees
Labels

Comments

@Fructokinase
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

1.5.2

Affected Resource(s)

  • google_compute_snapshot

Terraform Configuration Files

resource "google_compute_snapshot" "my_snapshot" {
  name        = "my-snapshot"
  project     = var.project_id
  source_disk = data.google_compute_disk.flutter_snapshot_disk.id
  storage_locations = tolist(var.regions)
}

Debug Output

Dismissed an error as retryable. Retry 404s for GET operation - googleapi: Error 404: The resource 'projects/<var.project_id>/zones/us-central1-a/operations/operation-<operation_id>' was not found, notFound

Panic Output

Expected Behavior

Operation should be from the source disk's GCP project id

Actual Behavior

Error: Error waiting to create Snapshot: Error waiting for Creating Snapshot: couldn't find resource (21 retries)

Steps to Reproduce

  1. Create a snapshot resource where the disk source is from a different GCP project than the resource project id
  2. terraform apply

Important Factoids

References

  • #0000
@edwardmedia edwardmedia self-assigned this Sep 1, 2023
@edwardmedia
Copy link
Contributor

edwardmedia commented Sep 1, 2023

@Fructokinase can you create it via other means like gcloud? If yes, can you share the debug log? I guess this is the rule set by GCP

@edwardmedia
Copy link
Contributor

@Fructokinase is this still an issue?

@edwardmedia
Copy link
Contributor

@Fructokinase closing assuming it is no longer an issue

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants