Bug 1053324
| Summary: | Apcupsd prints to stdout unnecessarily | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Larkin Lowrey <llowrey> |
| Component: | apcupsd | Assignee: | Michal Hlavinka <mhlavink> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | mhlavink, philipp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | apcupsd-3.14.12-1.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-14 22:32:41 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: | |||
please test if these packages fix issue for you: http://kojipkgs.fedoraproject.org//work/tasks/5274/6435274/ Success! I installed the fix rpms and no longer see the debug output in /var/log/messages. Thank you. apcupsd-3.14.10-11.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/apcupsd-3.14.10-11.fc19 apcupsd-3.14.10-14.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/apcupsd-3.14.10-14.fc20 Package apcupsd-3.14.10-14.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing apcupsd-3.14.10-14.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1405/apcupsd-3.14.10-14.fc20 then log in and leave karma (feedback). apcupsd-3.14.11-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/apcupsd-3.14.11-1.fc19 apcupsd-3.14.11-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/apcupsd-3.14.11-1.fc20 *** Bug 1070511 has been marked as a duplicate of this bug. *** apcupsd-3.14.12-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. apcupsd-3.14.12-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: When connecting via SNMP, apcupsd prints SNMP debug info to stdout which ends up polluting my /var/log/messages. I sent an email to the upstream mailing list but got no response. Version-Release number of selected component (if applicable): apcupsd-3.14.10-13.fc20.x86_64 How reproducible: Every time. Easy. Steps to Reproduce: 1. Set the following in apcupsd.conf: UPSCABLE ether UPSTYPE snmp DEVICE host.domain.com:161:APC:public 2. Start apcupsd daemon 3. Watch /var/log/messages for output per 'Actual results' below. Actual results: Jan 14 20:38:57 fubar apcupsd: OBJECTID Jan 14 20:38:57 fubar apcupsd: INTEGER Jan 14 20:38:57 fubar apcupsd: SEQUENCE Jan 14 20:38:57 fubar apcupsd: OBJECTID Jan 14 20:38:57 fubar apcupsd: INTEGER Jan 14 20:38:57 fubar apcupsd: SEQUENCE Jan 14 20:38:57 fubar apcupsd: OBJECTID Jan 14 20:38:57 fubar apcupsd: INTEGER Jan 14 20:38:57 fubar apcupsd: SEQUENCE Jan 14 20:38:57 fubar apcupsd: OBJECTID Jan 14 20:38:57 fubar apcupsd: OCTETSTRING ...etc... Expected results: No output in /var/log/messages from apcuspd during normal polling. Additional info: The problem lies in src/drivers/snmplite/asn.cpp. The debug method should either be removed or made conditional. There is another printf in Object::Demarshal.