openshift-ansible: CentOS Origin repo template for 3.10 is broken
On a clean CentOS 7 install, with centos-release-openshift-origin39 installed, prerequisites.yaml creates a second repository file at /etc/yum.repos.d/CentOS-OpenShift-Origin.repo in addition to the existing /etc/yum.repos.d/CentOS-OpenShift-Origin39.repo.
The fallback behavior is using the latest upstream repo (CentOS-OpenShift-Origin.repo), which is almost never intended. This should just outright fail vs. doing something unexpected:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (7 by maintainers)
Commits related to this issue
- Run openshift_version before configuring repositories This fixes #10445 — committed to leoluk/openshift-ansible by marbis-leo 6 years ago
- Run openshift_version before configuring repositories This fixes #10445 — committed to leoluk/openshift-ansible by leoluk 6 years ago
@DanyC97 @michaelgugino Why was it reverted? I suggest something slightly more robust:
IMHO, we should remove the fallback and “fail hard” when there’s no matching template. We also need to fix the order of execution in the playbook to run the openshift_version role earlier.
@michaelgugino Are you sure that this is fixed? I tried #10639 and it didn’t work.
Debug statement added below “Configure correct origin release repository”:
$ cat /etc/yum.repos.d/CentOS-OpenShift-Origin.repo:As stated above, it looks like openshift_version is included too late.