Skip to content

CKS: Cluster remains in destroying state when non-cluster VMs are using cluster network #4133

@shwstppr

Description

@shwstppr
ISSUE TYPE
  • Improvement Request
COMPONENT NAME
CKS
CLOUDSTACK VERSION
4.14.0
CONFIGURATION
OS / ENVIRONMENT

N/A

SUMMARY

When additional VMs are added to the k8s cluster network, cluster deletion fails with a message, Unable to delete cluster network. k8s cluster remains in destroying state. It gets removed once non-cluster VMs are migrated from the cluster network. Instead of failing during deletion itself, service can intimate user before deletion that the network is being used by other VMs and they must be migrated before deleting.

STEPS TO REPRODUCE
1. Create a k8s cluster without passing an existing network.
2. Create and add a new VM to this network outside of CKS
3. Delete k8s cluster
EXPECTED RESULTS
Service should throw an error before deleting k8s cluster that cluster network is in use by VMs outside k8s cluster. So these VMs can be migrated.
ACTUAL RESULTS
Service tries to delete the k8s cluster. Node VMs are deleted. But cannot delete the network. Error is thrown at this time. Cluster shows up in destroying state until VMs are migrated from the network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions