Description of problem: Disconnected install with pre-synced images fails at service catalog because it's using imagePullPolicy: Always hard-coded. https://docs.openshift.com/container-platform/3.7/install_config/install/disconnected_install.html#disconnected-syncing-images Version-Release number of the following components: $ rpm -q openshift-ansible openshift-ansible-3.7.9-1.git.7.eedd332.el7.noarch $ rpm -q ansible ansible-2.4.1.0-1.el7.noarch $ ansible --version ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/nekop/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] How reproducible: Always Steps to Reproduce: 1. Perform disconnect 2. 3. Actual results: Failed at TASK [openshift_service_catalog : wait for api server to be ready] Expected results: No fail and it uses imagePullPolicy: IfNotPresent Additional info: We may want to review other "imagePullPolicy: Always" usages. $ find /usr/share/ansible/openshift-ansible/ -type f | xargs grep 'imagePullPolicy: Always' /usr/share/ansible/openshift-ansible/roles/lib_openshift/src/test/integration/oc_obj.yml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/lib_openshift/src/test/integration/oc_obj.yml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v1.3/quickstart-templates/apicast-gateway-template.yml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v1.4/cfme-templates/jboss-middleware-manager-template.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v1.5/cfme-templates/jboss-middleware-manager-template.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v3.6/cfme-templates/jboss-middleware-manager-template.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v3.7/cfme-templates/jboss-middleware-manager-template.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.0/enterprise/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.0/origin/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.1/enterprise/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.1/origin/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.2/enterprise/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.2/origin/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.3/enterprise/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.3/origin/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.4/enterprise/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_hosted_templates/files/v1.4/origin/logging-deployer.yaml: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_service_catalog/templates/api_server.j2: imagePullPolicy: Always /usr/share/ansible/openshift-ansible/roles/openshift_service_catalog/templates/controller_manager.j2: imagePullPolicy: Always
https://github.com/openshift/openshift-ansible/pull/6819
Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/4fca5efde8ac210b96846a553153a444c13be4fb Bug 1524805- ServiceCatalog now works disconnected Change imagePullPolicy for service catalog from Always to IfNotPresent, allowing service catalog to install in a disconnected setting https://github.com/openshift/openshift-ansible/commit/0905e3ffb267317da5ae743f201438e2aca96f86 Merge pull request #6819 from fabianvf/1524805-service-catalog-pull-policy Automatic merge from submit-queue. Bug 1524805- ServiceCatalog now works disconnected Change imagePullPolicy for service catalog from Always to IfNotPresent, allowing service catalog to install in a disconnected setting https://bugzilla.redhat.com/show_bug.cgi?id=1524805
This bug is targeted for 3.9, while this bug is attached to a 3.5/3.6/3.7 errata, pls attach it to a correct errata.
Tested in openshift-ansible-3.9.0-0.31.0.git.0.e0a0ad8.el7.noarch The imagePullPolicy of CFME templates is still Always, according to the bug, there seems a fix needed for CFME template as well. # find /usr/share/ansible/openshift-ansible/ -type f | xargs grep 'imagePullPolicy: Always' |grep '3\.9' /usr/share/ansible/openshift-ansible/roles/openshift_examples/files/examples/v3.9/cfme-templates/jboss-middleware-manager-template.yaml: imagePullPolicy: Always
https://github.com/openshift/openshift-ansible/pull/7079
Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/1815a3bf3d68d68027aa163606bcce80a8effe53 Bug 1524805- CFME example now works disconnected https://github.com/openshift/openshift-ansible/commit/26a72e6bb86d8c85c41c269bf1bd4dd8f3a5cd15 Merge pull request #7079 from fabianvf/1524805-cloudforms-pull-policy Bug 1524805- CFME example now works disconnected
Verified in openshift-ansible-3.9.0-0.48.0.git.0.2fb33db.el7.noarch.rpm imagePullPolicy had been changed to IfNotPresent: # oc get ds -n kube-service-catalog -o yaml |grep imagePullPolicy imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent All the imagePullPolicy had been updated accordingly: # find /usr/share/ansible/openshift-ansible/ -type f | xargs grep 'imagePullPolicy: Always' |grep '3\.9'
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:0489