Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Visibility: Public
  • Change Control: Stable
  • Synopsis: Modifications to include initial MoM config settings for Cray.
  • Standing of the interface : modified interface
  • Details
    • if on real Cray or Cray ALPS simulator, then initialize the PBS_HOME/mom_priv/config to have these:
    • $vnodedef_additive 0

    • $alps_client <path to ALPS API>

    • $usecp *:/home /home


Interface:  Scheduler.revert_to_defaults() 

  • Visibility: Public
  • Change Control: Stable
  • Synopsis: Modifications to include 'vntype' in sched_config out-of-box settings for Cray.
  • Standing of the interface : modified interface
  • Details
    • After copying the out-of-box scheduler configuration in PBS_EXEC/etc/pbs_sched_config to PBS_HOME/sched_priv/sched_config :
      • If platform is a real Cray or Cray ALPS simulator, then add "vntype" to resources line of PBS_HOME/sched_priv/sched_config.


Interface:   Server PBSTestSuite.revert_to_defaultsmom() 

  • Visibility: Public
  • Change Control:  StableStable
  • Synopsis: Modifications to revert resources, vnodes and hooks settings for Crayhave additional steps of deleting and creating nodes back, for retaining Cray specific resources.
  • Standing of the interface : modified interface
  • Detailsresources and vnodes
      As part of reverting resources, the PBS_HOME/server_priv/resourcedef file is removed.
    • If on a Cray or Cray ALPS simulator
    • , then recreate the out-of-box Cray-specific custom resources and vnodes,
      including the ones PBS creates from reading the ALPS inventory, by:
      • Checking that $alps_client and its value exists in PBS_HOME/mom_priv/config, and if so:
        • delete all the vnodes: qmgr -c "delete node @default"
        • add back the MoMs: qmgr -c "create n <MoM hostname>"
        • check until such time that the MoM node has actually been added and the node state is free
        • if successful, then
          • the resourcedef file and the vnodes would have reverted to the out-of-box Cray configuration.
        • If there is an error during one of the following:
          • checking if $alps_client is properly configured
          • deleting all vnodes
          • adding MoMs
          then raise an exception.
    hooks
      As part of reverting hooks, all hooks, except built-in hooks, are disabled. 
      If on a Cray or Cray ALPS simulator, then enable the PBS_translate_mpp hook by:
    • copying PBS_EXEC/lib/python/altair/pbs_hooks/PBS_translate_mpp.HK to PBS_HOME/server_priv/hooks/PBS_translate_mpp.HK
      • if there is an error, then raise an exception
    • then set enabled=true in PBS_HOME/server_priv/hooks/PBS_translate_mpp.HKif there is an error, then raise an exception
    • then perform below:
      • Delete all nodes and create them back.