HPCCloud
HPCCloud copied to clipboard
EC2 instance persists in mongo after being terminated
I have noticed that after I terminate an EC2 instance via the UI I can not create a new EC2 instance with the same name. I get an error stating that name already exists. Digging though the mongo database I see that the entry in the cluster table that corresponds to the terminated EC2 instance remains in the database. Is that by design or should the database entries be removed when an instance is successfully terminated?
Yes, these should be cleaned up.
related to #429? Right now you can delete them manually on the Preferences/Status page.
also related to #238, more db clean up everywhere.
Been looking into this more ~~in the branch db-cleanup
~~.
Is that by design or should the database entries be removed when an instance is successfully terminated?
They should only be removed if:
- the instance is terminated and there is a new cluster replacing it. We still use the db entry of a terminated cluster to get its logs and its status.
- the instance is terminated and the simulation for the instance is deleted.
• the instance is terminated and the simulation for the instance is deleted.
Still wrong. If the cluster is used on multiple simulations and is terminated
status? We can't delete it because we might still need the logs for the other simulation!
related to #422 (on duplicate cluster names)
The image for the procedure has been sitting around on my desktop, transferring it here:
