82 lines
3.0 KiB
Diff
82 lines
3.0 KiB
Diff
|
Index: pacemaker-1.1.18+20180101.494eacba4/cts/CIB.py
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/cts/CIB.py
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/cts/CIB.py
|
||
|
@@ -403,7 +403,7 @@ Description=Dummy resource that takes a
|
||
|
|
||
|
[Service]
|
||
|
Type=notify
|
||
|
-ExecStart=/usr/bin/python -c 'import time, systemd.daemon; time.sleep(10); systemd.daemon.notify("READY=1"); time.sleep(86400)'
|
||
|
+ExecStart=/usr/bin/python3 -c 'import time, systemd.daemon; time.sleep(10); systemd.daemon.notify("READY=1"); time.sleep(86400)'
|
||
|
ExecStop=/bin/sh -c 'sleep 10; [ -n "\$MAINPID" ] && kill -s KILL \$MAINPID'
|
||
|
"""
|
||
|
|
||
|
Index: pacemaker-1.1.18+20180101.494eacba4/cts/CTSlab.py
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/cts/CTSlab.py
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/cts/CTSlab.py
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/usr/bin/python
|
||
|
+#!/usr/bin/python3
|
||
|
|
||
|
'''CTS: Cluster Testing System: Lab environment module
|
||
|
'''
|
||
|
Index: pacemaker-1.1.18+20180101.494eacba4/cts/OCFIPraTest.py
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/cts/OCFIPraTest.py
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/cts/OCFIPraTest.py
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/usr/bin/python
|
||
|
+#!/usr/bin/python3
|
||
|
|
||
|
'''OCF IPaddr/IPaddr2 Resource Agent Test'''
|
||
|
|
||
|
Index: pacemaker-1.1.18+20180101.494eacba4/lrmd/regression.py.in
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/lrmd/regression.py.in
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/lrmd/regression.py.in
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/usr/bin/python
|
||
|
+#!/usr/bin/python3
|
||
|
""" Regression tests for Pacemaker's lrmd
|
||
|
"""
|
||
|
|
||
|
@@ -412,7 +412,7 @@ class Tests(object):
|
||
|
os.system("dd if=/dev/urandom of=/etc/pacemaker/authkey bs=4096 count=1")
|
||
|
|
||
|
### Make fake systemd daemon and unit file ###
|
||
|
- dummy_daemon = """#!/usr/bin/python
|
||
|
+ dummy_daemon = """#!/usr/bin/python3
|
||
|
import time, systemd.daemon
|
||
|
time.sleep(3)
|
||
|
systemd.daemon.notify("READY=1")
|
||
|
@@ -432,7 +432,7 @@ description "Dummy service for regre
|
||
|
exec dd if=/dev/random of=/dev/null
|
||
|
""")
|
||
|
|
||
|
- dummy_fence_sleep_agent = ("""#!/usr/bin/python
|
||
|
+ dummy_fence_sleep_agent = ("""#!/usr/bin/python3
|
||
|
import sys
|
||
|
import time
|
||
|
def main():
|
||
|
Index: pacemaker-1.1.18+20180101.494eacba4/fencing/fence_dummy
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/fencing/fence_dummy
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/fencing/fence_dummy
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/usr/bin/python
|
||
|
+#!/usr/bin/python3
|
||
|
"""Dummy fence agent for testing
|
||
|
"""
|
||
|
|
||
|
Index: pacemaker-1.1.18+20180101.494eacba4/fencing/regression.py.in
|
||
|
===================================================================
|
||
|
--- pacemaker-1.1.18+20180101.494eacba4.orig/fencing/regression.py.in
|
||
|
+++ pacemaker-1.1.18+20180101.494eacba4/fencing/regression.py.in
|
||
|
@@ -1,4 +1,4 @@
|
||
|
-#!/usr/bin/python
|
||
|
+#!/usr/bin/python3
|
||
|
""" Regression tests for Pacemaker's stonithd
|
||
|
"""
|
||
|
|