<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>All systems uses libvirtd as service and systemctl? If true:<br>
<br>
Reviewed-By: Ramon Medeiros <a class="moz-txt-link-rfc2396E" href="mailto:ramonn@br.ibm.com"><ramonn@br.ibm.com></a><br>
</p>
<br>
<div class="moz-cite-prefix">On 12/06/2016 04:20 PM, Lucio Correia
wrote:<br>
</div>
<blockquote
cite="mid:1481048458-3418-1-git-send-email-luciojhc@linux.vnet.ibm.com"
type="cite">
<pre wrap="">Starting with Ubuntu 16.10, it also comes with libvirtd and
differentiate it from other distros is not necessary anymore.
It also fixes an issue on libvirt service status verification
causing failure on Kimchi plugin loading:
dev@u1610:$ systemctl is-active libvirt-bin.service
inactive
dev@u1610:$ systemctl is-active libvirtd.service
active
Signed-off-by: Lucio Correia <a class="moz-txt-link-rfc2396E" href="mailto:luciojhc@linux.vnet.ibm.com"><luciojhc@linux.vnet.ibm.com></a>
---
utils.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/utils.py b/utils.py
index 26d3cf6..1e2c951 100644
--- a/utils.py
+++ b/utils.py
@@ -20,7 +20,6 @@
import contextlib
import json
-import platform
import re
import sqlite3
import time
@@ -264,11 +263,6 @@ def is_libvirtd_up():
"""
Checks if libvirtd.service is up.
"""
- distro, _, _ = platform.linux_distribution()
- if distro.lower() == 'ubuntu':
- cmd = ['systemctl', 'is-active', 'libvirt-bin.service']
- else:
- cmd = ['systemctl', 'is-active', 'libvirtd.service']
-
+ cmd = ['systemctl', 'is-active', 'libvirtd.service']
output, error, rc = run_command(cmd, silent=True)
return True if output == 'active\n' else False
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
<a class="moz-txt-link-abbreviated" href="mailto:ramonn@br.ibm.com">ramonn@br.ibm.com</a> </pre>
</body>
</html>