Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 902459 - Persistent resource-related data after the resource is deleted
Persistent resource-related data after the resource is deleted
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pacemaker (Show other bugs)
6.4
Unspecified Unspecified
unspecified Severity high
: rc
: ---
Assigned To: Andrew Beekhof
Cluster QE
:
Depends On:
Blocks: 987355
  Show dependency treegraph
 
Reported: 2013-01-21 12:54 EST by Jaroslav Kortus
Modified: 2013-11-21 07:08 EST (History)
2 users (show)

See Also:
Fixed In Version: pacemaker-1.1.10-6.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-21 07:08:44 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1635 normal SHIPPED_LIVE Low: pacemaker security, bug fix, and enhancement update 2013-11-20 16:53:44 EST

  None (edit)
Description Jaroslav Kortus 2013-01-21 12:54:07 EST
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 Product and Program Management 2013-01-25 01:47:56 EST
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 01:03:55 EST
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 15:38:24 EST
I patch has been committed for this upstream

https://github.com/ClusterLabs/pacemaker/commit/57a53082c5123500a15c99a2f1ff702230f2fdd0
Comment 5 Andrew Beekhof 2013-07-24 02:31:13 EDT
Current expectation is that we'll pick this up in a rebase for 6.5
Comment 8 Jaroslav Kortus 2013-09-12 11:59:18 EDT
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 07:08:44 EST
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.