Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
pacemaker
pacemaker-tools-avoid-using-deprecated-options....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-tools-avoid-using-deprecated-options.patch of Package pacemaker
commit 80b3888720f563866b1e5688f724c57081d14001 Author: Ken Gaillot <kgaillot@redhat.com> Date: Wed Jan 3 12:06:18 2018 -0600 Low: tools: avoid using deprecated options Index: pacemaker/cts/CTStests.py =================================================================== --- pacemaker.orig/cts/CTStests.py +++ pacemaker/cts/CTStests.py @@ -1701,7 +1701,7 @@ class Reattach(CTSTest): self.is_unsafe = 0 # Handled by canrunnow() def _is_managed(self, node): - is_managed = self.rsh(node, "crm_attribute -t rsc_defaults -n is-managed -Q -G -d true", 1) + is_managed = self.rsh(node, "crm_attribute -t rsc_defaults -n is-managed -q -G -d true", 1) is_managed = is_managed[:-1] # Strip off the newline return is_managed == "true" @@ -2930,7 +2930,7 @@ class RemoteDriver(CTSTest): self.fail("Failed to set remote-node attribute. rc:%s output:%s" % (rc, line)) return - (rc, line) = self.CM.rsh(node, "crm_attribute -l forever -n testattr -Q -N %s" % (self.remote_node), None) + (rc, line) = self.CM.rsh(node, "crm_attribute -l forever -n testattr -q -N %s" % (self.remote_node), None) if rc != 0: self.fail("Failed to get remote-node attribute") return Index: pacemaker/cts/patterns.py =================================================================== --- pacemaker.orig/cts/patterns.py +++ pacemaker/cts/patterns.py @@ -40,8 +40,8 @@ class BasePatterns: "MaintenanceModeOn" : "cibadmin --modify -c --xml-text '<cluster_property_set id=\"cib-bootstrap-options\"><nvpair id=\"cts-maintenance-mode-setting\" name=\"maintenance-mode\" value=\"true\"/></cluster_property_set>'", "MaintenanceModeOff" : "cibadmin --delete --xpath \"//nvpair[@name='maintenance-mode']\"", - "StandbyCmd" : "crm_attribute -VQ -U %s -n standby -l forever -v %s 2>/dev/null", - "StandbyQueryCmd" : "crm_attribute -QG -U %s -n standby -l forever -d off 2>/dev/null", + "StandbyCmd" : "crm_attribute -Vq -U %s -n standby -l forever -v %s 2>/dev/null", + "StandbyQueryCmd" : "crm_attribute -qG -U %s -n standby -l forever -d off 2>/dev/null", } self.search = { "Pat:DC_IDLE" : "crmd.*State transition.*-> S_IDLE", Index: pacemaker/tools/regression.sh =================================================================== --- pacemaker.orig/tools/regression.sh +++ pacemaker/tools/regression.sh @@ -148,7 +148,7 @@ function test_tools() { test_assert 0 desc="Create node attribute" - cmd="crm_attribute -n ram -v 1024M -U node1 -t nodes" + cmd="crm_attribute -n ram -v 1024M -N node1 -t nodes" test_assert 0 desc="Query new node attribute"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor