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

ibm_cloud_shell_account_settings delete issue #3242

Closed
jpmonge86 opened this issue Oct 21, 2021 · 3 comments · Fixed by #3256
Closed

ibm_cloud_shell_account_settings delete issue #3242

jpmonge86 opened this issue Oct 21, 2021 · 3 comments · Fixed by #3256
Labels
service/IBM Cloud Shell Issues related to Cloud Shell

Comments

@jpmonge86
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 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 CLI and Terraform IBM Provider Version

$ terraform -v
Terraform v1.0.9
on darwin_amd64
+ provider registry.terraform.io/eiqops/restapi v1.15.1
+ provider registry.terraform.io/ibm-cloud/ibm v1.34.0

Affected Resource(s)

  • ibm_cloud_shell_account_settings

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

data "ibm_iam_account_settings" "iam_account_settings" {
}

resource "ibm_cloud_shell_account_settings" "cloud_shell_account_settings" {
  #account_id = "5a5b9393966873091a0d13cd50dc40ad"
  account_id = data.ibm_iam_account_settings.iam_account_settings.account_id
  default_enable_new_features = false
  default_enable_new_regions = false
  enabled = false
}

Debug Output

ibm_cloud_shell_account_settings.cloud_shell_account_settings: Creating...
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [10s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [20s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [30s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [40s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [50s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [1m0s elapsed]
ibm_cloud_shell_account_settings.cloud_shell_account_settings: Still creating... [1m10s elapsed]
╷
│ Error: UpdateAccountSettingsWithContext failed Unexpected HTTP status code 500 (500 Internal Server Error)
│ null
│
│
│   with ibm_cloud_shell_account_settings.cloud_shell_account_settings,
│   on main.tf line 16, in resource "ibm_cloud_shell_account_settings" "cloud_shell_account_settings":
│   16: resource "ibm_cloud_shell_account_settings" "cloud_shell_account_settings" {

Expected Behavior

Resource destruction to be successful.

Actual Behavior

Resource hangs and it never gets destroyed.

Steps to Reproduce

  1. terraform apply > this works ok the first time
  2. terraform destroy > this works ok the first time too
  3. terraform apply > the subsequent applies fail no matter what one does, it is almost like the first destroy corrupts the target and then the system fails to apply changes.
@jpmonge86
Copy link
Author

I figured it out, the issue is the "rev" parameter, the initial apply and destroy do not need the rev parameter, but subsequent applies and destroys do, so maybe this parameter needs to be set as mandatory.

@seancallanan
Copy link

Hi @jpmonge86,

Thanks for helping to figure this out, I'll create a task to get it updated.

@jpmonge86
Copy link
Author

Thanks @seancallanan for helping me debug the issue

@kavya498 kavya498 added the service/IBM Cloud Shell Issues related to Cloud Shell label Oct 25, 2021
kavya498 added a commit to kavya498/terraform-provider-ibm that referenced this issue Oct 26, 2021
kavya498 added a commit to kavya498/terraform-provider-ibm that referenced this issue Oct 26, 2021
@kavya498 kavya498 linked a pull request Oct 26, 2021 that will close this issue
hkantare pushed a commit that referenced this issue Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/IBM Cloud Shell Issues related to Cloud Shell
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants