retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.7k stars 372 forks source link

Instance shutdown problem #388

Open xujianhua1974 opened 4 years ago

xujianhua1974 commented 4 years ago

@catborise , Colud you help me to troublshoot my problem, I had pacemaker cluster to manage HA vm instances, and I wrote a script to disable the cluster resource related vm instance, and changed the instances views:poweroff function code just calling the script if the vm instance is managed by pacemaker cluster. When I shutdown a vm Instance from the instance view page by clicking the Poweroff button, and I saw the VM was shutdown indeed from the host terminal through "virsh list --all", but the instance view page kept wrong content tabpanel from changed, and I saw the page kept runnging the interval get_status javascript of the instance.html as the same with other vm instances through the project running window (in pyCharm IDE), the page kept frequently flashing a hint "waiting http://127.0.0.1" at the bottom of the broswer. Even if I refreshed the page by clicking the refresh icon of the vm instance page or through F5 (browser refresh button), no change occured. The instance view page was shown properly only if I closed the page, and reopened the vm intance page. By the way, the intance view page was shown properly when I clicked poweron button (changed the instance status from shutdown to startup). I saw no change occured on the vm instance database during the VM shutdown and startup, and the HA VM running on the same host in the pacemake cluster every time when it startup. What may be the root cause? 4 3 2 1

The instance view page was shown properly as following only if I closed the page, and reopened the vm intance page or clicked other links to change the page and return the vm instance view page . 5

catborise commented 4 years ago

We should see the poweroff code. May be it does not return...