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

okta_app_user_schema_property - forceNew fails - eventual consistency #1974

Open
exitcode0 opened this issue Apr 18, 2024 · 1 comment
Open

Comments

@exitcode0
Copy link
Contributor

exitcode0 commented Apr 18, 2024

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 other comments that do not add relevant new information or questions, 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

Terraform Version

Terraform v1.7.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v5.17.0
+ provider registry.terraform.io/okta/okta v4.5.0

Your version of Terraform is out of date! The latest version
is 1.8.0. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

  • okta_app_user_schema_property

Terraform Configuration Files

N/A

Debug Output

N/A

Panic Output

Error: the API returned an error: Api validation failed: updateAppUserSchemas.
Causes: errorSummary: You cannot add the attribute with the variable name '<REDACTED>' because the deletion process for an attribute with the same variable name is incomplete. Wait until the data clean up process finishes and then try again.

Expected Behavior

Updating a okta_app_user_schema_property resource and triggering a forceNew should apply successfully

Can this be done in the Admin UI?

The upstream eventual consistency is a problem in the Admin UI as well, it can also be triggered manually via the Okta Admin Dashboard

Can this be done in the actual API call?

The upstream eventual consistency is a problem in the Admin UI as well, It can also be triggered using the API

Actual Behavior

Eventual consistency in the upstream API means that re-creating the schema attribute with the same name will fail.

Steps to Reproduce

  1. create a okta_app_user_schema_property
  2. trigger a forceNew on the okta_app_user_schema_property by updating an attribute like scope
  3. terraform apply

Important Factoids

Its not clear to me if this error occurs because:

  • The async jobs are still in-progress
  • The async Jobs are lazily evaluated and thus don't start until you trigger the error
  • Okta doesn't mark the async Jobs as being complete properly

References

@exitcode0
Copy link
Contributor Author

I've updated the original issue content to include reference to OKTA-724818

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

No branches or pull requests

1 participant