cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
298 stars 75 forks source link

The storage pools will auto duplicate when one new VM created #1868

Open 8ar10der opened 1 month ago

8ar10der commented 1 month ago

Arch Linux with kernel 6.6.56-1-lts cockpit-machines 321-1

Once I create a new VM, each pool will create a duplicate itself in the storage pools. If I remove one of them, all the same name pools will be removed.

image

jelly commented 1 month ago

My first guess would be that this would be one for user and one for the system connection, but that isn't the case. What does virsh pool-list show?

I can't reproduce this on my own Arch Linux machine.

8ar10der commented 1 month ago

Hi @jelly

The output looks fine. By the way, I just rebooted the server, and the duplicate item disappeared (before rebooting, I tried restarting the cockpit service, but it didn’t work). After that, I couldn’t reproduce the issue either.

I don’t think it’s a libvirt issue. It seems more like an HTML and JavaScript bug that only happens after a specific (uncommon) operation. I remember creating and removing a new VM at least four times within 10 minutes, and then I noticed the bug.

 Name      State    Autostart
-------------------------------
 BigPool   active   yes
 default   active   yes
 ISO       active   yes
 NVME      active   yes
8ar10der commented 1 month ago

I think we can close the issue until someone reproduce the same case.

jelly commented 1 month ago

Thanks for the detailed information, I didn't try creating a vm and then deleting it. Only creating multiple storage pools. I'll attempt to reproduce it with your steps.