Hello community, here is the log from the commit of package yast2-cluster for openSUSE:Factory checked in at 2017-12-05 01:30:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-cluster (Old) and /work/SRC/openSUSE:Factory/.yast2-cluster.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "yast2-cluster" Tue Dec 5 01:30:10 2017 rev:20 rq:548023 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-cluster/yast2-cluster.changes 2017-11-01 11:09:50.757318186 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-cluster.new/yast2-cluster.changes 2017-12-05 01:30:19.469110258 +0100 @@ -1,0 +2,6 @@ +Fri Dec 1 06:08:41 UTC 2017 - nwang@suse.com + +- fate#323526, support python3. +- Version 4.0.1 + +------------------------------------------------------------------- Old: ---- yast2-cluster-4.0.0.tar.bz2 New: ---- yast2-cluster-4.0.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-cluster.spec ++++++ --- /var/tmp/diff_new_pack.rkKTmW/_old 2017-12-05 01:30:20.561070589 +0100 +++ /var/tmp/diff_new_pack.rkKTmW/_new 2017-12-05 01:30:20.565070443 +0100 @@ -18,7 +18,7 @@ Name: yast2-cluster %define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services -Version: 4.0.0 +Version: 4.0.1 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-cluster-4.0.0.tar.bz2 -> yast2-cluster-4.0.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-cluster-4.0.0/package/yast2-cluster.changes new/yast2-cluster-4.0.1/package/yast2-cluster.changes --- old/yast2-cluster-4.0.0/package/yast2-cluster.changes 2017-10-31 11:07:24.256722880 +0100 +++ new/yast2-cluster-4.0.1/package/yast2-cluster.changes 2017-12-04 10:34:09.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Dec 1 06:08:41 UTC 2017 - nwang@suse.com + +- fate#323526, support python3. +- Version 4.0.1 + +------------------------------------------------------------------- Fri Oct 27 08:35:58 UTC 2017 - nwang@suse.com - bsc#1065393, remove checking bind address when unicast. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-cluster-4.0.0/package/yast2-cluster.spec new/yast2-cluster-4.0.1/package/yast2-cluster.spec --- old/yast2-cluster-4.0.0/package/yast2-cluster.spec 2017-10-31 11:07:24.256722880 +0100 +++ new/yast2-cluster-4.0.1/package/yast2-cluster.spec 2017-12-04 10:34:09.000000000 +0100 @@ -18,7 +18,7 @@ Name: yast2-cluster %define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services -Version: 4.0.0 +Version: 4.0.1 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-cluster-4.0.0/src/servers_non_y2/ag_openais new/yast2-cluster-4.0.1/src/servers_non_y2/ag_openais --- old/yast2-cluster-4.0.0/src/servers_non_y2/ag_openais 2017-10-31 11:07:24.292722880 +0100 +++ new/yast2-cluster-4.0.1/src/servers_non_y2/ag_openais 2017-12-04 10:34:09.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # -*- coding: utf8 -*- # @@ -179,7 +179,7 @@ return line.split('#')[0].rstrip().lstrip() def get_next_line(ff): - l = ff.next() + l = next(ff) return strip_comments_and_pending_space(l) @@ -235,7 +235,7 @@ for node in nodelist: f.write("\tnode {\n") # Sort the keys like ring0 and ring1 - klist=node.keys() + klist=list(node.keys()) klist.sort() for key in klist: if node[key] == "": @@ -417,7 +417,7 @@ member_str = "" for item in nodelist_options.get("node"): - if item.has_key("ring0_addr"): + if "ring0_addr" in item: address1 = item.get("ring0_addr", None) member_str += address1 address2 = item.get("ring1_addr", None) @@ -438,7 +438,7 @@ # obsolete setting. BNC-879596, pop up a message if config file is in old format. def check_conf_format(): for x in range(len(totem_options["interface"])): - if totem_options["interface"][x].has_key("oldlist"): + if "oldlist" in totem_options["interface"][x]: return "old" return "new" @@ -461,7 +461,7 @@ pass -class OpenAISConf_Parser: +class OpenAISConf_Parser(object): def __init__(self): load_ais_conf("/etc/corosync/corosync.conf") @@ -521,7 +521,7 @@ elif path[1] == "autoid": #FIXME, check nodelist has nodeid for i in nodelist_options.get('node'): - if i.has_key('nodeid'): + if 'nodeid' in i: return '"no"' return '"%s"' % totem_options.get("clear_node_high_bit", "yes") elif path[1] == "rrpmode": @@ -738,7 +738,7 @@ else: return "false" return "false" -class SCR_Agent: +class SCR_Agent(object): def __init__(self): self.command = "" self.path = "" @@ -801,20 +801,20 @@ #y2debug("Command %s %s" % (scr_agent.command,scr_agent.path)); if (scr_agent.command == 'Dir' ): - print openais_agent.doList(scr_agent.path) + print(openais_agent.doList(scr_agent.path)) elif (scr_agent.command == 'Read'): - print openais_agent.doRead(scr_agent.path) + print(openais_agent.doRead(scr_agent.path)) elif (scr_agent.command == 'Write'): - print openais_agent.doWrite(scr_agent.path, scr_agent.args) + print(openais_agent.doWrite(scr_agent.path, scr_agent.args)) elif (scr_agent.command == 'result'): break else: #y2error ("Unknown command: %s" % scr_agent.command) - print "nil\n" + print("nil\n") try: sys.stdout.flush() except: