Bug 1811527

Summary: hawkular cassandra pod not using the same pvc after updating.
Product: OpenShift Container Platform Reporter: Sudarshan Chaudhari <suchaudh>
Component: HawkularAssignee: Jan Martiska <jmartisk>
Status: CLOSED NOTABUG QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: high    
Version: 3.11.0CC: alegrand, anpicker, aos-bugs, erooth, jmartisk, kakkoyun, lcosic, mloibl, pkrupa, surbania
Target Milestone: ---Flags: erich: needinfo?
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-09 08:13:35 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 Sudarshan Chaudhari 2020-03-09 06:49:17 UTC
Description of problem:

after upgrading the hawkular metrics to the latest version the new pvc is getting created with the name gluster-metrics-claim1 instead of using the old pvc gluster-metrics-claim.

Version-Release number of the following components:
rpm -q openshift-ansible
~~~
openshift-ansible-playbooks-3.11.170-2.git.5.8802564.el7.noarch
openshift-ansible-3.11.170-2.git.5.8802564.el7.noarch
openshift-ansible-docs-3.11.170-2.git.5.8802564.el7.noarch
openshift-ansible-roles-3.11.170-2.git.5.8802564.el7.noarch
~~~

How reproducible:
always

we tried adding the complete name of the pvc as [1], the new pvc did not get create but the cassandra pod failed while writing as the uid changed

[1] inventory variables:
~~~
openshift_metrics_cassandra_pvc_name=gluster-metrics-claim
openshift_metrics_storage_volume_name=gluster-metrics-claim
openshift_metrics_cassandra_pvc_prefix=gluster-metrics-claim
~~~


Actual results:
Ansible playbook creating the new volume instead of using the old one:
~~~
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-E1iyMw/templates/hawkular-cassandra-pvc1.yaml] ***
Friday 21 February 2020  16:39:26 +0100 (0:00:00.518)       0:03:20.026 ******* 
ok: [ocp-master-1.nfv.cselt.it]
~~~


Expected results:

After updating/upgrading hawlukar-metrics the existing pvc should be used. 

Additional info:
Attaching the logs from ansible-playbook.

Comment 1 Sudarshan Chaudhari 2020-03-09 06:50:01 UTC
Need help to know if this is expected or a bug. 

If bug, what changes we need to do?