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 1976885

Summary: [pulp3] "hammer admin logging -l" reflects the old config file name for pulp component in Satellite 6.10
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: HammerAssignee: wclark
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ahumbe, apatel, kgaikwad, lzap, ofedoren, osousa, rabajaj, wclark
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman_admin-1.1.0 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 Sayan Das 2021-06-28 13:07:44 UTC
Description of problem:

"hammer admin logging -l" reflects the old config file name for pulp component in Satellite 6.10


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

satellite-6.10.0-0.1.beta.el7sat


How reproducible:

Always


Steps to Reproduce:
1. Install Satellite 6.10
2. Check the output of "hammer admin logging -l | grep pulp"



Actual results:

pulp       | /etc/pulp/server.conf               | syslog /var/log/pulp-debug.log


/etc/pulp/server.conf  is a non-exiting file.

Expected results:

pulp       | <name of correct config file>               | syslog /var/log/pulp-debug.log < and name of additional log files if any for pulp3 >


* I guess for Sat 6.10\ pulp3 the config file name is /etc/pulp/settings.py.



Additional info:

NA

Comment 1 Oleh Fedorenko 2021-07-07 14:39:00 UTC
Created redmine issue https://projects.theforeman.org/issues/32954 from this bug

Comment 2 Bryan Kearney 2021-07-07 16:04:06 UTC
Upstream bug assigned to ofedoren

Comment 3 Bryan Kearney 2021-07-07 16:04:07 UTC
Upstream bug assigned to ofedoren

Comment 4 wclark 2021-07-09 19:32:32 UTC
We have somewhat duplicate BZs with this and https://bugzilla.redhat.com/show_bug.cgi?id=1977693

Since it MAY be desirable to add management of pulp3 logging, separately from removing pulp2 management (for example, both will be running at the same time during the 2to3 migration, and debug logging may be useful for troubleshooting issues with that migration) let's not close the separate BZ as duplicates; rather let's focus this bug ONLY on removal of the pulp2 definitions, so that it's possible to backport pulp3 addition via the other bug if desired.

Comment 5 wclark 2021-07-09 19:40:21 UTC
Also related, to implement this functionality in foreman-maintain: https://bugzilla.redhat.com/show_bug.cgi?id=1980904

Comment 6 Gaurav Talreja 2021-09-02 08:54:46 UTC
Verified.

Tested on Satellite 6.10.0 Snap 16.0

Steps:
1. hammer admin logging --list 

Observation:
`hammer admin logging --list` now reflects pulpcore instead of pulp, with its respective config file(/etc/pulp/settings.py) and logs(syslog) details.

For pulpcore logging, to change to either DEBUG or INFO from hammer admin logging, must need a service restart.

Note: Following KCS[1] 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

Comment 9 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