RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1163983 - Support for crm_resource --restart with pcs resource restart
Summary: Support for crm_resource --restart with pcs resource restart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-13 20:55 UTC by Chris Feist
Modified: 2015-03-05 09:20 UTC (History)
3 users (show)

Fixed In Version: pcs-0.9.136-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 09:20:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0415 0 normal SHIPPED_LIVE pcs bug fix and enhancement update 2015-03-05 14:16:41 UTC

Description Chris Feist 2014-11-13 20:55:24 UTC
Support for crm_resource --restart with pcs resource restart

Comment 3 Chris Feist 2014-11-24 23:05:17 UTC
Unit Tests:

[root@rh7-1 pcs]# pcs resource create DummyRes Dummy


Before:
[root@rh7-2 etc]# rpm -q pcs
pcs-0.9.115-29.el7.x86_64
[root@rh7-2 etc]# pcs resource restart DummyRes

Usage: pcs resource [commands]...
Manage pacemaker resources
...


After:
[root@rh7-1 pcs]# rpm -q pcs
pcs-0.9.136-2.el7.x86_64
[root@rh7-1 pcs]# pcs resource restart DummyRes
DummyRes successfully restarted
[root@rh7-1 pcs]#

While running this command on rh7-2:
[root@rh7-2 etc]# while true; do sleep 1 ; crm_mon -1r | grep DummyRes ; done
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Stopped 
 DummyRes	(ocf::heartbeat:Dummy):	Stopped 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2 
 DummyRes	(ocf::heartbeat:Dummy):	Started rh7-2

Comment 5 Radek Steiger 2015-01-15 09:33:59 UTC
> Before fix:

Resource restart not supported.


> After fix:

[root@virt-041 ~]# rpm -q pcs
pcs-0.9.137-10.el7.x86_64

On one console:

[root@virt-041 ~]# date +%T; pcs resource restart dummy0
10:31:48
dummy0 successfully restarted

...while on other console:

[root@virt-041 tmp]# while true; do echo -n `date +%T`; crm_resource --list | grep dummy0 ; sleep 1; done
10:31:47 dummy0	(ocf::heartbeat:Dummy):	Started 
10:31:48 dummy0	(ocf::heartbeat:Dummy):	Started 
10:31:49 dummy0	(ocf::heartbeat:Dummy):	Stopped 
10:31:50 dummy0	(ocf::heartbeat:Dummy):	Stopped 
10:31:51 dummy0	(ocf::heartbeat:Dummy):	Started 
10:31:52 dummy0	(ocf::heartbeat:Dummy):	Started 


NOTE: The restart functionality may suffer from bug 1182244, which is present in RHEL7.1 pacemaker.

Comment 7 errata-xmlrpc 2015-03-05 09:20:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0415.html


Note You need to log in before you can comment on or make changes to this bug.