Bug 1017410 - Configure Grinder when running on a CDS to log to it's own file.
Summary: Configure Grinder when running on a CDS to log to it's own file.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Documentation
Version: 2.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.1.3
Assignee: Megan Lewis
QA Contact: Dan Macpherson
URL:
Whiteboard:
Depends On: 1017310
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 20:03 UTC by Dan Macpherson
Modified: 2014-01-23 23:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1017310
Environment:
Last Closed: 2014-01-23 23:59:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Macpherson 2013-10-09 20:03:39 UTC
+++ This bug was initially created as a clone of Bug #1017310 +++

Description of problem:

We would like to see Grinder writing to it's own log file on a CDS during sync.

The proposed change is to modify how the CDS configures the python logging and use a logging configuration file similar to what pulp-server does.

--- Additional comment from John Matthews on 2013-10-09 11:40:56 EDT ---

Added a config entry to /etc/pulp/cds.conf to control what logging config file to load
   log_config_file = /etc/pulp/logging/cds.cfg

Introduced new logging configuration file:  /etc/pulp/logging/cds.cfg
   https://github.com/splice/pulp/blob/rhui/etc/pulp/logging/cds.cfg

To view the CDS logs, look at:
 /var/log/pulp-cds/pulp.log    <- Pulp specific (was gofer.log)
 /var/log/pulp-cds/grinder.log <- Grinder specific

Gofer log is still at:
  /var/log/gofer/agent.log


Associated commit:
https://github.com/splice/pulp/commit/438e944f22d35393497023fb07cce23e8e9bd366

Comment 3 Dan Macpherson 2013-11-15 07:00:09 UTC
Looking good, Megan. Probably a few minor things to rectify:

Procedure 3.2. View CDS Logs
- Make sure the log file paths/filenames are marked up with <filename>

Procedure 3.9. Add a New CDS Log
Step 1 - Make the "note" admonition and "important" one
Step 2 - In "Add a new entry to keys under [loggers] for the new log.", mark [loggers] as a <literal>
Step 3 - Make mention that the new logger section needs to start with "logger_"
Step 5 - Mark up each value with <parameter>

But you've pretty much captured what's required. Excellent :)

Comment 5 Dan Macpherson 2013-12-02 01:53:22 UTC
Looks good. Verified.

Comment 6 Dan Macpherson 2014-01-23 23:59:42 UTC
This documentation issue has been fulfilled and pushed live to access.redhat.com


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