You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compute instance should modify its shape and capacity reservation in a single request. This is how it works when you change them in the OCI website. You can change both simultaneously.
Actual Behavior
│ Error: 400-InvalidParameter, Invalid Shape Config: No valid reservation configs in the reservation to move the resize to.
│ Suggestion: Please update the parameter(s) in the Terraform config as per error message Invalid Shape Config: No valid reservation configs in the reservation to move the resize to.
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_instance
│ API Reference: https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/UpdateInstance
│ Request Target: PUT https://iaas.us-ashburn-1.oraclecloud.com/20160918/instances/ocid1.instance.oc1.iad.xxxxxxxxxxxxxxxx
│ Provider version: 6.28.0, released on 2025-03-02.
│ Service: Core Instance
│ Operation Name: UpdateInstance
│ OPC request ID: xxxxxxxxxxxxxxxx
│
│
│ with oci_core_instance.example,
│ on main.tf line 46, in resource "oci_core_instance" "example":
│ 46: resource "oci_core_instance" "example" {
│
Community Note
Terraform Version and Provider Version
Terraform v1.11.0
OCI Provider v6.28.0
Affected Resource(s)
oci_core_instance
oci_core_compute_capacity_reservation
(related, but the bug is in the the instance resource)Terraform Configuration Files
Full working example:
https://gist.github.com/b-dean/0cccde387e8dcc57167b08e5e45ef80c
Debug Output
Will include in an Oracle SR if needed.
Expected Behavior
The compute instance should modify its shape and capacity reservation in a single request. This is how it works when you change them in the OCI website. You can change both simultaneously.
Actual Behavior
Steps to Reproduce
Using the code in the gist, https://gist.github.com/b-dean/0cccde387e8dcc57167b08e5e45ef80c
run the following:
It will ask you for
compartment_id
andsubnet_id
variables, which you can put in a.tfvars
file if you like.References
I previously created #2209 for this, but it was closed for some reason. I'm logging this as a bug, for which I will create a new PR.
I also logged a SR 4-0000144019 which was closed without a solution.
The text was updated successfully, but these errors were encountered: