Bug 1904907

Summary: heketi dev build of OCS 3.11.6 can misinterpret pending entries in db created by older heketi versions
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Raghavendra Talur <rtalur>
Component: heketiAssignee: John Mulligan <jmulligan>
Status: CLOSED ERRATA QA Contact: susgupta
Severity: high Docs Contact:
Priority: unspecified    
Version: ocs-3.11CC: hchiramm, madam, pprakash, puebele, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: heketi-9.0.0-14.el7rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-17 04:31:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Raghavendra Talur 2020-12-07 03:57:49 UTC
Description of problem:

If Heketi version 9.0.0-{10,11,12,13} load a db having pending operation entries  created by older heketi versions, it can misinterpret the operations and prevent clean up of the entries.

Version-Release number of selected component (if applicable):
9.0.0-{10,11,12,13}

How reproducible:
Always if the db has pending entries.


Steps to Reproduce:
1. Using heketi version 9.0.0-9 start some device remove operations.  
2. Scale down the heketi pod while the device remove operation is ongoing. It would help to have many bricks on the device being removed.
3. Edit the heketi deploymentConfig to point to a newer heketi image(the one with version > 9.0.0-9.5) and scale up the heketi pod.

You should see log messages which error out cleaning the pending errors.



Actual results:


Expected results:


Additional info:

Comment 13 errata-xmlrpc 2020-12-17 04:31:42 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 (OpenShift Container Storage 3.11.z bug fix update), 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://access.redhat.com/errata/RHBA-2020:5602