Bug 1500698
| Summary: | [3.6] docker_image_availability check failed when running testing against an authenticated registry | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
| Component: | Installer | Assignee: | Michael Gugino <mgugino> |
| Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.6.1 | CC: | aos-bugs, bmcelvee, jokerman, jrosenta, jupierce, mgugino, mmccomas, myllynen, sdodson |
| Target Milestone: | --- | ||
| Target Release: | 3.6.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: |
With this bug fix, the `docker_image_availability` check now passes authentication credentials when checking for image availability.
|
Story Points: | --- |
| Clone Of: | 1488833 | Environment: | |
| Last Closed: | 2017-11-21 05:41:13 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: | |||
| Bug Depends On: | 1488833 | ||
| Bug Blocks: | |||
|
Comment 1
Scott Dodson
2017-10-11 13:10:02 UTC
Verified this bug with openshift-ansible-3.6.173.0.49-1.git.0.7e8ae51.el7.noarch, and PASS. But the attached rpm to advisory is openshift-ansible-3.6.173.0.48-1.git.0.1609d30.el7, so move this bug to MODIFIED, once the attached rpm is updated, pls move this bug to ON_QA. This is a good catch. It appears that one must use 'self._templar.template(oreg_auth_password)' on task_vars in action plugins. This will ensure the variables are properly templated. Unfortunately, these checks are not subclasses of ActionBase, so a fix might take a day or two to implement cleanly. We should also patch other modules throughout our code to account for this. I have seen this issue appear on other custom modules/plugins as well. This ended up being easier to implement than I first believed. PR Created: https://github.com/openshift/openshift-ansible/pull/5781 additional fixes merged Verified this bug with openshift-ansible-3.6.173.0.75-1.git.0.0a44128.el7.noarch, and PASS.
oreg_auth_user={{ lookup('env','REG_AUTH_USER') }}
oreg_auth_password={{ lookup('env','REG_AUTH_PASSWORD') }}
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-2017:3255 |