Bug 1730371

Summary: report template schedule with mail to paramaeter doesn't show job id in hammer
Product: Red Hat Satellite Reporter: tstrych
Component: ReportingAssignee: Oleh Fedorenko <ofedoren>
Status: CLOSED ERRATA QA Contact: tstrych
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: apatel, inecas, kgaikwad, mbacovsk, mhulan, mshira, ofedoren, oprazak, pcreech, rabajaj
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
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: 2020-04-14 13:24:51 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 tstrych 2019-07-16 14:30:17 UTC
Description of problem:
hammer report template schedule with mail to parameter doesn't show job id

Version-Release number of selected component (if applicable):
Satellite 6.6 snap 7

How reproducible:
Always

Steps to Reproduce:
1. create some report template
2. run command 
   hammer report-template schedule --name test --mail-to root@localhost

Actual results:

example:
hammer report-template schedule --name test
The report has been scheduled. Job ID: 52f3e990-d395-420a-b025-289698197a01
this works correctly

hammer report-template schedule --name test --mail-to root@localhost
The report has been scheduled. Job ID:  (missing id!!)
this command doesn't show any id


Expected results:
hammer report-template schedule --name test --mail-to root@localhost
The report has been scheduled. Job ID:  (job-id-is-written)


Additional info:
Not sure if this is bug for hammer, but I found it here, please if I should choose another component please let me know. (future improvement)

Comment 3 tstrych 2019-07-16 15:14:27 UTC
If the JOB ID should be send only via email, I would expect result: The report has been scheduled. (without Job ID:)

Comment 4 Oleh Fedorenko 2019-07-18 11:45:16 UTC
Created redmine issue https://projects.theforeman.org/issues/27341 from this bug

Comment 5 Bryan Kearney 2019-07-18 14:02:15 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27341 has been resolved.

Comment 6 tstrych 2020-02-27 17:16:46 UTC
I test this with snap 13 - (fixed in: hammer-cli-foreman-0.18.0, my sat 6.7 snap 13 with newer version, concretely hammer_cli_foreman-0.19.6) 

Fixed.

hammer report-template schedule --name test --mail-to root@localhost 
The report has been scheduled. Job ID: 0709ac4e-b815-4ee4-9e78-6cf3c1625fc6

Verified.

Comment 9 errata-xmlrpc 2020-04-14 13:24:51 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, 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/RHSA-2020:1454