Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 782132

Summary: openmpiscript - Command mpirun needs parameter --prefix for correct run (on RHEL 6.2)
Product: Red Hat Enterprise MRG Reporter: Daniel Horák <dahorak>
Component: condorAssignee: Timothy St. Clair <tstclair>
Status: CLOSED ERRATA QA Contact: Daniel Horák <dahorak>
Severity: low Docs Contact:
Priority: high    
Version: 2.1CC: ltoscano, matt, mkudlej, tstclair
Target Milestone: 2.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: condor-7.8.2-0.1 Doc Type: Bug Fix
Doc Text:
C: Running an open mpi job using the openmpiscript provided with condor on RHEL 6.2. C: The job would fail attempting to load shared libraries. F: Pass the --prefix of the install location of the open mpi to mpirun. R: Job runs successfully without error.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-06 18:40:44 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:
Attachments:
Description Flags
summpi.C, Makefile
none
job output files (log, output,error); condor PU configuration; openmpi job files (summpi.C, openmpiscript, openmpi.job, Makefile) none

Description Daniel Horák 2012-01-16 16:02:11 UTC
Description of problem:
  In example file /usr/share/doc/condor-7.6.5/examples/openmpiscript on RHEL
6.2 is called command 'mpirun' without absolute path or parameter --prefix. 
  Submitted job remain in running state and on one machine is in error output following message:
  
  # cat /var/lib/condor/execute/dir_31624/_condor_stderr 
    summpi: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory
    summpi: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory

  Variable LD_LIBRARY_PATH is correctly set to:
    LD_LIBRARY_PATH=/usr/lib64/openmpi/lib 
  (printed by openmpiscript just before calling mpirun command).

  When I set full path before the mpirun command (/usr/lib64/openmpi/bin/mpirun) or add parameter --prefix (--prefix /usr/lib64/openmpi) to that command, job is correctly pass and in output file is result.


Version-Release number of selected component (if applicable):
- RHEL 6.2 i386 and x86_64
# rpm -qa | grep condor
  condor-7.6.5-0.11.el6.x86_64
  condor-classads-7.6.5-0.11.el6.x86_64
# rpm -qa | grep openmpi
  openmpi-devel-1.5.3-3.el6.x86_64
  openmpi-1.5.3-3.el6.x86_64
  

How reproducible:
100%


Steps to Reproduce:
1. Run parallel openmpi job with openmpiscript from examples mentioned above (see Bug 759433, comment 2).
2. Check error output file in /var/lib/condor/execute/dir_XXXX/_condor_stderr.
  
Actual results:
  ...
  summpi: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory
  ...

Expected results:
  No error about loading shared libraries.


Additional info:
  About deprecated MCA parameter value plm_rsh_agent is Bug 772587.

  About executing mpirun via absolute path name and about --prefix parameter is:  http://www.open-mpi.org/doc/v1.5/man1/mpirun.1.php#sect17

Comment 1 Timothy St. Clair 2012-03-08 21:16:32 UTC
could you please attach your summpi example referenced above w/makefile for independent verification.

Comment 2 Daniel Horák 2012-03-09 07:12:24 UTC
Created attachment 568830 [details]
summpi.C, Makefile

Comment 3 Timothy St. Clair 2012-03-09 17:23:11 UTC
Mine appears to work fine after the mod made in the openmpiscript for Bug 772587.  

The question is: Did you modify the 1st line in the script as noted in the comments?

I will mark as modi, please verify with the afore mentioned fix and see if you can repro, please provide details if you are able to repro.

Comment 4 Daniel Horák 2012-03-12 08:49:40 UTC
Created attachment 569308 [details]
job output files (log, output,error); condor PU configuration; openmpi job files (summpi.C, openmpiscript, openmpi.job, Makefile)

It's look like the problem is still there. 
Please check my configuration, submit file and openmpiscript in attachment, if I haven't there a mistake (it is for RHEL 6.2 i386, on x86_64 is it similar).

Comment 5 Daniel Horák 2012-03-12 13:02:34 UTC
(In reply to comment #4)
> It's look like the problem is still there. 

Exactly I realised, that the job finishes unlike to comment 0 and the error messge is in error output file (along to attachment in comment 4 in /tmp/parallel_job.$(cluster).$(process)-$(NODE).err).
(I am not sure now why they remain in running state when I reported this.)

Comment 6 Timothy St. Clair 2012-03-12 16:53:52 UTC
Made mods upstream to handle rhel6 behavior w/ --prefix.

Comment 7 Timothy St. Clair 2012-03-19 18:35:30 UTC
    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:
C: Running an open mpi job using the openmpiscript provided with condor on RHEL 6.2.
C: The job would fail attempting to load shared libraries.
F: Pass the --prefix of the install location of the open mpi to mpirun.
R: Job runs successfully without error.

Comment 10 Daniel Horák 2013-01-14 13:54:58 UTC
Tested on RHEL 6.4 - i386/x86_64 with:

# rpm -q condor selinux-policy openmpi
  condor-7.8.8-0.3.el6.x86_64
  selinux-policy-3.7.19-192.el6.noarch
  openmpi-1.5.4-1.el6.x86_64

It works correctly.

>>> VERIFIED

Comment 13 errata-xmlrpc 2013-03-06 18:40:44 UTC
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/RHSA-2013-0564.html