[GH-ISSUE #388] Instance shutdown problem #243

Open
opened 2026-02-27 15:57:56 +03:00 by kerem · 1 comment
Owner

Originally created by @xujianhua1974 on GitHub (Nov 10, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/388

@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

Originally created by @xujianhua1974 on GitHub (Nov 10, 2020). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/388 @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](https://user-images.githubusercontent.com/68722846/98626566-0055a980-234d-11eb-9748-4c06b2ffec76.png) ![3](https://user-images.githubusercontent.com/68722846/98626571-021f6d00-234d-11eb-9de8-da29ce2e65f7.png) ![2](https://user-images.githubusercontent.com/68722846/98626575-02b80380-234d-11eb-9d2c-9de9509dd6eb.png) ![1](https://user-images.githubusercontent.com/68722846/98626578-03e93080-234d-11eb-823a-cb771151b7c3.png) 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](https://user-images.githubusercontent.com/68722846/98626612-11061f80-234d-11eb-8ec5-ef9f92f903d4.png)
Author
Owner

@catborise commented on GitHub (Nov 10, 2020):

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

<!-- gh-comment-id:724521493 --> @catborise commented on GitHub (Nov 10, 2020): We should see the poweroff code. May be it does not return...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#243
No description provided.