This website requires JavaScript.
Explore
Help
Sign In
seasharp
/
anvil
Watch
1
Star
0
Fork
0
You've already forked anvil
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
4f6fa4b6ed
anvil
/
tools
/
anvil-virsh-wrapper
11 lines
120 B
Plaintext
Raw
Normal View
History
Unescape
Escape
virsh: add wrapper to serialize calls to virsh list avoid storm of virsh list that overloads libvirtd API causing unnecessary timeouts during pcmk monitoring operations. Resolves: https://github.com/ClusterLabs/anvil/issues/395 Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-08-05 05:49:54 +00:00
#!/bin/sh -e
(
if [ "$1" != "list" ]; then
Fixed wrappers to handle quoted arguments properly. Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-10 14:10:54 +00:00
virsh "$@"
virsh: add wrapper to serialize calls to virsh list avoid storm of virsh list that overloads libvirtd API causing unnecessary timeouts during pcmk monitoring operations. Resolves: https://github.com/ClusterLabs/anvil/issues/395 Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-08-05 05:49:54 +00:00
exit $?
fi
flock -e 200
Fixed wrappers to handle quoted arguments properly. Signed-off-by: digimer <mkelly@alteeve.ca>
2023-10-10 14:10:54 +00:00
virsh "$@"
virsh: add wrapper to serialize calls to virsh list avoid storm of virsh list that overloads libvirtd API causing unnecessary timeouts during pcmk monitoring operations. Resolves: https://github.com/ClusterLabs/anvil/issues/395 Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2023-08-05 05:49:54 +00:00
) 200>/tmp/virsh.lock
Reference in New Issue
Copy Permalink