Bug 1777595
| Summary: | Handle empty cert related hostvar info | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Brendan Shephard <bshephar> |
| Component: | openstack-tripleo-common | Assignee: | Brent Eagles <beagles> |
| Status: | CLOSED ERRATA | QA Contact: | Gregory Thiemonge <gthiemon> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 15.0 (Stein) | CC: | amoralej, beagles, cgoncalves, emacchi, mburns, slinaber |
| Target Milestone: | z2 | Keywords: | Triaged, ZStream |
| Target Release: | 15.0 (Stein) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-common-10.8.1-1 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-05 12:00:58 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: | |||
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text. If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'. 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-2020:0643 |
Description of problem: Handle empty cert related hostvar info When certificates are neither generated nor provided (e.g. on update) related variables would be empty or undefined and need to be handled accordingly. Note: this file has been relocated to triple-ansible in train+ so this is a non-trivial backport of I361c90e438e79e180e2a745da82e619347fed13e. Change-Id: I6afe5078bd285374b3a9311a066ba10883c2ff66 Closes-Bug: #1845366 Version-Release number of selected component (if applicable): RHOSP15 How reproducible: Easily Steps to Reproduce: 1. Deploy overcloud with RHOSP15 and Octavia with an empty cert Actual results: "TASK [octavia-controller-config : include_tasks] *******************************" , "fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'private_key_content|length > 0' failed. The error was: error while evaluating conditional ( private_key_content|length > 0): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'private_key_content'\ Expected results: Should handle this situation without returning an error Additional info: This has been backported to Queens: https://bugzilla.redhat.com/show_bug.cgi?id=1645536 I checked the current rhosp15-patches and can't see this included in Stein. The upstream version is: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=de57975786f80b6aff8d3145071277c05359e79c