Bug 1641085
Summary: | Openshift-on-Openstack install playbook fails after PR #10409 | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jon Uriarte <juriarte> |
Component: | Installer | Assignee: | Tomas Sedovic <tsedovic> |
Status: | CLOSED ERRATA | QA Contact: | Jon Uriarte <juriarte> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 3.10.0 | CC: | aos-bugs, gcheresh, hasha, itbrown, jokerman, mmccomas, tsedovic, ushkalim, wsun |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 3.10.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
The OpenStack dynamic inventory was always setting the `openshift_kubelet_name_override` Ansible variable.
Consequence:
This variable is only expected to be set during upgrades from 3.10 to 3.11. Setting it for brand new deployments will cause the openshift-ansible playbooks to fail with an error.
Fix:
The inventory no longer sets `openshift_kubelet_name_override` variable automatically.
Result:
The OpenStack cloud deployments are now able to finish successfully.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-01-10 09:27: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
Jon Uriarte
2018-10-19 15:20:39 UTC
The issue is with this line: https://github.com/openshift/openshift-ansible/blob/6b1f210660771d2066186a7ba793f85d7c526285/roles/openshift_openstack/templates/heat_stack_server.yaml.j2#L247-L249 and the corresponding: https://github.com/openshift/openshift-ansible/blob/6b1f210660771d2066186a7ba793f85d7c526285/playbooks/openstack/resources.py#L104-L105 This variable was introduced here: https://github.com/openshift/openshift-ansible/commit/1faee0942dec05b6f652669ad6cfced986a0cbc9 (it used to be called `openshift_hostname`) And it is now disallowed for any new (non-upgrade) deploments: https://github.com/openshift/openshift-ansible/pull/10409/files So to resolve this, we must stop setting the variable in our dynamic inventory (resources.py). I can't tell whether that will be enough, though. Not setting the variable may cause other trouble we'll have to figure out. In OCP 3.10 the 'openshift_kubelet_name_override' is defined in inventory.py instead of in resources.py. Commenting https://github.com/openshift/openshift-ansible/blob/release-3.10/playbooks/openstack/inventory.py#L100-L101 lines in OCP 3.10 worked and the install playbook finishes successfully. Upstream fixes and cherry-picks: master: https://github.com/openshift/openshift-ansible/pull/10466 3.11: https://github.com/openshift/openshift-ansible/pull/10467 3.10: https://github.com/openshift/openshift-ansible/pull/10468 We can install OCP 3.10 on OSP 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-2019:0026 |