Skip to content

custom security group example keeps failing due to load balancer in UPDATE_PENDING state #852

@ocofaigh

Description

@ocofaigh

The custom security group example keeps failing with:

TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ Error: ---
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ id: terraform-719aa053
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ summary: 'CreateSecurityGroupTargetBindingWithContext failed: The load balancer with
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   ID ''r018-f3328645-78f6-494c-9a2e-27ac99c29476'' cannot be updated because its status
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   is ''UPDATE_PENDING''.'
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ severity: error
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ resource: ibm_is_security_group_target
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ operation: create
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ component:
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   name: github.com/IBM-Cloud/terraform-provider-ibm
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   version: 1.84.3
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ ---
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ 
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ 
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   with module.ocp_base.module.attach_sg_to_lb[0].ibm_is_security_group_target.sg_target[0],
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   on .terraform/modules/ocp_base.attach_sg_to_lb/main.tf line 92, in resource "ibm_is_security_group_target" "sg_target":
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │   92: resource "ibm_is_security_group_target" "sg_target" {
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: │ 
TestRunCustomsgExample 2025-10-30T18:16:00Z logger.go:67: ╵

As a workaround the TestRunCustomsgExample test has been skipped. Please ensure to add it back once the issue is resolved

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions