Opened 16 years ago

Closed 15 years ago

#67 closed defect (fixed)

small patch to get lsf support working

Reported by: felix@… Owned by: ramonb
Priority: normal Milestone: 1.0
Component: jobmond Version: trunk
Keywords: lsf, lava Cc: felix@…
Estimated Number of Hours:

Description

I had to patch jobmonarch as follows to get it to work with LSF (lava):

[root@master52 jobmonarch]# svn diff
Index: jobmond/jobmond.py
===================================================================
--- jobmond/jobmond.py  (revision 556)
+++ jobmond/jobmond.py  (working copy)
@@ -717,7 +717,14 @@

                 if my_val_str:

-                       my_val_str = my_val_str + ' ' + val_name + '=' + val_value
+                       if type(val_value) != list:
+
+                               my_val_str = my_val_str + ' ' + val_name + '=' + val_value
+
+                       else:
+
+                               my_val_str = my_val_str + ' ' + val_name + '= '
+
                 else:
                        my_val_str = val_name + '=' + val_value

@@ -1147,6 +1154,7 @@
                         if requested_cpus == None or requested_cpus == "":
                                 requested_cpus = 1

+               display_queue = 1
                if QUEUE:
                 for q in QUEUE:
                        if q == queue:

I am using ganglia 3.0.7 and Python 2.4.3

Change History (3)

comment:1 Changed 16 years ago by anonymous

without the patch I get:

[root@master52 jobmonarch]# jobmond.py
Traceback (most recent call last):
  File "/usr/local/sbin/jobmond.py", line 1624, in ?
    main()
  File "/usr/local/sbin/jobmond.py", line 1619, in main
    gather.run()
  File "/usr/local/sbin/jobmond.py", line 780, in run
    self.submitJobData()
  File "/usr/local/sbin/jobmond.py", line 628, in submitJobData
    gmetric_val         = self.compileGmetricVal( jobid, jobattrs )
  File "/usr/local/sbin/jobmond.py", line 727, in compileGmetricVal
    print my_val_str + ' ' + val_name + '= ' + val_value
TypeError: cannot concatenate 'str' and 'list' objects

val_value is [] in this case.

comment:2 Changed 15 years ago by ramonb

  • Cc felix@… added
  • Owner changed from somebody to ramonb
  • Status changed from new to assigned

thanks for your patch!

I will check it out and commit it to trunk.

comment:3 Changed 15 years ago by ramonb

  • Milestone set to 0.4
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from 0.3 to trunk

committed in changeset r579.

Note: See TracTickets for help on using tickets.