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

Error 400: Updating a deleted transfer job is not allowed., failedPrecondition #11288

Assignees
Labels

Comments

@davidedironza
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

12.31

Affected Resource(s)

  • google_storage_transfer_job

Terraform Configuration Files

resource "google_storage_transfer_job" "gcs-bucket-backup" {
  for_each = local.backup_buckets
  project     = var.project_id
  description = "Frequent backup of ${each.key} gcs bucket"
  status = try(each.value.backup.status, "ENABLED")
  ...
}

Debug Output

The command terraform plan already shows it'll update the resource:

# module.storage_buckets.google_storage_transfer_job.gcs-bucket-backup["backup-test"] will be updated in-place
  ~ resource "google_storage_transfer_job" "gcs-bucket-backup" {
        creation_time          = "2022-03-15T08:19:25.437266985Z"
        deletion_time          = "2022-03-16T06:54:49.205758824Z"
        description            = "Frequent backup of backup-test gcs bucket"
        ...
    }

Panic Output

None

Expected Behavior

Create the job.

Actual Behavior

Wants to update the job.

Steps to Reproduce

  1. Create a job with terraform
  2. Delete the job on the UI
  3. rerun terraform plan

Important Factoids

None

References

None

@pgruetter
Copy link

Is this fix included in 4.15.0? Just stumbled upon the exact same error. Judging from the commits, I think it should be included in 4.15.0 but it's not in the Changelog and I quickly tried to upgrade and still get the same error.

@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 Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.