-
Notifications
You must be signed in to change notification settings - Fork 676
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
UI-14859: Instance Group Delete Bugfix #2547
Conversation
ibm/resource_ibm_is_lb.go
Outdated
@@ -985,7 +985,7 @@ func isWaitForLBAvailable(sess *vpcv1.VpcV1, lbId string, timeout time.Duration) | |||
log.Printf("Waiting for load balancer (%s) to be available.", lbId) | |||
|
|||
stateConf := &resource.StateChangeConf{ | |||
Pending: []string{"retry", isLBProvisioning}, | |||
Pending: []string{"retry", isLBProvisioning, "update_pending", "delete_pending"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update_pending states are not needed , as the refresh function returns "provisioning" for all other states except for 'active' and 'failed'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @deepaksibm I am using the load_balancer's resource function. So I can't remove anything from there because it is used for load_balancer creation as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why delete_pending is addeed for active status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hkantare Added just like that..Should I remove it??
ibm/resource_ibm_is_lb.go
Outdated
@@ -985,7 +985,7 @@ func isWaitForLBAvailable(sess *vpcv1.VpcV1, lbId string, timeout time.Duration) | |||
log.Printf("Waiting for load balancer (%s) to be available.", lbId) | |||
|
|||
stateConf := &resource.StateChangeConf{ | |||
Pending: []string{"retry", isLBProvisioning}, | |||
Pending: []string{"retry", isLBProvisioning, "update_pending", "delete_pending"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why delete_pending is addeed for active status
The bug was while deleting the instance_groups, we need to check if the load balancer is active or not. If not, then wait for the load balancer to be active and then delete the instance groups. Otherwise raise the error.
Jira Task: https://jiracloud.swg.usma.ibm.com:8443/browse/UI-14859
Bug Description
Destroy fails with