Bug 1717169
Summary: | [upgrades][13->14] Overcloud upgrade failed on underfined variable error 'python_interpreter' | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Archit Modi <amodi> | ||||
Component: | openstack-tripleo-heat-templates | Assignee: | Ade Lee <alee> | ||||
Status: | CLOSED ERRATA | QA Contact: | Pavan <pkesavar> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 14.0 (Rocky) | CC: | alee, dmendiza, jagee, jfrancoa, jgrosso, jjoyce, jschluet, mburns, pkesavar, sasha, slinaber, tvignaud | ||||
Target Milestone: | z3 | Keywords: | Triaged, ZStream | ||||
Target Release: | 14.0 (Rocky) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | openstack-tripleo-heat-templates-9.3.1-0.20190513171730.9995be9.el7ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1718963 1718964 (view as bug list) | Environment: | |||||
Last Closed: | 2019-07-02 20:09:17 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: | |||||||
Bug Blocks: | 1691280, 1711990, 1712040, 1712041, 1712357, 1713694, 1713696, 1713751, 1713754, 1718963, 1718964 | ||||||
Attachments: |
|
Description
Archit Modi
2019-06-04 20:12:43 UTC
Created attachment 1577272 [details]
overcloud-upgrade-run.log
So, having a look at the error and checking the involved template. This seems to be an error in an undefined ansible variable: https://github.com/openstack/tripleo-heat-templates/blob/stable/rocky/extraconfig/services/ipaclient.yaml#L124 The ipaclient template has a function in the host_prep_tasks which references an undefined "python_interpreter" variable added in https://review.opendev.org/#/c/661103/: function get_fqdn { # Get the instance hostname out of the metadata fqdn=`echo $data | {{ python_interpreter }} -c 'import json,sys;obj=json.load(sys.stdin);print(obj.get("join", {}).get("hostname", ""))'` if [ -z "$fqdn"]; then echo "Unable to determine hostname" return 1 fi return 0 } The fix should be easy, so I'm moving it to the Security DFG who are in charge of this service. *** Bug 1719970 has been marked as a duplicate of this bug. *** 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:1672 |