Bug 1592428

Summary: task id not included on automation.log when logging from methods
Product: Red Hat CloudForms Management Engine Reporter: Jeffrey Cutter <jcutter>
Component: AutomateAssignee: drew uhlmann <duhlmann>
Status: CLOSED CURRENTRELEASE QA Contact: Ganesh Hubale <ghubale>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, duhlmann, jprause, jwarnica, mkanoor, obarenbo, simaishi, smallamp, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1595451 (view as bug list) Environment:
Last Closed: 2019-02-11 14:06:55 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:
Bug Depends On:    
Bug Blocks: 1595451    

Description Jeffrey Cutter 2018-06-18 14:01:50 UTC
Description of problem:

Log formatting for methods no longer includes task ID when logging from methods.  Examples shown below.

Log entries from 5.8.3 appliance:

[----] I, [2018-06-18T09:38:30.441790 #17241:623108]  INFO -- : Q-task_id([service_template_provision_task_3000000000001]) <AEMethod [/Desjardins/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/derive_values]> Starting 
[----] I, [2018-06-18T09:38:30.982247 #17241:420cc28]  INFO -- : Q-task_id([service_template_provision_task_3000000000001]) <AEMethod derive_values> job_options before: {:extra_vars=>{"test"=>"asdf"}}

Log entries from 5.9.2 appliance:

[----] I, [2018-06-18T09:45:56.780128 #1900:401118]  INFO -- : Q-task_id([service_template_provision_task_3000000000053]) <AEMethod [/Desjardins/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/derive_values]> Starting 
[----] I, [2018-06-18T09:45:57.028771 #1900:3856ad0]  INFO -- : <AEMethod derive_values> job_options before: {:extra_vars=>{"test"=>"asdf"}}

Note that the job_options_before log output from derive_values does not include the task id information.  This makes it very difficult to find necessary logs in larger environments.