Bug 2105291

Summary: Pre-update, undercloud-heat-purge-deleted validation should not be executed in OSP17.0
Product: Red Hat OpenStack Reporter: Mikolaj Ciecierski <mciecier>
Component: openstack-tripleo-validationsAssignee: Jiri Podivin <jpodivin>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: chjones, erpeters, jjoyce, jpodivin, jpretori, jschluet, mbultel, slinaber, spower, tvignaud, vfisarov
Target Milestone: gaKeywords: Triaged
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-14.2.2-0.20220728100828.37bfae3.el9ost Doc Type: Known Issue
Doc Text:
There is currently a known issue where 'undercloud-heat-purge-deleted' validation fails. This is because it is not compatible with Red Hat OpenStack Platform 17. Workaround: Skip 'undercloud-heat-purge-deleted' with '--skip-list' to skip this validation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:23:49 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 Mikolaj Ciecierski 2022-07-08 12:47:25 UTC
Description of problem:
undercloud-heat-purge-deleted validation is one of many pre-update validations.
It is run as a part of pre-update validations in osp17.0 and  it is failing with this error:

validation history get d8eb3132-4599-48bc-a03f-f63131fdd8a4
Validation config file found: /etc/validation.cfg
{
    "hosts": {
        "undercloud": {
            "_ansible_no_log": false,
            "action": "shell",
            "changed": false,
            "cmd": "set -o pipefail\npodman exec heat_api_cron crontab -l -u heat |grep -v '^#'\n",
            "delta": "0:00:00.072307",
            "end": "2022-07-08 11:46:47.863278",
            "failed": true,
            "invocation": {
                "module_args": {
                    "_raw_params": "set -o pipefail\npodman exec heat_api_cron crontab -l -u heat |grep -v '^#'\n",
                    "_uses_shell": true,
                    "argv": null,
                    "chdir": null,
                    "creates": null,
                    "executable": null,
                    "removes": null,
                    "stdin": null,
                    "stdin_add_newline": true,
                    "strip_empty_ends": true,
                    "warn": false
                }
            },
            "msg": "non-zero return code",
            "rc": 1,
            "start": "2022-07-08 11:46:47.790971",
            "stderr": "Error: no container with name or ID \"heat_api_cron\" found: no such container",
            "stderr_lines": [
                "Error: no container with name or ID \"heat_api_cron\" found: no such container"
            ],
            "stdout": "",
            "stdout_lines": []
        }
    },
    "name": "Get heat crontab",
    "status": "FAILED"
}

The validation verifies that heat-manage purge_deleted is enabled in crontab.
By default, starting from wallaby, we use ephemeral Heat and the heat_api_cron is not deployed on undercloud.
https://review.opendev.org/c/openstack/python-tripleoclient/+/796304 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Deploy osp17.0 
2.Run 'validation run --group pre-update ' before starting update
3.

Actual results:
undercloud-heat-purge-deleted validation is being executed and is failing

Expected results:
Validations should be disabled from wallaby onwards or not executed when ephemeral Heat is used

Additional info:

Comment 9 Veronika Fisarova 2022-08-04 11:01:43 UTC
The bug was reproduced and the fix was manually tested. Status changed to VERIFIED.

Comment 13 errata-xmlrpc 2022-09-21 12:23:49 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 17.0 (Wallaby)), 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/RHEA-2022:6543