Bug 1613100 - OpenShift-Ansible ignores oreg_url for registry-console Docker image
Summary: OpenShift-Ansible ignores oreg_url for registry-console Docker image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 3.11.0
Assignee: Michael Gugino
QA Contact: Johnny Liu
URL:
Whiteboard:
: 1630375 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-07 01:56 UTC by Weihua Meng
Modified: 2018-11-27 16:21 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1608476
Environment:
Last Closed: 2018-11-27 16:20:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Weihua Meng 2018-08-07 01:56:57 UTC
OCP v3.11 has this issue.
openshift-ansible-3.11.0-0.11.0.git.0.3c66516None.noarch

pod/registry-console-1-deploy   0/1       Error     0          36m

  Containers:
   registry-console:
    Image:      registry.access.redhat.com/openshift3/registry-console:v3.11

+++ This bug was initially created as a clone of Bug #1608476 +++

Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible
openshift-ansible-3.10.23-1.git.0.a9c7e7d.el7.noarch

rpm -q ansible
ansible-2.4.6.0-1.el7ae.noarch

ansible --version
ansible 2.4.6.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/cloud-user/.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, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

How reproducible:
Always

Steps to Reproduce:
1. Set oreg_url: 'registry.reg-aws.openshift.com:443/openshift3/ose-${component}:${version}' and 
openshift_release to a tag that's not available in https://access.redhat.com/containers
2. Deploy OpenShift-Ansible with registry-console
3. Notice the error

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

fatal: [infra-node-0.openshift.example.com]: FAILED! => {"changed": true, "checks": {"disk_availability": {"skipped": true, "skipped_reason": "Disabled by user request"}, "docker_image_availability": {"changed": true, "failed": true, "failures": [["OpenShiftCheckException", "One or more required container images are not available:\n    registry.access.redhat.com/openshift3/registry-console:v3.10\nChecked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>\nDefault registries searched: registry.reg-aws.openshift.com:443, registry.access.redhat.com\n"]], "msg": "One or more required container images are not available:\n    registry.access.redhat.com/openshift3/registry-console:v3.10\nChecked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>\nDefault registries searched: registry.reg-aws.openshift.com:443, registry.access.redhat.com\n"}, "docker_storage": {"skipped": true, "skipped_reason": "Disabled by user request"}, "memory_availability": {"skipped": true, "skipped_reason": "Disabled by user request"}, "package_availability": {"skipped": true, "skipped_reason": "Disabled by user request"}, "package_version": {"skipped": true, "skipped_reason": "Disabled by user request"}}, "failed": true, "msg": "One or more checks failed", "playbook_context": "install"}

Expected results:
registry-console is fetched from registry.reg-aws.openshift.com:443.

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

--- Additional comment from Michael Gugino on 2018-08-06 17:58:40 EDT ---

PR Created: https://github.com/openshift/openshift-ansible/pull/9447

Comment 2 Johnny Liu 2018-08-16 08:53:01 UTC
Seen like the above PR is not enough, re-test this with openshift-ansible-3.11.0-0.16.0.git.0.e82689aNone.noarch, still reproduce.

  1. Hosts:    qe-jialiu311-auto-mpdn-master-1.0816-ko4.qe.rhcloud.com, qe-jialiu311-auto-mpdn-master-2.0816-ko4.qe.rhcloud.com, qe-jialiu311-auto-mpdn-master-3.0816-ko4.qe.rhcloud.com, qe-jialiu311-auto-mpdn-node-1.0816-ko4.qe.rhcloud.com, qe-jialiu311-auto-mpdn-node-infra-1.0816-ko4.qe.rhcloud.com
     Play:     OpenShift Health Checks
     Task:     Run health checks (install) - EL
     Message:  One or more checks failed
     Details:  check "docker_image_availability":
               One or more required container images are not available:
                   registry.access.redhat.com/openshift3/registry-console:v3.11
               Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>
               Default registries searched: registry.redhat.io
               Blocked registries: registry.hacker.com

Comment 4 Scott Dodson 2018-08-16 13:54:25 UTC
Should've been fixed in https://github.com/openshift/openshift-ansible/pull/9607

Comment 7 liujia 2018-08-23 09:48:05 UTC
Still hit it on openshift-ansible-3.11.0-0.20.0.git.0.ec6d8caNone.noarch

When do upgrade with registry.dev.redhat.io registry sepecified. Image healthy check failed and it still try to check the image from old registry.access.redhat.com.

1. Hosts:    host-8-248-12.host.centralci.eng.rdu2.redhat.com
 Play:     OpenShift Health Checks
 Task:     Run health checks (upgrade)
 Message:  One or more checks failed
 Details:  check "docker_image_availability":
     One or more required container images are not available:
               registry.access.redhat.com/openshift3/registry-console:v3.11
          Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>
             Default registries searched: registry.redhat.io

Comment 8 Michael Gugino 2018-08-31 18:11:12 UTC
Refactor image checks, PR created in master: https://github.com/openshift/openshift-ansible/pull/9827

backport to 3.10 after merge.

Comment 9 Michael Gugino 2018-09-06 17:18:41 UTC
BP to 3.10 created: https://github.com/openshift/openshift-ansible/pull/9947

Comment 11 Wei Sun 2018-09-10 08:43:39 UTC
The PR 9827 was merged to openshift-ansible-3.11.0-0.29.0,please check if this bug could be verified.

Comment 12 Johnny Liu 2018-09-10 09:01:49 UTC
Verified this bug with openshift-ansible-3.11.0-0.32.0.git.0.b27b349.el7.noarch, and PASS.

Removing registry-console:v3.11 image from my private mirror registry, trigger installation, the error message from pre-check is correct and expected.


  1. Hosts:    host-8-252-196.host.centralci.eng.rdu2.redhat.com
     Play:     OpenShift Health Checks
     Task:     Run health checks (install) - EL
     Message:  One or more checks failed
     Details:  check "docker_image_availability":
               One or more required container images are not available:
                   host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/registry-console:v3.11
               Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image>

Comment 13 Ryan Howe 2018-11-27 16:08:08 UTC
This should be fixed in the following versions now, likely earlier versions, but the commits are present in these versions which are latest at the time of posting this comment.  

  openshift-ansible-3.11.43-1
  openshift-ansible-3.10.73-1

Comment 14 Scott Dodson 2018-11-27 16:21:54 UTC
*** Bug 1630375 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.