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

[ERROR] The version in your configuration file (6.0) β”‚ does not match the version of your remote instance () #5856

Closed
lra opened this issue Dec 9, 2024 · 7 comments
Labels
service/Cloud Databases Issues related to Cloud Databases

Comments

@lra
Copy link

lra commented Dec 9, 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 CLI and Terraform IBM Provider Version

Terraform v1.10.1
on darwin_arm64
+ provider registry.terraform.io/ibm-cloud/ibm v1.72.0

Affected Resource(s)

  • ibm_database

Terraform Configuration Files

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

resource "ibm_database" "this" {
  name              = ibm_resource_group.this.name
  service           = "databases-for-mongodb"
  plan              = "standard"
  location          = var.primary_region
  resource_group_id = ibm_resource_group.this.id
  service_endpoints = "public"
  version           = "6.0"
  adminpassword     = random_password.this.result
  tags              = local.tags

  group {
    group_id = "member"

    cpu {
      allocation_count = 3
    }

    memory {
      allocation_mb = var.mongodb_memory_in_mb
    }
  }

  auto_scaling {

    disk {
      capacity_enabled             = true
      free_space_less_than_percent = 15
      io_above_percent             = 85
      io_enabled                   = true
      io_over_period               = "15m"
      rate_increase_percent        = 15
      rate_limit_mb_per_member     = 3670016
      rate_period_seconds          = 900
      rate_units                   = "mb"
    }
    memory {
      io_above_percent         = 90
      io_enabled               = true
      io_over_period           = "15m"
      rate_increase_percent    = 10
      rate_limit_mb_per_member = 114688
      rate_period_seconds      = 900
      rate_units               = "mb"
    }
  }
}

Debug Output

β•·
β”‚ Error: ---
β”‚ id: terraform-23dab597
β”‚ summary: "1 error occurred:\n\t* [ERROR] The version in your configuration file (6.0)
β”‚   does not match the version of your remote instance (). Make sure that you have the
β”‚   same version in your configuration as the version on the remote instance. Learn
β”‚   more about the versioning policy here: https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy
β”‚   \n\n"
β”‚ severity: error
β”‚ resource: ibm_database
β”‚ operation: CustomizeDiff
β”‚ component:
β”‚   name: github.com/IBM-Cloud/terraform-provider-ibm
β”‚   version: 1.72.0
β”‚ ---
β”‚
β”‚
β”‚   with module.gnqa03.ibm_database.this,
β”‚   on ../../modules/cms-ibm-database/mongodb.tf line 7, in resource "ibm_database" "this":
β”‚    7: resource "ibm_database" "this" {
β”‚
β•΅

Panic Output

Expected Behavior

$ terraform plan
No changes. Your infrastructure matches the configuration.

Actual Behavior

$ terraform plan
Planning failed. Terraform encountered an error while generating this plan.
β•·
β”‚ Error: ---
β”‚ id: terraform-23dab597
β”‚ summary: "1 error occurred:\n\t* [ERROR] The version in your configuration file (6.0)
β”‚   does not match the version of your remote instance (). Make sure that you have the
β”‚   same version in your configuration as the version on the remote instance. Learn
β”‚   more about the versioning policy here: https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-versioning-policy
β”‚   \n\n"
β”‚ severity: error
β”‚ resource: ibm_database
β”‚ operation: CustomizeDiff
β”‚ component:
β”‚   name: github.com/IBM-Cloud/terraform-provider-ibm
β”‚   version: 1.72.0
β”‚ ---
β”‚
β”‚
β”‚   with module.gnqa03.ibm_database.this,
β”‚   on ../../modules/cms-ibm-database/mongodb.tf line 7, in resource "ibm_database" "this":
β”‚    7: resource "ibm_database" "this" {
β”‚
β•΅

Steps to Reproduce

  1. Set the provider version to 1.72.0
  2. terraform plan

Important Factoids

This happens only with 1.72.0
This works fine with 1.71.3

The database is using 6.0 but returning no version to Terraform:
Capture d’écran 2024-12-09 aΜ€ 14 14 08

References

The problem seems to be introduced by:

@github-actions github-actions bot added the service/Cloud Databases Issues related to Cloud Databases label Dec 9, 2024
@lionelmace
Copy link

I faced the same error today after upgrading to the release 1.72.0. I had to roll back to the previous release. This is a blocking issue.

@lra
Copy link
Author

lra commented Dec 9, 2024

They reverted the code in #5859 but it still needs to be released.

@omaraibrahim
Copy link
Collaborator

@lionelmace @lra We've reverted the change and are working on getting it released ASAP. Thank you for bringing this to our attention @lra.

@lornakelly
Copy link
Contributor

lornakelly commented Dec 10, 2024

@lionelmace @lra New version 1.72.1 has been released. Again, thank you for bringing this to our attention.

@lra
Copy link
Author

lra commented Dec 10, 2024

Thanks, the 1.72 upgrade leads to other issues ibm_database, but this specific problem is fixed.

@lra lra closed this as completed Dec 10, 2024
@lornakelly
Copy link
Contributor

lornakelly commented Dec 10, 2024

Thanks @lra, please open tickets for any other issues you are experiencing

@lra
Copy link
Author

lra commented Dec 10, 2024

done: #5863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Cloud Databases Issues related to Cloud Databases
Projects
None yet
Development

No branches or pull requests

4 participants