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

changing name on boot_volume ibm_is_instance does not affect resources in IBM cloud #5068

Closed
melwafi-youcan opened this issue Jan 23, 2024 · 3 comments · Fixed by #5084
Closed
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@melwafi-youcan
Copy link

melwafi-youcan commented Jan 23, 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 -v
Terraform v1.6.2
on darwin_arm64

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

Providers required by configuration:
.
└── provider[registry.terraform.io/ibm-cloud/ibm] 1.61.0

Providers required by state:

    provider[registry.terraform.io/ibm-cloud/ibm]

Affected Resource(s)

  • ibm_is_instance

Terraform Configuration Files

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

# main.tf
resource "ibm_is_instance" "instance" {
  name    = "instance-lon3"
  image   = data.ibm_is_image.ubuntu_18_04_6_7.id
  vpc     = data.ibm_is_vpc.VPC.id
  zone    = "${var.ibm_region}-3"
  profile = "cx2-8x16"
  tags    = flatten([var.ibm_tags, []])
  primary_network_interface {
    subnet = local.subnets[index(local.subnets.*.name, "lon3-subnet-4")].id
    security_groups = [
      local.security_groups[index(local.security_groups.*.name, "private-instances")].id,
    ]
  }

  boot_volume {
    auto_delete_volume = false
    name               = "instance-lon3-boot"
    size               = 100
  }
}

# import.tf
import {
  to = ibm_is_instance.instance
  id = "jdawd2q8dydhy8d29yd2dy2dy92d9d1uhdqd1h"
}

Expected Behavior

Terraform should changes the boot volume name when terraform apply finished successfully

Actual Behavior

When I ran terraform apply and after that I run terraform plan I get the same changes I applied previously

Steps to Reproduce

  1. create a new project with same versions and same code above
  2. terraform plan
  3. terraform apply
  4. change the name of the boot volume
  5. terraform apply
  6. rerun terraform plan
@github-actions github-actions bot added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Jan 23, 2024
@melwafi-youcan melwafi-youcan changed the title chnaging name on boot_volume ibm_is_instance does not affect resources in IBM cloud changing name on boot_volume ibm_is_instance does not affect resources in IBM cloud Jan 23, 2024
@ujjwal-ibm
Copy link
Collaborator

looking into it

@melwafi-youcan
Copy link
Author

@ujjwal-ibm any updates did u manage to reproduce the bug?

@ujjwal-ibm
Copy link
Collaborator

We're working on a fix. Once PR is up, will tag under this issue.

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

Successfully merging a pull request may close this issue.

2 participants