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

ARS oci_recovery_protected_database fails update if database_size = AUTO #2248

Open
jeliker1 opened this issue Nov 22, 2024 · 2 comments
Open
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug

Comments

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

Terraform Version and Provider Version

Terraform v1.7.4
on darwin_arm64
+ provider registry.terraform.io/oracle/oci v6.18.0

Affected Resource(s)

affected_resources = oci_recovery_protected_database

Terraform Configuration Files

resource "oci_recovery_protected_database" "the_protected_database" {
    compartment_id       = var.compartment_id
    db_unique_name       = var.db_unique_name
    display_name         = var.display_name
    password             = var.password
    protection_policy_id = var.protection_policy_id
    recovery_service_subnets {
        recovery_service_subnet_id = var.recovery_service_subnet_id
    }

    database_id          = var.database_id
    database_size        = "AUTO"
    deletion_schedule    = "DELETE_AFTER_RETENTION_PERIOD"
    is_redo_logs_shipped = false
}

Debug Output

2024-11-22T11:47:33.051-0500 [ERROR] vertex "oci_recovery_protected_database.the_protected_database" error: 400-InvalidParameter, Database Size must be one of [XS, S, M, L, XL, XXL].
Suggestion: Please update the parameter(s) in the Terraform config as per error message Database Size must be one of [XS, S, M, L, XL, XXL].
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/recovery_protected_database 
API Reference: https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/UpdateProtectedDatabase 
Request Target: PUT https://recovery.us-phoenix-1.oci.oraclecloud.com/20210216/protectedDatabases/ocid1.recoveryserviceprotecteddatabase.oc1.phx.amaaaaaaj2wepuqadjg3fbjid22cdimvim6ghnv63bpgur22ynlz2dboskdq 
Provider version: 6.18.0, released on 2024-11-13. This provider is 1 Update(s) behind to current. 
Service: Recovery Protected Database 
Operation Name: UpdateProtectedDatabase 
OPC request ID: 5f2eb1de433c70c9f8572041d35a07a7/70C89EE41EC8FD416412282CED39631E/6FA352319AB40F54DD614E9DFD4B6339

Panic Output

Expected Behavior

I expect database_size="AUTO" to be accepted as valid value

Actual Behavior

When specifying database_size="AUTO" on update, error occurs

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@jeliker1 jeliker1 added the bug label Nov 22, 2024
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format.
Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform.
Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

@tf-oci-pub tf-oci-pub added the awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance label Nov 22, 2024
@jeliker1
Copy link
Author

ARGH! Why are you flagging this awaiting-affected-resources! It's right in the opening submission!

image

@tf-oci-pub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug
Projects
None yet
Development

No branches or pull requests

2 participants