Bug 2105291 - Pre-update, undercloud-heat-purge-deleted validation should not be executed in OSP17.0
Summary: Pre-update, undercloud-heat-purge-deleted validation should not be executed i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 17.0
Assignee: Jiri Podivin
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-08 12:47 UTC by Mikolaj Ciecierski
Modified: 2022-09-21 12:24 UTC (History)
11 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-09-21 12:23:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 850495 0 None MERGED Removing undercloud-heat-purge-deleted from validation groups 2022-07-26 11:37:22 UTC
OpenStack gerrit 850496 0 None MERGED Removing undercloud-heat-purge-deleted from validation groups 2022-07-28 09:08:19 UTC
Red Hat Issue Tracker OSP-16308 0 None None None 2022-07-08 12:52:35 UTC
Red Hat Issue Tracker VALFRWK-753 0 None None None 2022-07-08 13:08:24 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:24:21 UTC

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


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