Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1914401

Summary: Hammer command to enable the debug mode is not enabling puppet debug.
Product: Red Hat Satellite Reporter: Rudnei Bertol Jr. <rbertolj>
Component: HammerAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: apatel, egolov, kgaikwad, lzap, ofedoren, rabajaj
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman_admin-0.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:39:05 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 Rudnei Bertol Jr. 2021-01-08 18:08:08 UTC
Description of problem:

The command `hammer admin logging --all --level-debug` is not enabling the puppet to debug mode on Satellite 6.8.

Following the puppet 6 documentation to enable the debug.

https://puppet.com/docs/puppet/6.19/server/config_file_logbackxml.html

Version-Release number of selected component (if applicable):

Satellite 6.8

How reproducible:

Run the `hammer admin logging --all --level-debug` according to the KCS https://access.redhat.com/solutions/1155573

Steps to Reproduce:
1.
2.
3.

Actual results:

The puppet debug mode is not being enabled.

Expected results:

The puppet debug mode is enabled.

Additional info:

Comment 2 Oleh Fedorenko 2021-05-08 17:26:09 UTC
Lukáš, since you're the maintainer of the hammer-cli-foreman-admin, do you have some inputs for this issue?

Comment 4 Bryan Kearney 2021-05-15 22:39:29 UTC
Upstream bug assigned to lzap

Comment 5 Bryan Kearney 2021-05-15 22:39:32 UTC
Upstream bug assigned to lzap

Comment 9 Gaurav Talreja 2021-06-16 15:58:44 UTC
Verified.

Tested on Satellite 6.10.0 Snap 4.0
Version: tfm-rubygem-hammer_cli_foreman_admin-0.0.10-1.el7sat.noarch

Steps:
1. # hammer admin logging --list      // Verify puppet5 exists
2. # tail -8 /etc/puppetlabs/puppetserver/logback.xml // Verify <root level = "info">
3. # hammer admin logging --all --level-debug
    OR
3. # hammer admin logging --components puppet5 --level-debug
4. # tail -8 /etc/puppetlabs/puppetserver/logback.xml  // Verify <root level = "debug">
5. # tail -f /var/log/puppetlabs/puppetserver/puppetserver.log

Observation:
Able to enable puppet to debug mode using step 3, after that able to see debug logs under step 5.


Note: Attached knowledge base[1] in the description needs an update for this change, also [2] if needed.

[1] https://access.redhat.com/solutions/1155573
[2] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.9/html/hammer_cli_guide/reference#hammer-admin-logging


Thanks,
Gaurav Talreja

Comment 12 errata-xmlrpc 2021-11-16 14:39:05 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 (Satellite 6.10 Satellite Tools Release), 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/RHBA-2021:4701