summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-13 03:04:46 -0500
committerJeff Carr <[email protected]>2024-10-13 03:04:46 -0500
commite149b3218d26b4996fc76072145efda6eb9f9856 (patch)
tree43ea8d350ea5eaf20c8313a07037383b40dd7680 /poll.go
parentca1a78394fe2fe7d556153819dd5f20e3d65920a (diff)
last version restarted virtigod to libvirt hang
it would appear at this point there is some sort of bug that hangs libvirtd. stracing it isn't obvious to me due to my lack of experience with really working with strace much. When virtigod hangs, 'virsh list' also hangs from the command line. If I kill virtigod, everything starts working again and I get lots of output from libvirtd --listen but I haven't investigated any of the errors yet or looked further. I probably will just work around this problem rather than solving it in this case since my need here is to get to working on riscv uboot development where my usefullness is better. hopefully. Or, maybe it's what I'm more interested in. maybe this bug doesn't exist on riscv. haha to you reading this, virtualization with riscv doesn't really even exist much yet. The chips are still too new! Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/poll.go b/poll.go
index b25e810..37a15ac 100644
--- a/poll.go
+++ b/poll.go
@@ -69,6 +69,15 @@ func findDroplet(name string) *DropletT {
return nil
}
+func findHypervisor(name string) *HyperT {
+ for _, h := range me.hypers {
+ if h.Hostname == name {
+ return h
+ }
+ }
+ return nil
+}
+
// check the state of the cluster and return a string
// that is intended to be sent to an uptime monitor like Kuma
func clusterHealthy() (bool, string) {