On Tue, May 22, 2018 at 04:52:57PM +0200, Valentin Vidic wrote:
> Yes, it is possible there are problems with python3 but I would prefer
> to get them fixed rather than going back to python2.  If we work
> together and with the upstream it should go pretty fast.

Please try the attached quick patch for fence_scsi and let us know
if there are still some issues with that agent.

-- 
Valentin
--- fence_scsi.orig     2018-05-22 14:56:46.011698189 +0000
+++ fence_scsi  2018-05-22 14:57:40.475370572 +0000
@@ -181,11 +181,11 @@
                fail_usage("Failed: cannot get cluster name")
 
        try:
-               return hashlib.md5(match.group(1)).hexdigest()
+               return hashlib.md5(match.group(1).encode('ascii')).hexdigest()
        except ValueError:
                # FIPS requires usedforsecurity=False and might not be
                # available on all distros: https://bugs.python.org/issue9216
-               return hashlib.md5(match.group(1), usedforsecurity=False).hexdigest()
+               return hashlib.md5(match.group(1).encode('ascii'), usedforsecurity=False).hexdigest()
 
 
 def get_node_id(options):

Reply via email to