Bug 2013625 - Calling openstack tripleo validator run with --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default doesn't work anymore
Summary: Calling openstack tripleo validator run with --extra-env-vars ANSIBLE_STDOUT_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-validations-libs
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Alpha
: 17.0
Assignee: mathieu bultel
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-13 12:03 UTC by Gaël Chamoulaud
Modified: 2022-09-21 12:17 UTC (History)
2 users (show)

Fixed In Version: python-validations-libs-1.4.1-0.20211117151911.1bbf282.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:17:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 818177 0 None NEW Refactor set_argument_parser to fix shell regression 2021-11-17 08:29:11 UTC
Red Hat Issue Tracker OSP-10386 0 None None None 2021-11-15 12:37:11 UTC
Red Hat Issue Tracker VALFRWK-684 0 None None None 2021-11-08 08:24:09 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:17:36 UTC

Description Gaël Chamoulaud 2021-10-13 12:03:34 UTC
Description of problem:

The Custom callback feature is not working anymore since the introduction of the configuration file [1] for the VF.

Passing --extra-env-vars ANSIBLE_STDOUT_CALLBACK through the openstack tripleo validator run sub command is not effective anymore.

How reproducible:

Steps to Reproduce:
$ openstack tripleo validator run --validation check-cpu --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default

Actual results:
(undercloud) [stack@undercloud ~]$ openstack tripleo validator run --validation check-cpu --inventory ~/overcloud-deploy/overcloud/tripleo-ansible-inventory.yml --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| 89fe85a1-aa1a-4e94-9e24-b7e608c21457 | check-cpu   | FAILED | localhost  | localhost      |                   | 0:00:00.677 |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
One or more validations have failed.

Expected results:
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation check-cpu --inventory ~/overcloud-deploy/overcloud/tripleo-ansible-inventory.yml --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default
Running Validations without Overcloud settings.

PLAY [localhost] ***************************************************************

TASK [check_cpu : Gather facts] ************************************************
Wednesday 13 October 2021  08:01:37 -0400 (0:00:00.037)       0:00:00.037 *****
ok: [localhost]

TASK [check_cpu : Verify the number of CPU cores] ******************************
Wednesday 13 October 2021  08:01:38 -0400 (0:00:00.825)       0:00:00.863 *****
fatal: [localhost]: FAILED! => {"changed": false, "failed_when_result": true, "msg": "There are 4 cores in the system, but there should be at least 8"}

PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
Wednesday 13 October 2021  08:01:38 -0400 (0:00:00.113)       0:00:00.977 *****
===============================================================================
check_cpu : Gather facts ------------------------------------------------ 0.83s
check_cpu : Verify the number of CPU cores ------------------------------ 0.11s
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
| 5a0e43b3-eb33-48ab-b2f3-c36c0dbb2674 | check-cpu   | FAILED | localhost  | localhost      |                   | 0:00:00.953 |
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+
One or more validations have failed.

Additional info:
[1] https://opendev.org/openstack/validations-libs/commit/11488cd88d6caca0e9e41d589936ec525d62eea4

Comment 4 Jiri Podivin 2022-08-22 12:57:43 UTC
Manually tested and verified on RHOS-17.0-RHEL-9-20220816.

Comment 9 errata-xmlrpc 2022-09-21 12:17:08 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.