Bug 1988392 - [16.2] tls-everywhere-post-deployment and tls-everywhere-pre-deployment are failing due to an undefined 'ansible_hostname' variable
Summary: [16.2] tls-everywhere-post-deployment and tls-everywhere-pre-deployment are f...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z3
: 16.2 (Train on RHEL 8.4)
Assignee: OSP Team
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-30 13:11 UTC by Gaël Chamoulaud
Modified: 2023-09-15 01:35 UTC (History)
15 users (show)

Fixed In Version: openstack-tripleo-validations-11.6.1-2.20220309025520.6c1c6aa.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-22 16:02:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 803147 0 None MERGED Change ansible_hostname to use ansible_facts 2022-01-03 09:34:12 UTC
OpenStack gerrit 823843 0 None MERGED Change ansible_hostname to use ansible_facts 2022-03-29 08:08:51 UTC
OpenStack gerrit 823844 0 None MERGED Make sure fact is available to find hostname 2022-03-29 08:13:21 UTC
OpenStack gerrit 823995 0 None MERGED Remove domain equivalence check 2022-03-30 14:26:24 UTC
OpenStack gerrit 824035 0 None MERGED Remove Docker references 2022-03-30 14:27:11 UTC
OpenStack gerrit 824046 0 None MERGED Add undercloud-ipa-server-check task 2022-03-30 14:27:11 UTC
OpenStack gerrit 824216 0 None MERGED Add validation for tripleo-ipa 2022-03-30 14:27:11 UTC
Red Hat Issue Tracker OSP-6653 0 None None None 2021-11-15 13:00:33 UTC
Red Hat Product Errata RHBA-2022:4793 0 None None None 2022-06-22 16:03:08 UTC

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


Note You need to log in before you can comment on or make changes to this bug.