[virt-tools-list] [RFC PATCH 2/4] virtManager: object: domain: Restrict time sync to qemu

Michael Weiser michael.weiser at gmx.de
Sat Nov 30 17:54:32 UTC 2019


Only run the API for qemu and test drivers, they are the only ones
that support it. This will save spamming logs with error output.

Signed-off-by: Michael Weiser <michael.weiser at gmx.de>
Suggested-by: Cole Robinson <crobinso at redhat.com>
---
 virtManager/object/domain.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py
index d720dca5..89862fdf 100644
--- a/virtManager/object/domain.py
+++ b/virtManager/object/domain.py
@@ -1149,6 +1149,11 @@ class vmmDomain(vmmLibvirtObject):
         Heavily based on
         https://github.com/openstack/nova/commit/414df1e56ea9df700756a1732125e06c5d97d792.
         """
+        # Only run the API for qemu and test drivers, they are the only ones
+        # that support it. This will save spamming logs with error output.
+        if not self.conn.is_qemu() and not self.conn.is_test():
+            return
+
         # retry an arbitrary number of times to give the agent some time to
         # come back online after e.g. resuming the domain
         attempt = 1
-- 
2.24.0





More information about the virt-tools-list mailing list