Bug 738008
Summary: | ccs_sync exit code always zero | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Radek Steiger <rsteiger> | |
Component: | ricci | Assignee: | Chris Feist <cfeist> | |
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.3 | CC: | cluster-maint, rsteiger | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ricci-0.16.2-48.el6 | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Ricci isn't running on one or more nodes when using ccs_sync with the '-w' option
Consequence: ccs_sync doesn't return '1' on failure
Fix: Updated ccs_sync to return '1' on failure
Result: ccs_sync -w now returns '1' on failure.
|
Story Points: | --- | |
Clone Of: | ||||
: | 818335 (view as bug list) | Environment: | ||
Last Closed: | 2012-06-20 14:13:43 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 756082, 818335 |
Description
Radek Steiger
2011-09-13 15:51:41 UTC
This bug came out of https://bugzilla.redhat.com/show_bug.cgi?id=697493 How to test: Set up a 2 node cluster with ricci running on both nodes. Run ccs_sync -i -w it should succeed with exit value 0 [root@amoco-02 ~]# ccs_sync -i -w [root@amoco-02 ~]# echo $? 0 Stop ricci on one of the nodes: [root@amoco-01 ~]# /etc/init.d/ricci stop Shutting down ricci: [ OK ] Try ccs_sync on the node still running: [root@amoco-02 ~]# ccs_sync -i -w Failed to connect to amoco-01.lab.msp.redhat.com: Connection refused. [root@amoco-02 ~]# echo $? 0 After fix, it should look like this: [root@amoco-02 ccs_sync]# ./ccs_sync -i -w Failed to connect to amoco-01.lab.msp.redhat.com: Connection refused. [root@amoco-02 ccs_sync]# echo $? 1 http://git.fedorahosted.org/git/?p=conga.git;a=commitdiff;h=a96e1ff61ea5095864ca1b07a5a2af111d7c68a2 [root@ask-04 tmp]# ls -l /etc/cluster/cluster.conf ls: cannot access /etc/cluster/cluster.conf: No such file or directory [root@ask-04 tmp]# ccs_sync -i Unable to parse /etc/cluster/cluster.conf: No such file or directory [root@ask-04 tmp]# echo $? 1 [root@ask-04 tmp]# /etc/init.d/ricci stop Shutting down ricci: [ OK ] [root@ask-04 tmp]# ccs_sync -i Failed to connect to ask-04: Connection refused. [root@ask-04 tmp]# echo $? 1 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: Ricci isn't running or another error is ocurring when using ccs_sync with the '-w' option Consequence: ccs_sync doesn't return '1' on failure Fix: Updated ccs_sync to return '1' on failure Result: ccs_sync -w now returns '1' on failure. Just a clarification, this bz covers the case where ccs_sync -i -w (or ccs_sync -i) doesn't return '1' when it can't connect to one of the nodes on ipv4, other return code issues are in bz 818335. Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1,4 @@ -Cause: Ricci isn't running or another error is ocurring when using ccs_sync with the '-w' option +Cause: Ricci isn't running on one or more nodes when using ccs_sync with the '-w' option Consequence: ccs_sync doesn't return '1' on failure 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. http://rhn.redhat.com/errata/RHBA-2012-0898.html |