Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1941591

Summary: 16.2 Validator Custom Callback not used
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: validations-commonAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED DUPLICATE QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: dpeacock, gchamoul
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-31 06:41:58 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 David Rosenfeld 2021-03-22 12:53:18 UTC
Description of problem: When testing the validator Custom Callback RFE the specified custom callback is not being used. Eg:

openstack tripleo validator run --validation check-selinux-mode --extra-env-vars '{"ANSIBLE_STDOUT_CALLBACK": "json"}'

gives same output as when no custom callback is specified. Also output is the same when openstack tripleo validator show run is executed.

Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20210310.n.1


How reproducible: Every time


Steps to Reproduce:
1. Execute: openstack tripleo validator run and specify a custom callback. Output of both that and openstack tripleo validator sh run is the same as if no custum callback was specified.
2.
3.

Actual results: openstack tripleo validator run and openstack tripleo validator show run both give the same output with a custom callback as when one is not used.


Expected results: openstack tripleo validator run uses the custom callback specified in the command.


Additional info:

Comment 3 Gaël Chamoulaud 2021-03-23 14:36:25 UTC
David,

As you already know, I am working on fixing that right now.

The command will be the same as Mathieu wrote in https://bugzilla.redhat.com/show_bug.cgi?id=1902736:

$ openstack tripleo validator run --validation <validation_name> --extra-env-vars ANSIBLE_STDOUT_CALLBACK=default

And you should see this kind of output when this will be fixed:

http://pastebin.test.redhat.com/949748

If any doubts, don't hesitate to ping us on #validation-framework channel