Bug 1705446

Summary: upgrade playbook should take backup of heketidb before deleting heketi resources.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nitin Goyal <nigoyal>
Component: cns-ansibleAssignee: John Mulligan <jmulligan>
Status: CLOSED CURRENTRELEASE QA Contact: Nitin Goyal <nigoyal>
Severity: high Docs Contact:
Priority: unspecified    
Version: ocs-3.11CC: asambast, hchiramm, jarrpa, knarra, kramdoss, madam, puebele, rhs-bugs, sarumuga
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.11.115 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-13 05:22:06 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:
Bug Depends On:    
Bug Blocks: 1703695    

Description Nitin Goyal 2019-05-02 10:31:54 UTC
Description of problem: upgrade playbook should take backup of heketidb before deleting heketi resources to prevent from any db corruption. 


Version-Release number of selected component (if applicable):
# rpm -qa | grep openshift-ansible
openshift-ansible-3.11.110-1.git.0.b53e105.el7.noarch

How reproducible:


Steps to Reproduce:
1. upgrade ocs 3.10 to ocs 3.11 via ansible playbook.

Actual results: It is not taking any db backup


Expected results: It should take db backup


Additional info:

Comment 2 Jose A. Rivera 2019-05-02 12:13:55 UTC
Is this a step that is in the existing upgrade documentation?

Comment 3 Nitin Goyal 2019-05-03 05:40:23 UTC
(In reply to Jose A. Rivera from comment #2)
> Is this a step that is in the existing upgrade documentation?

Yes it is.

link to doc -> https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/3.11/html-single/deployment_guide/index#idm140154237356032

step 2 'Backup the Heketi database file'

Comment 4 Jose A. Rivera 2019-05-03 19:11:40 UTC
Roger that, I'll take it.

Comment 5 Jose A. Rivera 2019-05-07 14:45:43 UTC
PR is upstream: https://github.com/openshift/openshift-ansible/pull/11588

Comment 6 Jose A. Rivera 2019-05-08 14:04:36 UTC
PR is merged.