bugcrmsh - Bugs: bug #37560, crm errors out if lrmadmin not...

 
 

bug #37560: crm errors out if lrmadmin not found

Submitted by:  Len SMith <lrsmith>
Submitted on:  Fri 12 Oct 2012 04:42:34 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 12 Oct 2012 07:02:35 PM UTC, comment #2:

Fixed in 29687dbcff59. Thanks!

Dejan Muhamedagic <dejanm>
Project Administrator
Fri 12 Oct 2012 04:43:21 PM UTC, comment #1:

Forgot to post

This was on Centos 5.8 with python 2.4.3 but is probably the case across all releases of OS and python.

Len SMith <lrsmith>
Fri 12 Oct 2012 04:42:34 PM UTC, original submission:

When running the command
crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 params ip=10.0.1.80 cidr_netmask=32 op monitor interval=30

crm errors out with the error below. In troubleshooting it I did not have cluster-glue installed, and the lradmin_prog could not be found, so the version was not set.

So when in the line

glue_ver = get_stdout("%s -v" % lrmadmin_prog, stderr_on = False)

is executed, glue_ver did not get set, and get_stdout did not generate an error or detect and report on a missing program.

Should probably update get_stdout to detect inability to get output either from missing commands, or no valid return.

## Begin Error Message

INFO: object puppetdev cannot be represented in the CLI notation
Traceback (most recent call last):
File "/usr/sbin/crm", line 44, in ?
main.run()
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 390, in run
do_work()
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 304, in do_work
if parse_line(levels,shlex.split(' '.join(user_args))):
File "/usr/lib64/python2.4/site-packages/crmsh/main.py", line 154, in parse_line
lvl.release()
File "/usr/lib64/python2.4/site-packages/crmsh/levels.py", line 67, in release
self.droplevel()
File "/usr/lib64/python2.4/site-packages/crmsh/levels.py", line 86, in droplevel
self.current_level.end_game(no_questions_asked = self._in_transit)
File "/usr/lib64/python2.4/site-packages/crmsh/ui.py", line 1737, in end_game
self.commit("commit")
File "/usr/lib64/python2.4/site-packages/crmsh/ui.py", line 1546, in commit
rc2 = cib_factory.is_cib_empty() or \
File "/usr/lib64/python2.4/site-packages/crmsh/ui.py", line 1454, in _verify
rc2 = set_obj_semantic.semantic_check(set_obj_all)
File "/usr/lib64/python2.4/site-packages/crmsh/cibconfig.py", line 302, in semantic_check
rc = self.__check_unique_clash(set_obj_all)
File "/usr/lib64/python2.4/site-packages/crmsh/cibconfig.py", line 286, in __check_unique_clash
process_primitive(node, clash_dict)
File "/usr/lib64/python2.4/site-packages/crmsh/cibconfig.py", line 258, in process_primitive
if not ra.mk_ra_node(): # no RA found?
File "/usr/lib64/python2.4/site-packages/crmsh/ra.py", line 289, in mk_ra_node
meta = self.meta()
File "/usr/lib64/python2.4/site-packages/crmsh/ra.py", line 510, in meta
l = ra_if().meta(self.ra_class,self.ra_type,self.ra_provider)
File "/usr/lib64/python2.4/site-packages/crmsh/ra.py", line 119, in ra_if
if can_use_lrmadmin():
File "/usr/lib64/python2.4/site-packages/crmsh/ra.py", line 115, in can_use_lrmadmin
return v_this >= v_min or (getpwdent()[0] in ("root",vars.crm_daemon_user))
File "/usr/lib64/python2.4/distutils/version.py", line 140, in _cmp_
compare = cmp(self.version, other.version)
AttributeError: StrictVersion instance has no attribute 'version'

Len SMith <lrsmith>

 

(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 lrsmith (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Oct 2012 07:02:35 PM UTCdejanmStatusNone=>Fixed
      PrivacyPrivate=>Public
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1