Bug 1125954
| Summary: | Piping ccs --getschema results in IOError: [Errno 32] Broken pipe | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Radek Steiger <rsteiger> |
| Component: | ricci | Assignee: | Chris Feist <cfeist> |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.6 | CC: | cluster-maint, jpokorny |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ccs-0.16.2-77.el6.x86_64 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: ccs does not properly ignore SIGPIPE
Consequence: When piping the output of ccs into another program a traceback can occur if the other program closes the pipe before ccs finishes.
Fix: ccs now properly ignores the SIGPIPE signal
Result: ccs no longer issues a traceback when piping its output to other programs which close the pipe before ccs finishes.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-22 07:33:50 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: | |||
|
Description
Radek Steiger
2014-08-01 12:44:59 UTC
This is a common problem for most python programs because it doesn't ignore SIGPIPE (like most programs do). Fix upstream here: https://github.com/feist/ccs/commit/c3ce0a072f29ac82e7f9aeb54adb198c943fd976 Before Fix:
[root@ask-03 ~]# rpm -q ccs
ccs-0.16.2-75.el6.x86_64
[root@ask-03 ~]# ccs -h localhost --getschema | head -n0
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 334, in main
if (getclusterschema): get_cluster_schema()
File "/usr/sbin/ccs", line 859, in get_cluster_schema
print out
IOError: [Errno 32] Broken pipe
After Fix:
[root@ask-02 ~]# rpm -q ccs
ccs-0.16.2-77.el6.x86_64
[root@ask-02 ~]# ccs -h localhost --getschema | head -n0
[root@ask-02 ~]#
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://rhn.redhat.com/errata/RHBA-2015-1405.html |