Bug 1608476
Summary: | OpenShift-Ansible ignores oreg_url for registry-console Docker image | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Michał Dulko <mdulko> | |
Component: | Installer | Assignee: | Michael Gugino <mgugino> | |
Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.10.0 | CC: | aos-bugs, cshereme, dmoessne, jokerman, mifiedle, mmccomas, wmeng | |
Target Milestone: | --- | |||
Target Release: | 3.10.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: Docker image availability checks did not utilize oreg_url properly.
Consequence: registry-console image failed to honor oreg_url, in some environments this caused failure of image check.
Fix: Update docker image checks to properly utilize docker image checks.
Result: Image checks now succeed when using oreg_url.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1613100 (view as bug list) | Environment: | ||
Last Closed: | 2018-11-11 16:39:10 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
Michał Dulko
2018-07-25 15:25:46 UTC
PR Created in 3.10: https://github.com/openshift/openshift-ansible/pull/9659 Re-test this bug with openshift-ansible-3.10.41-1.git.0.fd15dd7.el7.noarch, this bug is fixed partially. registry-console component is now respecting oreg_url setting. 1. Create a private mirror registry, and point oreg_url to the registry. openshift_deployment_type=openshift-enterprise oreg_url=host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/ose-${component}:${version} openshift_examples_modify_imagestreams=false openshift_docker_insecure_registries=host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000 2. sync all necessary images to the private registry, but no registry-console image. 3. installation is completed. [root@qe-jialiu310z2-mrre-1 ~]# oc get po NAME READY STATUS RESTARTS AGE docker-registry-1-7njps 1/1 Running 0 3m registry-console-1-8vvn5 0/1 ImagePullBackOff 0 3m registry-console-1-deploy 1/1 Running 0 3m router-1-2s8h2 1/1 Running 0 3m [root@qe-jialiu310z2-mrre-1 ~]# oc describe po registry-console-1-8vvn5 Name: registry-console-1-8vvn5 <--snip--> Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 5m default-scheduler Successfully assigned registry-console-1-8vvn5 to qe-jialiu310z2-mrre-1 Normal Pulling 5m (x2 over 5m) kubelet, qe-jialiu310z2-mrre-1 pulling image "host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/registry-console:v3.10" Warning Failed 5m (x2 over 5m) kubelet, qe-jialiu310z2-mrre-1 Failed to pull image "host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/registry-console:v3.10": rpc error: code = Unknown desc = Error: image testing/ocp3/registry-console:v3.10 not found Warning Failed 5m (x2 over 5m) kubelet, qe-jialiu310z2-mrre-1 Error: ErrImagePull Normal SandboxChanged 5m (x7 over 5m) kubelet, qe-jialiu310z2-mrre-1 Pod sandbox changed, it will be killed and re-created. Normal BackOff 5m (x6 over 5m) kubelet, qe-jialiu310z2-mrre-1 Back-off pulling image "host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/registry-console:v3.10" Warning Failed 42s (x35 over 5m) kubelet, qe-jialiu310z2-mrre-1 Error: ImagePullBackOff The ImagePullBackOff error is expected, and prove that oreg_url is respected now. But the left issue is "Health Checks" at the beginning of the installation is passed, which should fail, due to no registry-console is existing on the private mirror registry. PLAY [OpenShift Health Checks] ************************************************* TASK [Gathering Facts] ********************************************************* Thursday 30 August 2018 17:53:28 +0800 (0:00:00.143) 0:00:13.313 ******* ok: [host-8-250-35.host.centralci.eng.rdu2.redhat.com] TASK [Run health checks (install) - EL] **************************************** Thursday 30 August 2018 17:53:29 +0800 (0:00:00.415) 0:00:13.729 ******* CHECK [docker_storage : host-8-250-35.host.centralci.eng.rdu2.redhat.com] ****** CHECK [disk_availability : host-8-250-35.host.centralci.eng.rdu2.redhat.com] *** CHECK [package_availability : host-8-250-35.host.centralci.eng.rdu2.redhat.com] *** CHECK [package_version : host-8-250-35.host.centralci.eng.rdu2.redhat.com] ***** CHECK [docker_image_availability : host-8-250-35.host.centralci.eng.rdu2.redhat.com] *** CHECK [memory_availability : host-8-250-35.host.centralci.eng.rdu2.redhat.com] *** changed: [host-8-250-35.host.centralci.eng.rdu2.redhat.com] => {"changed": true, "checks": {"disk_availability": {}, "docker_image_availability": {"changed": true}, "docker_storage": {}, "memory_availability": {}, "package_availability": {"changed": false, "invocation": {"module_args": {"packages": ["PyYAML", "atomic-openshift", "atomic-openshift-clients", "atomic-openshift-hyperkube", "atomic-openshift-node", "bash-completion", "bind", "ceph-common", "cockpit-bridge", "cockpit-docker", "cockpit-system", "cockpit-ws", "dnsmasq", "docker", "firewalld", "flannel", "glusterfs-fuse", "httpd-tools", "iptables", "iptables-services", "iscsi-initiator-utils", "libselinux-python", "nfs-utils", "ntp", "openssl", "pyparted", "python-httplib2", "yum-utils"]}}}, "package_version": {"changed": false, "invocation": {"module_args": {"package_list": [{"check_multi": true, "name": "atomic-openshift", "version": ""}, {"check_multi": true, "name": "atomic-openshift-master", "version": ""}, {"check_multi": true, "name": "atomic-openshift-node", "version": ""}], "package_mgr": "yum"}}}}, "failed": false, "playbook_context": "install"} TASK [Run health checks (install) - Fedora] ************************************ Thursday 30 August 2018 17:54:49 +0800 (0:01:19.971) 0:01:33.700 ******* skipping: [host-8-250-35.host.centralci.eng.rdu2.redhat.com] => {"changed": false, "skip_reason": "Conditional result was False", "skipped": true} PLAY [Health Check Checkpoint End] ********************************************* Health check is currently broken. Refactor WIP for master here: https://github.com/openshift/openshift-ansible/pull/9827 This will be backported to 3.10 after merging. Verified this bug with openshift-ansible-3.10.50-1.git.0.96a93c5.el7.noarch, and PASS. 1. Create a private mirror registry, and point oreg_url to the registry. openshift_deployment_type=openshift-enterprise oreg_url=host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/ose-${component}:${version} openshift_examples_modify_imagestreams=false openshift_docker_insecure_registries=host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000 2. sync all necessary images to the private registry, but no registry-console image. Health-check failed as expected. 1. Hosts: host-8-244-150.host.centralci.eng.rdu2.redhat.com, host-8-244-42.host.centralci.eng.rdu2.redhat.com, host-8-251-221.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.10 Checked with: skopeo inspect [--tls-verify=false] [--creds=<user>:<pass>] docker://<registry>/<image> Sync registry-console to private mirror registry, run the installation again, it is completed successfully. registry-console component is now respecting oreg_url setting. # oc describe po registry-console-1-n8cl2|grep Image: Image: host-8-241-45.host.centralci.eng.rdu2.redhat.com:5000/testing/ocp3/registry-console:v3.10 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/RHSA-2018:2709 |