Bug 1988392

Summary: [16.2] tls-everywhere-post-deployment and tls-everywhere-pre-deployment are failing due to an undefined 'ansible_hostname' variable
Product: Red Hat OpenStack Reporter: Gaël Chamoulaud <gchamoul>
Component: openstack-tripleo-validationsAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: afariasa, alee, dwilde, elicohen, ggrasza, hrybacki, jagee, jbuchta, jfrancoa, jjoyce, jpodivin, jpretori, jschluet, slinaber, tvignaud
Target Milestone: z3Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-11.6.1-2.20220309025520.6c1c6aa.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 16:02:30 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 Gaël Chamoulaud 2021-07-30 13:11:49 UTC
tls-everywhere-pre-deployment and tls-everywhere-post-deployment validations are failing with this error for both validations:

1- tls-everywhere-post-deployment

    "validation_output": [
        {
            "task": {
                "hosts": {
                    "compute-0": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        },
        {
            "task": {
                "hosts": {
                    "compute-1": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        },
        {
            "task": {
                "hosts": {
                    "controller-0": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        },
        {
            "task": {
                "hosts": {
                    "controller-1": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        },
        {
            "task": {
                "hosts": {
                    "controller-2": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        }
    ]

2- tls-everywhere-pre-deployment


    "validation_output": [
        {
            "task": {
                "hosts": {
                    "undercloud": {
                        "_ansible_no_log": false,
                        "action": "set_fact",
                        "failed": true,
                        "msg": "The task includes an option with an undefined variable. The error was: 'ansible_hostname' is undefined\n\nThe error appears to be in '/usr/share/ansible/roles/tls_everywhere/tasks/common.yaml': line 62, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Set facts for ok firewall settings\n      ^ here\n"
                    }
                },
                "name": "Set facts for ok firewall settings",
                "status": "FAILED"
            }
        }
    ]

Comment 3 Grzegorz Grasza 2021-08-02 14:19:22 UTC
Is this blocking validations for OSP 16.2 GA?

Comment 6 Gaël Chamoulaud 2021-08-02 14:33:41 UTC
(In reply to Grzegorz Grasza from comment #3)
> Is this blocking validations for OSP 16.2 GA?

Hi Grzegorz,

No as I said to Ade and Harry on IRC, this is constrained to your validations.

Gaël

Comment 7 Gaël Chamoulaud 2021-08-03 11:15:33 UTC
@hrybacki @alee 

Note that 16.1 could be impacted as well.

Comment 17 errata-xmlrpc 2022-06-22 16:02:30 UTC
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 (Release of components for Red Hat OpenStack Platform 16.2.3 (Train)), 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-2022:4793

Comment 18 Red Hat Bugzilla 2023-09-15 01:35:17 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days