turtle0x1 / LxdMosaic

Web interface to manage multiple instance of lxd
http://lxdmosaic.com
GNU General Public License v3.0
595 stars 61 forks source link

Migrating instance shouldn't lock #539

Closed turtle0x1 closed 2 years ago

turtle0x1 commented 2 years ago

If you want to migrate multiple instances at once its not really possible because the modal locks until the previous migration completes.

Its safe to refresh the page / close the browser while it runs so this lock isn't needed.

This change assumes the node server is always available but we do this alot now with event callbacks updating the UI so I dont think that assumption really matters.

turtle0x1 commented 2 years ago

Yikes, this harder than I expected.

Migrate is a copy (without clearing volatile.*) followed by delete, If you dont wait for the completion you just delete the instance before its deleted.

On the CLI the current tab will block when starting a migration, this should be our response in this event aswell.