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

Recreate deleted (missing) resources instead of [FATAL]ing #511

Closed
deefdragon opened this issue Sep 6, 2023 · 0 comments · Fixed by #534
Closed

Recreate deleted (missing) resources instead of [FATAL]ing #511

deefdragon opened this issue Sep 6, 2023 · 0 comments · Fixed by #534

Comments

@deefdragon
Copy link

Description

Due to a series of mistakes, a large number of resources were unintentionally deleted manually from minio via the console. When attempting to re-create these resources via terraform, terraform produces a [FATAL] error ie failed to load user Infos (username): The specified user does not exist. (Specified user does not exist)

In this case, the only solution was to terraform state rm for every resource manually, and then re-run terraform creation.

At minimum, running a terraform refresh to manually update the state should not fatal, as that would allow the user to manually update most resources and re-create them later.

Steps to Reproduce

  1. create user in minio.
  2. delete user manually from terraform console
  3. attempt terraform refresh or other command with that user.

Expected behavior: [What you expect to happen]

terraform apply would mark the resource as requiring replacement, or to be created during refresh step.

Actual behavior: [What actually happens]
[FATAL] errors until state removed via terraform state rm <RESOURCE ID>.

Reproduces how often: [What percentage of the time does it reproduce?]
[FATAL] errors until state removed.

tobikris added a commit to nimbolus/terraform-provider-minio that referenced this issue Oct 26, 2023
tobikris added a commit to nimbolus/terraform-provider-minio that referenced this issue Oct 30, 2023
tobikris added a commit to nimbolus/terraform-provider-minio that referenced this issue Oct 30, 2023
felladrin pushed a commit that referenced this issue Nov 1, 2023
felladrin pushed a commit that referenced this issue Nov 4, 2023
felladrin pushed a commit that referenced this issue Nov 4, 2023
felladrin added a commit that referenced this issue Nov 4, 2023
* Update module github.com/aws/aws-sdk-go to v1.45.6 (#515)

(cherry picked from commit 4953af3)

* Update crazy-max/ghaction-import-gpg action to v6 (#516)

(cherry picked from commit ee28b90)

* Handle empty service account policy (#518)

(cherry picked from commit 779d356)

* Update repository URL (#520)

(cherry picked from commit 7a680c7)

* Update project to Go v1.20 (#519)

(cherry picked from commit be07cf7)

* Destroy object versions on bucket force_destroy (#524)

(cherry picked from commit a107f61)

* Update goreleaser-action to v5 and add permission for the workflow to attach binaries to GitHub Releases (#521)

(cherry picked from commit c06ddba)

* Add Noncurrent Version expiration to ilm policy (#526)

Co-authored-by: Nicolas De Jesus <[email protected]>
(cherry picked from commit f031109)

* Bump golang.org/x/net from 0.15.0 to 0.17.0 (#530)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](golang/net@v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit ec7f197)

* Add service account values to read and import (#525)

(cherry picked from commit cf0c88d)

* Recreate user if it's not found anymore (#534)

Fixes #511

(cherry picked from commit 50bc121)

* Bump google.golang.org/grpc from 1.58.0 to 1.58.3 (#535)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.0 to 1.58.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.58.0...v1.58.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 5fa1a1b)

* Revert "Update repository URL (#520)" (#538)

This reverts commit 7a680c7.

(cherry picked from commit 8a0b114)

* Update target branches of GitHub Actions to `v1` branch

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Artem Usenko <[email protected]>
Co-authored-by: Jonathan Buch <[email protected]>
Co-authored-by: Pat Sier <[email protected]>
Co-authored-by: ndejesus <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tobias Krischer <[email protected]>
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.

1 participant