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 security group on vpc next gen instance does not apply change #1078

Closed
argeiger opened this issue Feb 6, 2020 · 3 comments
Closed

Comments

@argeiger
Copy link

argeiger commented Feb 6, 2020

I am trying to add another security group to an interface of an instance. The plan shows the change and shows that the resource was changed after apply but in the end the change never was applied. If I run the apply again, it shows that the change still needs to take place so the action never occurred.

Terraform Version

Terraform v0.12.16

  • provider.ibm v1.2.0
  • provider.template v2.1.2

Affected Resource(s)

  • ibm_is_instance

Terraform Configuration Plan

      .....
      primary_network_interface {
            id                   = "0717-049259f0-a563-4423-aedf-e73047ce7bd3"
            name                 = "default"
            port_speed           = 0
            primary_ipv4_address = "172.21.0.4"
          ~ security_groups      = [
              + "r006-33261313-4ab6-4f3f-8bae-17a1e6f0baab",
                "r006-c19cf599-da44-4e50-84ae-42b7297c35bf",
            ]
            subnet               = "0717-2a30f637-a914-48eb-a98c-2db0ba75029b"
        }

Expected Behavior

The security group should have been added to the interface

Actual Behavior

Security group was not added to the interface

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create an instance with the default security group
  2. Apply the plan: terraform apply
  3. Modify the terraform plan to add another security group and add it to the interface of the instance
  4. Apply the plan: terraform apply
  5. Verify that the security groups were added to the interface
@argeiger argeiger changed the title Changing security group on vpc next gen service does not apply change Changing security group on vpc next gen instance does not apply change Feb 6, 2020
@hkantare
Copy link
Collaborator

hkantare commented Feb 7, 2020

We will look and update

@hkantare
Copy link
Collaborator

Fix available in master..It will be part of next release(early next week)

@hkantare hkantare self-assigned this Feb 21, 2020
@hkantare hkantare added this to To do in IBM Cloud Terraform Provider via automation Feb 21, 2020
@hkantare hkantare moved this from To do to 2020Q1 in IBM Cloud Terraform Provider Feb 21, 2020
@hkantare
Copy link
Collaborator

IBM Cloud Terraform Provider automation moved this from 2020Q1 to Done Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants