| Summary: | Unable to limit the logging level of goferd service to Error. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Deepannagaraj Nagarathinam <dnagarat> |
| Component: | katello-agent | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED NOTABUG | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.4 | CC: | aperotti, bbuckingham, daniele, dcaplan, dnagarat, jcallaha, jortel, richie.markham, stbenjam |
| Target Milestone: | Unspecified | Keywords: | PrioBumpPM, Reopened, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-12-05 18:45:31 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: | |
|
Description
Deepannagaraj Nagarathinam
2016-12-08 20:02:54 UTC
Hi,
As a workaround, we can comment out the logging level code in the logutil.py file.
------
# cat /usr/lib/python2.7/site-packages/gofer/agent/logutil.py
<snipped>
handler.setFormatter(FORMATTER)
root = getLogger()
#root.setLevel(INFO) ## Comment out this line
root.handlers.append(handler)
</snipped>
------
and then restart the goferd service.
Regards, Deepannagaraj N.
The [logging] section configures the python logging and needs to be expressed using python package names. Suggest: [logging] + gofer=error + pulp=error + katello=error # gofer.agent=debug # gofer.messaging=debug Can you please explain why this is considered not a bug? This looks like hardcoding: #root.setLevel(INFO) ## Comment out this line And better defaults on agent.conf should be deployed for the sake of minimizing syslog spam otherwise actionable items get missed. Hi, as by solution linked, i totally agree with RichieM. Please reopen the bug and provide a decent explanation. Hi RichieM and Daniele, I have updated the article with the actual solution. Could you please try that? Let us know the results. Regards, Deepannagaraj N. Is this portion still required: edit /usr/lib/python2.7/site-packages/gofer/agent/logutil.py #root.setLevel(INFO) ## Comment out this line Hi RichieM, I hope that is not needed anymore. You may uncomment that line and restart the goferd to take effects. Deepannagaraj N. Removing the needinfo based upon the updates provided by Deepannagaraj. At this time, the config file that is being changed via the article comes from a package that is controlled by gofer. As a result, changing the default as not as simple as it may seem. That said, it could be changed post install and managed via puppet or the configuration management solution of choice. Hello Brad, Yeah, I have tried the latest version (katello-agent and gofer packages also latest). But it didn't work. Seems it is a regression. Deepannagaraj N. Hi Jeff, It seems that the alternative outlined in comment 3 is no longer working on 6.2.12. Do you know of any changes that may have caused that behavior to regress? |