bugcrmsh - Bugs: bug #38702, crm status returns 0 when the CIB...

 
 

bug #38702: crm status returns 0 when the CIB is down

Submitted by:  Brian J. Murrell <brian_j_murrell>
Submitted on:  Wed 10 Apr 2013 04:32:16 PM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Dejan Muhamedagic <dejanm>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 18 Apr 2013 11:03:41 AM UTC, comment #2:

Fixed here:

changeset: 955:99f27f3b8aa0
user: Dejan Muhamedagic <dejan@hello-penguin.com>
date: Tue Apr 16 18:09:21 2013 +0200
summary: Medium: fix exit code of crm status if crm_mon fails (savannah#38702)

Thanks for the report!

Closing.

Dejan Muhamedagic <dejanm>
Project AdministratorIn charge of this item.
Thu 11 Apr 2013 06:11:13 AM UTC, comment #1:

Obviously a bug. Will work on it.

Dejan Muhamedagic <dejanm>
Project AdministratorIn charge of this item.
Wed 10 Apr 2013 04:32:16 PM UTC, original submission:

# crm status
Cannot change active directory to /var/lib/pacemaker/cores/root: No such file or directory (2)
Could not establish cib_ro connection: Connection refused (111)
Connection to cluster failed: Transport endpoint is not connected
# echo $?
0

"0" doesn't seem (to me) like a terribly reasonable or useful exit status when the CIB is not even reachable.

Thoughts?

Brian J. Murrell <brian_j_murrell>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dejanm (Posted a comment)
  • -unavailable- added by brian_j_murrell (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Sep 2013 06:48:17 PM UTCdejanmOpen/ClosedOpen=>Closed
    Thu 18 Apr 2013 11:03:41 AM UTCdejanmStatusConfirmed=>Fixed
    Thu 11 Apr 2013 06:11:13 AM UTCdejanmSeverity3 - Normal=>4 - Important
      StatusNone=>Confirmed
      Assigned toNone=>dejanm

    Back to the top


    Powered by Savane 3.1-cleanup