Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to check whether is orphan instance and delete orphan instance with python

nova_client.servers.list has name only for each project and can only show non-orphan instance,

how to get a whole list of instance including orphan instance and check whether it is orphan instance and then delete this orphan instance with python script

how to check whether is orphan instance and delete orphan instance with python

orphan instance definition is that after deleted project first before deleted instance, the instance exist but not owned by any project, such as orphan floating ip,

we know that it can be deleted in web horizon, but we would like to list all instance including orphan instance with python script or command. if can use python script to delete orphan script will be a bonus

nova_client.servers.list has name only for each project and can only show non-orphan instance,

how to get a whole list of instance including orphan instance and check whether it is orphan instance and then delete this orphan instance with python script