Bug 951243 - [RFE] log the remote command results on the machine that runs them
Summary: [RFE] log the remote command results on the machine that runs them
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 579885
Blocks: space20
TreeView+ depends on / blocked
 
Reported: 2013-04-11 18:36 UTC by Grant Gainey
Modified: 2013-08-02 13:02 UTC (History)
6 users (show)

Fixed In Version: rhncfg-5.10.46-1
Doc Type: Bug Fix
Doc Text:
Clone Of: 579885
Environment:
Last Closed: 2013-08-02 13:02:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Grant Gainey 2013-04-11 18:36:41 UTC
There are no logs of the remote commands execution on the machine that
execute them

3) Business Requirements Satisfied By Request:
being able to get these logs from the machine, not only spacewalk

4) Functional Requirements That Are Not Presently Possible:
those logs are only present in spacewalk

5) What Will Success Look Like:
a new log file holding the results will be created on the machine with
details that would otherwise be available from spacewalk

Comment 1 Grant Gainey 2013-04-11 19:11:31 UTC
Implementing this would mean that the output of scripts run as root would end up on the client-machine's drive. There are some security and disk-space issues that come to mind.

To give the admin of the client-machine (as possibly separate from the spacewalk-admin that can arrange for remote-cmds to run on the client) more control of the impacts to their machine, propose adding two new settings to

/etc/sysconfig/rhn/rhncfg-client.conf :

script_log_file = /var/log/rhn/rhncfg-actions.log

script_log_file_enable = 1

If script_log_file_enable = 0, we don't log on the client.

script_log_file should have 600 perms for root, only.

Comment 2 Grant Gainey 2013-04-12 13:50:37 UTC
spacewalk commit 9f89d22a515a710ceaadd475a000d3827061c2ae

Comment 4 Tomáš Kašpárek 2013-08-02 13:02:34 UTC
Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE.


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