Menu

#4744 the execute order of "kitnodeadd" in "00kitnodebase.pm" and "01kitlsfconfig.pm" is not correct.

2.9.2
open
leo.c.wu
None
kits
5
2015-07-13
2015-07-13
leo.c.wu
No

the execute order of "kitnodeadd" in "00kitnodebase.pm" and "01kitlsfconfig.pm" is not correct.
00kitnodebase.pm should be executed first and then 01kitlsfconfig.pm

Discussion

  • leo.c.wu

    leo.c.wu - 2015-07-13

    the fix is listed below:

    leo@office[work]:$cat diff.profilednodes.pm
    --- profilednodes.pm 2015-07-12 22:31:22.237715065 -0400
    +++ profilednodes.pm.new 2015-07-12 22:32:10.194473976 -0400
    @@ -1046,9 +1046,9 @@
    setrsp_progress("Warning: failed to call kit commands.");
    }

         setrsp_progress("Re-creating nodes...");
    
    • $retref = xCAT::Utils->runxcmd({command=>["kitnodeadd"], node=>$nodes, macflag=>[1]}, $request_command, 0, 2);
    • $retref = xCAT::Utils->runxcmd({command=>["kitnodeadd"], node=>$nodes, sequential=>[1], acflag=>[1]}, $request_command, 0, 2);
      $retstrref = parse_runxcmd_ret($retref);
      if ($::RUNCMD_RC != 0){
      setrsp_progress("Warning: failed to call kit commands.");
      }
     
  • leo.c.wu

    leo.c.wu - 2015-07-13

    append new diff files

    leo@office[xcat-xcat-core]:$git diff
    diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm
    index d674c4c..5ea1a5f 100644
    --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm
    +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm
    @@ -1001,7 +1001,7 @@ Usage:
    }

         setrsp_progress("Re-creating nodes...");
    
    • $retref = xCAT::Utils->runxcmd({command=>["kitnodeadd"], node=>$nodes, macflag=>[1]}, $request_command, 0, 2);
    • $retref = xCAT::Utils->runxcmd({command=>["kitnodeadd"], node=>$nodes, sequential=>[1], acflag=>[1]}, $request_command, 0, 2);
      $retstrref = parse_runxcmd_ret($retref);
      if ($::RUNCMD_RC != 0){
      setrsp_progress("Warning: failed to call kit commands.");
     
MongoDB Logo MongoDB