Nanocloud / nanocloud

http://nanocloud.com
GNU Affero General Public License v3.0
25 stars 16 forks source link

Machine not deleted after deleting associated image #471

Open marc-cabocel opened 7 years ago

marc-cabocel commented 7 years ago

=== Version ===

=== Steps to reproduce ===

=== Expected Result ===

=== Actual Result ===

=== Analysis ===

corentindrouet commented 7 years ago

If a user is using this vm, in the same time an admin delete the image associated to this vm, the user will see that he can't access it again only after delogging. When the user delog from his machine, he will not have access again to it, and the machine will be deleted after the session duration. This is not a bug, it's for didn't close sessions of users, who are using their vms in the same time where the image is deleted.

Others machines assigned to this image, and without users assigned, are correctly deleted.

marc-cabocel commented 7 years ago

Thanks for the explanation. I understand it from a regular user point of view but as an administrator, it might be useful to at least give him the possibility to delete the VM (with a button for instance)

corentindrouet commented 7 years ago

It's the same for admins. Imagine this situation: An admin go to a vdi, and create an image. An other admin connect, and saw a new image, and doesn't agree with it, so he delete it. But when checking to machines, he see one who has not been deleted (because assigned to the other admin), so he delete it manually. But the other admin is on his vm, so he is brutally disconnected. Why is it usefull to let an admins delete vms manually?

marc-cabocel commented 7 years ago

Ok let's keep it that way and see whether it matters to the customer or not.