Bug 1509853
| Summary: | openshift_hosted_router_registryurl and openshift_hosted_registry_registryurl setting are not honored | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
| Component: | Installer | Assignee: | Russell Teague <rteague> |
| Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.7.0 | CC: | aos-bugs, gpei, jialiu, jokerman, mmccomas, sdodson, wmeng |
| Target Milestone: | --- | ||
| Target Release: | 3.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
In rare cases the router or registry registryurl variables may need to be set to values other than the first master registry_url value. This change allows these variables to be set in the inventory (undocumented).
openshift_hosted_router_registryurl
openshift_hosted_registry_registryurl
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-28 14:11:22 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: | |||
|
Comment 1
Scott Dodson
2017-11-06 13:36:53 UTC
This PR [1] reworked the Hosted variables to avoid the issue of using 'set_fact' which prevented the ability to override variables in the inventory. The fix is in 3.8 and 3.9. [1] https://github.com/openshift/openshift-ansible/pull/6306 Re-test this bug with openshift-ansible-3.9.0-0.34.0.git.0.c7d9585.el7.noarch, still reproduced.
There are still some task is overriding variables in the inventory
Installation log:
<--snip-->
PLAY [Create Hosted Resources - registry] **************************************
TASK [Gathering Facts] *********************************************************
Wednesday 31 January 2018 07:31:00 +0000 (0:00:09.600) 0:36:17.348 *****
ok: [aos-127.lab.sjc.redhat.com]
TASK [set_fact] ****************************************************************
Wednesday 31 January 2018 07:31:01 +0000 (0:00:01.333) 0:36:18.682 *****
ok: [aos-127.lab.sjc.redhat.com] => {"ansible_facts": {"openshift_hosted_registry_registryurl": "registry.reg-aws.openshift.com:443/openshift3/ose-${component}:${version}"}, "changed": false}
<--snip-->
PLAY [Create Hosted Resources - router] ****************************************
TASK [Gathering Facts] *********************************************************
Wednesday 31 January 2018 07:30:42 +0000 (0:00:00.037) 0:35:59.598 *****
ok: [aos-127.lab.sjc.redhat.com]
TASK [set_fact] ****************************************************************
Wednesday 31 January 2018 07:30:44 +0000 (0:00:01.376) 0:36:00.975 *****
ok: [aos-127.lab.sjc.redhat.com] => {"ansible_facts": {"openshift_hosted_router_registryurl": "registry.reg-aws.openshift.com:443/openshift3/ose-${component}:${version}"}, "changed": false}
Please provide a complete log and a copy of the inventory. Commits pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/685aa326afc8893e5ca2c414c333db7b03965312 Allow for overriding hosted registry_url variables In rare cases the router or registry registryurl variables may need to be set to values other than the first master registry_url value. This change allows these variables to be set in the inventory (undocumented). openshift_hosted_router_registryurl openshift_hosted_registry_registryurl Bug 1509853 | https://bugzilla.redhat.com/show_bug.cgi?id=1509853 https://github.com/openshift/openshift-ansible/commit/6a20c5e21228dc727d4287fb8b2206ae6bc984e3 Merge pull request #7181 from mtnbikenc/fix-1509853 Automatic merge from submit-queue. [1509853] Allow for overriding hosted registry_url variables In rare cases the router or registry registryurl variables may need to be set to values other than the first master registry_url value. This change allows these variables to be set in the inventory (undocumented). openshift_hosted_router_registryurl openshift_hosted_registry_registryurl Bug 1509853 | https://bugzilla.redhat.com/show_bug.cgi?id=1509853 openshift-ansible-3.9.0-0.46.0 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 |