Actions being undone

This keeps cropping up and I'm not exactly sure what's causing it, but I now suspect it's status.pl

Sometimes when I move a VM the status shows as Webmin. A few minutes later it shows as Down. When I look at the details, the host system has reverted back to the host it was on pre-move. I can Move it again and select "System has been already moved manually?" = Yes, and the status then shows correctly again.

Similar when I delete a VM, occasionally it pops back up in the "List Managed Systems" list with status Down. If I go to System State -> Delete and delete it again, it disappears for good.

I suspect what could be happening is that I happen to be running the move or delete command while status.pl is running. So my move or delete command succeeds before status.pl, and status.pl then resets the host system or re-creates the missing config entry for the VM. Could that be?

If there are any logs, or any steps you can suggest to try to reproduce the issue, please let me know. This has been bugging me for a long time!

Status: 
Closed (fixed)

Comments

Interestingly I saw this myself recently, and have been digging into it - the issue seems to be poor use of locking in status.pl , which can cause saved changes in VMs to be over-written.

The next Cloudmin release will include a fix for this though. Let me know if you'd like to try out a beta.

That would be great, thanks. It crops up fairly often so I should be able to tell you if the fix works!

I can send you an updated package. Just let me know which Linux distribution you are running Cloudmin on, and which variant you have (GPL for Xen, GPL for KVM or Pro) ?

We have 3 Cloudmin servers (one in each of our 3 datacenters), all Pro versions running on CentOS 6 x86_64

Automatically closed -- issue fixed for 2 weeks with no activity.