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 1366171 - Hammer admin logging does not set debug per individual component
Summary: Hammer admin logging does not set debug per individual component
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: jcallaha
URL: https://github.com/theforeman/hammer-...
Whiteboard:
: 1366040 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-11 08:44 UTC by Lukas Zapletal
Modified: 2019-09-25 21:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Zapletal 2016-08-11 08:44:05 UTC
This does not work:

[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c postgresql
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c=rails
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c proxy
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c puppet
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c dhcp
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c named
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c tftp
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c mongod
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c qpidd
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c tomcat
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c pulp
Error: Unknown component provided, use --list to find them
[root@ibm-x3550m3-10 ~]# hammer admin logging -d -c virt-who
Error: Unknown component provided, use --list to find them

As it was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1305085

Comment 2 Lukas Zapletal 2016-08-11 08:48:56 UTC
Can you help in patch reviewing process? Apply the patch and test if it works please if possible.

https://github.com/theforeman/hammer-cli-foreman-admin/pull/3.patch

Comment 4 jcallaha 2016-08-11 18:04:29 UTC
sure can, and it looks like that does the trick!

[root@rhsm-qe-1 hammer_cli_foreman_admin-0.0.5]# hammer admin logging -p -c rails
hammer admin logging -p -c postgresql,rails,proxy,puppet,dhcpd,named,tftp,qpidd,tomcat,pulp,virt-who

Comment 5 jcallaha 2016-08-15 18:27:59 UTC
*** Bug 1366040 has been marked as a duplicate of this bug. ***

Comment 9 Lukas Zapletal 2016-12-02 12:04:47 UTC
This will be fixed in tfm-rubygem-hammer_cli-0.6.0 let's rebase in 6.3.

Comment 10 Lukas Zapletal 2016-12-02 12:07:04 UTC
REL-ENG: There will be two commits in 0.6.0 version, please rebase the dependency in 6.3.

https://github.com/theforeman/hammer-cli-foreman-admin/commits/master

Comment 11 Lukas Zapletal 2016-12-05 15:10:05 UTC
FYI gem was released, RPM packages pending.

Comment 13 jcallaha 2018-01-29 16:27:33 UTC
Verified in Satellite 6.3 Snap 33.

-bash-4.2# hammer admin logging --list
-----------|-------------------------------------|-------------------------------------
COMPONENT  | AUTO-DETECTED BY EXISTENCE OF       | DESTINATIONS                        
-----------|-------------------------------------|-------------------------------------
postgresql | /var/lib/pgsql/data/postgresql.conf | syslog /var/lib/pgsql/data/pg_log/  
rails      | /etc/foreman/settings.yaml          | /var/log/foreman/production.log     
proxy      | /etc/foreman-proxy/settings.yml     | /var/log/foreman-proxy/proxy.log    
puppet     | /etc/puppet/puppet.conf             | /var/log/puppet/masterhttp.log      
dhcpd      | /etc/dhcp/dhcpd.conf                | syslog /var/log/dhcpd-debug.log     
named      | /etc/named.conf                     | syslog                              
tftp       | /etc/xinetd.d/tftp                  | syslog                              
qpidd      | /etc/qpid/qpidd.conf                | syslog                              
tomcat     | /etc/candlepin/candlepin.conf       | /var/log/candlepin/ /var/log/tomcat/
pulp       | /etc/pulp/server.conf               | syslog /var/log/pulp-debug.log      
virt-who   | /etc/sysconfig/virt-who             | syslog                              
-----------|-------------------------------------|-------------------------------------


-bash-4.2# hammer admin logging --list | awk '{print $1}' | tail -n 12 | head -n 11
postgresql
rails
proxy
puppet
dhcpd
named
tftp
qpidd
tomcat
pulp
virt-who


-bash-4.2# for component in $(hammer admin logging --list | awk '{print $1}' | tail -n 12 | head -n 11); do hammer admin logging -d -c $component; done
-bash-4.2#

Comment 14 Satellite Program 2018-02-21 16:54:37 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-2018:0336


Note You need to log in before you can comment on or make changes to this bug.