Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1462352

Summary: Error from roles/openshift_metrics/tasks/install_cassandra.yaml:45
Product: OpenShift Container Platform Reporter: Justin Pierce <jupierce>
Component: InstallerAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: aos-bugs, ewolinet, jokerman, jupierce, juzhao, mmccomas, mwoodson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: As part of the RFE to be able to label pvs for pvc selectors, the default pvc selector was set to null but should have been an empty string. Consequence: The playbook fails if you do not provide a label to use Fix: The default is now '' Result: Playbook correctly runs to completion if you do not provide a pv label
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:28:09 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 Justin Pierce 2017-06-16 19:52:20 UTC
Description of problem:
During an upgrade of free-int cluster, received the following error:

-------------------
TASK [openshift_metrics : generate hawkular-cassandra persistent volume claims (dynamic)] ***
task path: /home/opsmedic/aos-cd/tmp/tmp.zqPTE6bwRQ/openshift-ansible_extract/roles/openshift_metrics/tasks/install_cassandra.yaml:45
fatal: [54.145.181.193]: FAILED! => {
    "failed": true, 
    "msg": "the field 'vars' has an invalid value, which appears to include a variable that is undefined. The error was: {{ openshift_hosted_metrics_storage_labels | default(null) }}: 'null' is undefined\n\nThe error appears to have been in '/home/opsmedic/aos-cd/tmp/tmp.zqPTE6bwRQ/openshift-ansible_extract/roles/openshift_metrics/tasks/install_cassandra.yaml': line 45, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: generate hawkular-cassandra persistent volume claims (dynamic)\n  ^ here\n"
}

PLAY RECAP *********************************************************************
54.145.181.193             : ok=82   changed=17   unreachable=0    failed=1   
localhost                  : ok=10   changed=0    unreachable=0    failed=0   
-------------------

Version-Release number of selected component (if applicable):
oc v3.6.114
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://internal.api.free-int.openshift.com:443
openshift v3.6.114
kubernetes v1.6.1+5115d708d7

(upgrading from v3.6.104)


How reproducible:
Unknown

Additional info:
Full log: https://atomic-e2e-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/aos-cd/job/cluster%252Foperation/234/console

Comment 4 Junqi Zhao 2017-06-23 06:50:07 UTC
same error with https://bugzilla.redhat.com/show_bug.cgi?id=1463055

Comment 6 Junqi Zhao 2017-06-26 09:28:11 UTC
Tested on OCP, this issue is fixed.

# openshift version
openshift v3.6.122
kubernetes v1.6.1+5115d708d7
etcd 3.2.0

https://openshift-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Launch%20Environment%20Flexy/16559/console

Comment 8 errata-xmlrpc 2017-08-10 05:28:09 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, 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/RHEA-2017:1716