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 902459 - Persistent resource-related data after the resource is deleted
Summary: Persistent resource-related data after the resource is deleted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pacemaker
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Andrew Beekhof
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 987355
TreeView+ depends on / blocked
 
Reported: 2013-01-21 17:54 UTC by Jaroslav Kortus
Modified: 2013-11-21 12:08 UTC (History)
2 users (show)

Fixed In Version: pacemaker-1.1.10-6.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-11-21 12:08:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1635 0 normal SHIPPED_LIVE Low: pacemaker security, bug fix, and enhancement update 2013-11-20 21:53:44 UTC

Description Jaroslav Kortus 2013-01-21 17:54:07 UTC
Description of problem:
Pacemaker still keeps data about resources (or better, their related ops) that have already been deleted.

This negatively influences any new resource created with the same name.
One has to do "crm_resource --resource dummystateful --cleanup" 
Version-Release number of selected component (if applicable):
pacemaker-1.1.8-7.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. pcs resource create dummystateful nonsense op monitor interval="5s" (invalid resource agent is intended)
2. pcs resource delete dummystateful
3. pcs resource create dummystateful ocf:pacemaker:Stateful
4. (optional) crm_resource --resource dummystateful --cleanup

Actual results:
after step 1 (and before step 2) following info is printed:
 pengine[32644]:   notice: unpack_rsc_op: Preventing dummystateful from re-starting on marathon-03c2-node03: operation monitor failed 'not installed' (rc=5)
That is expected. But the same is printed from fresh resource in step 3.

Step 4 resolves the situation.

Expected results:
all resource related data and data about operations related to the resource should be deleted together with the resource so no newly created resource is influenced.


Additional info:

Comment 2 RHEL Program Management 2013-01-25 06:47:56 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Andrew Beekhof 2013-02-06 06:03:55 UTC
Traditionally this was for the admin to clean up, however David and I agree with your expectations.  He has a patch almost ready to go upstream.

Comment 4 David Vossel 2013-02-07 20:38:24 UTC
I patch has been committed for this upstream

https://github.com/ClusterLabs/pacemaker/commit/57a53082c5123500a15c99a2f1ff702230f2fdd0

Comment 5 Andrew Beekhof 2013-07-24 06:31:13 UTC
Current expectation is that we'll pick this up in a rebase for 6.5

Comment 8 Jaroslav Kortus 2013-09-12 15:59:18 UTC
No leftover found after running reproducer in comment 0.
cibadmin -Q | grep dummy shows nothing either.

pacemaker-1.1.10-9.el6.x86_64
pcs-0.9.82-1.el6.noarch
Marking as verified.

Comment 9 errata-xmlrpc 2013-11-21 12:08:44 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.

http://rhn.redhat.com/errata/RHSA-2013-1635.html


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