Red Hat Bugzilla – Bug 1549296
openshift_logging_es_pvc_storage_class_name' is undefined, prevents logging from deploying
Last modified: 2018-04-05 05:40:24 EDT
Description of problem: Using openshift-ansible-3.7.23-1.git.0.bc406aa.el7.noarch to deploy in either GCE or AWS, the following error is issued: TASK [openshift_logging_elasticsearch : Creating ES storage template - static] ************************************************************* Monday 26 February 2018 16:48:15 -0500 (0:00:00.487) 0:02:27.148 ******* fatal: [18.219.244.29]: FAILED! => {"msg": "The field 'vars' has an invalid value, which includes an undefined variable. The error was: {{ o penshift_logging_es_pvc_storage_class_name }}: 'openshift_logging_es_pvc_storage_class_name' is undefined\n\nThe error appears to have been in '/home/dyocum/git/openshift-tools/openshift/installer/vendored/openshift-ansible-3.7.23/roles/openshift_logging_elasticsearch/tasks/main. yaml': line 330, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # storageclasses with the storageClassName set to \"\" in pvc.j2\n - name: Creating ES storage template - static\n ^ here\n\nexc eption type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: {{ openshift_logging_es_pvc_storage_class_name }}: 'openshift_log ging_es_pvc_storage_class_name' is undefined"} Version-Release number of selected component (if applicable): ppenshift-ansible-3.7.23-1.git.0.bc406aa.el7.noarch How reproducible: Always Steps to Reproduce: 1. provision a cluster in AWS or GCE with logging Actual results: logging fails to deploy Expected results: logging is deployed Additional info: Description of problem: Version-Release number of the following components: rpm -q openshift-ansible rpm -q ansible ansible --version How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Please include the entire output from the last TASK line through the end of output if an error is generated Expected results: Additional info: Please attach logs from ansible-playbook with the -vvv flag
This used to work when using openshift-ansible-3.7.14.
This should be resolved as of openshift-ansible-3.7.24-1 Can you please test using that release?
I will test with the 3.7.31 candidate release and let you know.
I'm using o-a 3.7.35 candidate rpm and this is no longer an issue.
I can install logging via ansible using oc v3.7.36
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/RHBA-2018:0636