Description of problem: Receive the following error when deploying an offline environment. [1] TASK [openshift_metrics : generate htpasswd file for hawkular metrics] ********* fatal: [testocp12mst1l.example.com]: FAILED! => { "changed": true, "cmd": "docker run -i -a STDIN -a STDOUT -v \"/tmp/openshift-metrics-ansible-VB64dW\" \"registry.access.redhat.com/rhscl/httpd-24-rhel7\" htpasswd -ni hawkular > '/tmp/openshift-metrics-ansible-VB64dW/hawkular-metrics.htpasswd' < '/tmp/openshift-metrics-ansible-VB64dW/hawkular-metrics.pwd'", "delta": "0:00:45.024288", "end": "2017-07-25 15:52:47.558694", "failed": true, "rc": 125, "start": "2017-07-25 15:52:02.534406", "warnings": [] } These properties are set in the inventory: openshift_hosted_metrics_deployer_prefix=redhat-docker.repo.example.com.com/openshift3/ openshift_hosted_metrics_deploy=true /usr/share/ansible/openshift-ansible/roles/openshift_metrics/vars/openshift-enterprise.yml looks like this: --- __openshift_metrics_image_prefix: "{{ openshift_hosted_metrics_deployer_prefix | default('registry.access.redhat.com/openshift3/') }}" __openshift_metrics_image_version: "{{ openshift_hosted_metrics_deployer_version | default ('3.5.0') }}" __openshift_metrics_httpd_image: "registry.access.redhat.com/rhscl/httpd-24-rhel7" So the openshift_metrics_httpd_image file is hardcoded to point to registry.access.redhat.com. Can we get a property to set the override for this value? Was able to modify this value to get around this issue. Version-Release number of selected component (if applicable): 3.5 How reproducible: N/a for now Steps to Reproduce: 1. 2. 3. Actual results: Receive error [1] Expected results: Play completes successfully. 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
Would this work for you or would you like a new variable just to set this one image? __openshift_metrics_httpd_image: "{{ __openshift_metrics_image_prefix | split('/')[0] }}/rhscl/httpd-24-rhel7"
That appears to work for me. I will test later today and remove the NEEDINFO. -mahoney
That line worked for me. -mahoney
The playbooks were actually amended to not depend on this image starting in openshift-ansible-3.5.71-1.git.0.128c2db.el7