Skip to content

[Alibaba:VPC/Subnet] Fix: Add wait logic for VPC/Subnet resource state after create/delete#1727

Merged
cb-spider merged 1 commit into
cloud-barista:masterfrom
powerkimhub:fix/alibaba-vpc-wait-for-resource-state
May 19, 2026
Merged

[Alibaba:VPC/Subnet] Fix: Add wait logic for VPC/Subnet resource state after create/delete#1727
cb-spider merged 1 commit into
cloud-barista:masterfrom
powerkimhub:fix/alibaba-vpc-wait-for-resource-state

Conversation

@powerkimhub
Copy link
Copy Markdown
Member

Related Issue: #1726

  • Add WaitForSubnetAvailable(vSwitchId): polls until VSwitch reaches Available
    status after creation (max 20 retries, 3s interval)
  • Add WaitForSubnetDeleted(vSwitchId): polls until VSwitch is fully removed
    after deletion (max 20 retries, 3s interval)
  • Add WaitForVPCDeleted(vpcId): polls until VPC is fully removed after deletion
    (max 20 retries, 3s interval)
  • Call WaitForSubnetAvailable in CreateSubnet after successful API call
  • Call WaitForVPCDeleted in DeleteVPC after successful API call
  • Call WaitForSubnetDeleted in DeleteSubnet after successful API call
  • Fix callLogInfo.ElapsedTime recording position to be set only at
    the point of logging (error or success branch), not unconditionally after the API call
  • Increase polling interval in WaitForRun from 1s to 3s for VPC pending state

@cb-spider cb-spider linked an issue May 19, 2026 that may be closed by this pull request
@cb-spider cb-spider merged commit 203aeb4 into cloud-barista:master May 19, 2026
3 checks passed
@powerkimhub powerkimhub deleted the fix/alibaba-vpc-wait-for-resource-state branch May 19, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alibaba:VPC/Subnet] Improve VPC/VSwitch deletion and sync logic

2 participants