Bug 782132 - openmpiscript - Command mpirun needs parameter --prefix for correct run (on RHEL 6.2)
Summary: openmpiscript - Command mpirun needs parameter --prefix for correct run (on R...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor
Version: 2.1
Hardware: All
OS: Linux
high
low
Target Milestone: 2.3
: ---
Assignee: Timothy St. Clair
QA Contact: Daniel Horák
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-16 16:02 UTC by Daniel Horák
Modified: 2013-03-06 18:40 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2013-03-06 18:40:44 UTC
Target Upstream Version:


Attachments (Terms of Use)
summpi.C, Makefile (817 bytes, application/x-gzip)
2012-03-09 07:12 UTC, Daniel Horák
no flags Details
job output files (log, output,error); condor PU configuration; openmpi job files (summpi.C, openmpiscript, openmpi.job, Makefile) (2.95 KB, application/x-gzip)
2012-03-12 08:49 UTC, Daniel Horák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0564 0 normal SHIPPED_LIVE Low: Red Hat Enterprise MRG Grid 2.3 security update 2013-03-06 23:37:09 UTC

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


Note You need to log in before you can comment on or make changes to this bug.