Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 782132 - openmpiscript - Command mpirun needs parameter --prefix for correct run (on RHEL 6.2)
openmpiscript - Command mpirun needs parameter --prefix for correct run (on R...
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor (Show other bugs)
2.1
All Linux
high Severity low
: 2.3
: ---
Assigned To: Timothy St. Clair
Daniel Horák
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-16 11:02 EST by Daniel Horák
Modified: 2013-03-06 13:40 EST (History)
4 users (show)

See Also:
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 13:40:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
summpi.C, Makefile (817 bytes, application/x-gzip)
2012-03-09 02:12 EST, 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 04:49 EDT, Daniel Horák
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0564 normal SHIPPED_LIVE Low: Red Hat Enterprise MRG Grid 2.3 security update 2013-03-06 18:37:09 EST

  None (edit)
Description Daniel Horák 2012-01-16 11:02:11 EST
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 16:16:32 EST
could you please attach your summpi example referenced above w/makefile for independent verification.
Comment 2 Daniel Horák 2012-03-09 02:12:24 EST
Created attachment 568830 [details]
summpi.C, Makefile
Comment 3 Timothy St. Clair 2012-03-09 12:23:11 EST
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 04:49:40 EDT
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 09:02:34 EDT
(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 12:53:52 EDT
Made mods upstream to handle rhel6 behavior w/ --prefix.
Comment 7 Timothy St. Clair 2012-03-19 14:35:30 EDT
    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 08:54:58 EST
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 13:40:44 EST
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.