[GE issues] [Issue 3133] New - sge_inst loops for a while then crashes if spool directory already exists

guyt guyt at unsw.edu.au
Thu Sep 17 01:02:56 BST 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=3133
                 Issue #|3133
                 Summary|sge_inst loops for a while then crashes if spool direc
                        |tory already exists
               Component|gridengine
                 Version|6.0u3
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|install
             Assigned to|dom
             Reported by|guyt






------- Additional comments from guyt at sunsource.net Wed Sep 16 17:02:55 -0700 2009 -------
When installing a new master host using sge_inst -m -auto ... with a configuration file that specifies a spool directory that already
exists, an error message is generated in $SGE_ROOT/util/install_modules/inst_qmaster.sh on line 342, then MoveLog is called. 

MoveLog calls GetAdminUser (util/install_modules/inst_common.sh line 2743) which checks the bootstrap file to read what is the SGEADMIN
username. However, there is no check to see if the bootstrap file exist and in fact it has not yet been created. 

I suggest that the line  

ADMINUSER=`cat $SGE_ROOT/$SGE_CELL/common/bootstrap | grep "admin_user" | awk '{ print $2 }'`

should be similar to:

if [ -e  $SGE_ROOT/$SGE_CELL/common/bootstrap ] ; then
    ADMINUSER=`cat $SGE_ROOT/$SGE_CELL/common/bootstrap | grep "admin_user" | awk '{ print $2 }'`
else
    ADMINUSER=sgeadmin
fi

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=217554

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list