Bug 1463372

Summary: hawkular-cassandra-pvc1.yaml is generated with 'g' rather than 'Gi' when specifying storage size
Product: OpenShift Container Platform Reporter: emahoney
Component: HawkularAssignee: Matt Wringe <mwringe>
Status: CLOSED NOTABUG QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.5.1CC: aos-bugs, emahoney
Target Milestone: ---   
Target Release: ---   
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: 2017-06-20 19:42:47 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 emahoney 2017-06-20 16:38:46 UTC
Description of problem: When deploying metrics, <DIR>/templates/hawkular-cassandra-pvc1.yaml is being populated with 'g' rather than 'Gi'. When the playbook is ran, then we receive the error below:

error: unable to decode "/tmp/openshift-metrics-ansible-tsGwOp/templates/hawkular-cassandra-pvc1.yaml": quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'

Version-Release number of selected component (if applicable):
openshift-ansible-playbooks-3.5.53-1.git.0.8ade9f2.el7.noarch
ansible-2.2.1.0-2.el7.noarch
openshift-ansible-3.5.53-1.git.0.8ade9f2.el7.noarch
docker-1.12.6-16.el7.x86_64
atomic-openshift-3.5.5.5-1.git.0.f2e87ab.el7.x86_64


How reproducible:
Only able to reproduce this once. Second clean install ran without this issue. 

Steps to Reproduce:
1. N/A
2.
3.

Actual results: Was not able to deploy metrics. 


Expected results: Metrics deployed using storage in gibibytes.


Additional info:

Comment 1 Matt Wringe 2017-06-20 18:53:40 UTC
Can you please attach the inventory file used and the roles/openshift_metrics/default/main.yaml?

We don't specify a value which has a 'g' in it: https://github.com/openshift/openshift-ansible/blob/release-1.5/roles/openshift_metrics/defaults/main.yaml

Are you sure the value being used is not something you have specified in your inventory file?