vmware / container-service-extension

Container Service for VMware vCloud Director
https://vmware.github.io/container-service-extension
Other
77 stars 52 forks source link

Could not query cluster info when cluster in SUSPENDED status : The remote server returned an error: (500) Internal Server Error. #889

Open LeoPhat opened 3 years ago

LeoPhat commented 3 years ago

Hi all, I couldn't query the cluster info in SUSPENDED status to delete it (CSE 3.0.1). The detail error is below. How could I solve this issue? Thank you for your support. Br, Phat

Cluster status is SUSPENDED 1

Cluster status is POWER_ON 2

sahithi commented 3 years ago

Hi LeoPhat,

Looks like a bug.

It seems NFS node is down and CSE server failed to execute a script on NFS node to get the list of exports. I looked at the code and we are safely catching the exception. Not sure, how it resulted in 500?

Can you please share the stack trace from _cse_serverdebug.log?

sahithi commented 3 years ago

By the way, you could still attempt to delete the cluster and it should go through.

If the deletion fails for any reason, use this workaround listed on the Known issues page

Workaround:

  1. Delete the defined entity

POST https:///cloudapi/1.0.0/entities//resolve DEL https:///cloudapi/1.0.0/entities/

  1. Delete the cluster vApp.

Retrieve the vApp ID. vApp Id is same as the externalID value in the corresponding defined entity GET https:///cloudapi/1.0.0/entities/ Delete the corresponding cluster vApp