pelican-dev / panel

https://pelican.dev
GNU Affero General Public License v3.0
927 stars 97 forks source link

Able to delete servers last allocation breaking wings. #654

Open notAreYouScared opened 1 month ago

notAreYouScared commented 1 month ago

When viewing a server the admin can select the last allocation in the table and use the bulk disassociate option to remove it from that server. Resulting in no allocations for that server. When the end user attempts to start the server with no allocations it results in wings throwing the following error

ERROR: [Oct 22 21:12:15.028] failed to load server, skipping... error=expected { character for map value server=b05f2cb2-e585-40e3-8ae4-1adbca2179cf

https://github.com/pelican-dev/panel/pull/645 should've fixed it? but appears to still be broken

Some how I was able to remove the primary allocation. leaving the last one, which i can still delete... image

RMartinOscar commented 1 month ago

Only able to reproduce when using multiple tabs otherwise i just get a 500 and the allocation doesn't get removed I even created an allocation on the node, selected it then in a new tab i create the server and comeback to the first tab hit delete selected. image