Node Build and Configuration Notebook - page 25 of 55

EditDeleteAnnotateNotarize
First PagePrevious PageNext PageLast PageTable of ContentsSearch

Date and Author(s)

NodeMgr example XML msgs & responses v1

<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
  $Id: node-mgr.xml,v 1.6 2002/03/07 23:35:38 tjn Exp $ 
  Brian Luethke, John Mugler, Thomas Naughton, and Stephen Scott (ORNL) 
 
  First attempt at Node Manager example messages and responses  
 
  Note, the 'state' value will be maintained in an InfoService/PkgService 
  area and external access can query but only set two states: online/offline. 
  Otherwise, the NodeMgr does the state changing for things likes 'reboot', etc. 
 
  Summary of available commands for <node-mgr-requests>: 
    * Reboot given node at time 
        <reboot      nodeid  time>                        
 
    * Halt given node at time to level 
        <halt        nodeid  time  level>          
 
    * Power a node UP or DOWN 
        <power       nodeid  state>                         
 
    * Set the state for a node  
      Note: public interface restricted to online|offline. 
        <setstate    nodeid  state=[online|offline]>      
                             state=[boot|build|offline|online|on|off] 
 
    * Return current state (any of the possible states) 
        <getstate    nodeid>               
 
    * Suck imgage from node to imgage server 
        <getimage    imgservid  nodeid  imgname>   
 
    * Set/install an img on a node 
        <setimage    nodeid imgname>                   
 
    * Shortcut to set/install node, imgname from PkgService 
        <rebuild  nodeid>     
 
 
  Summary of available repsonses for <node-mgr-response>: 
    * Returns cur state of node 
        <stateinfo   nodeid   state>                      
                              state=[boot|build|offline|online|on|off] 
 
    * Returns status of getimgage 
        <imageinfo   nodeid   imgname  status>          
                                       status=[started|finished|errorno] 
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--> 
 
 
<!-- Example request to reboot a node "now" --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <reboot    nodeid="node55"  time="0"> 
</node-mgr-requests> 
 
 
    <!-- Response sent once reboot completes --> 
    <?xml version="1.0" encoding="UTF-8"?> 
    <node-mgr-response> 
        <stateinfo   nodeid="node55"  state="on"> 
    </node-mgr-response> 
 
 
 
<!-- Example request to halt to administrative state [see also: shutdown(8)] --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <halt      nodeid="node55"  time="0"  level="1"> 
</node-mgr-requests> 
 
 
 
 
<!-- Example request to physically power DOWN node, requires pwr mgnt hrdwr --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <power     nodeid="node55"  state="off"> 
</node-mgr-requests> 
 
 
 
<!-- Example request to physically power UP node, requires pwr mgnt hrdwr --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <power     nodeid="node55"  state="on"> 
</node-mgr-requests> 
 
 
 
<!-- Example request to physically power UP node, requires pwr mgnt hrdwr --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <getstate    nodeid="node55"> 
</node-mgr-requests> 
 
 
    <!-- Response for request about node's state --> 
    <?xml version="1.0" encoding="UTF-8"?> 
    <node-mgr-response> 
        <stateinfo   nodeid="node55"  state="on"> 
    </node-mgr-response> 
 
 
 
<!-- Example request to suck an image off of a node, saving the image  
     with the specified name to the image server node --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <getimage    imgservid="goldserver" nodeid="node55"  imgname="compute_rh72"> 
</node-mgr-requests> 
 
 
    <!-- Response for request to get an image from a node --> 
    <!-- Not sure about this...probably want started_getimg/finished_getimg? --> 
    <?xml version="1.0" encoding="UTF-8"?> 
    <node-mgr-response> 
        <imageinfo   nodeid="node55"  imgname="compute_rh72" status="started"> 
    </node-mgr-response> 
 
 
 
<!-- Build/Setimage for a node 
     NodeMgr, does the offlining and then blasts img...need 
     interaction with Scheduler, hmm? 
     Possibly this should probably be a couple msgs. 
        MSG1=offline / ACK1=ok,offline;  MSG2=build,setimg / ACK2=ok,done 
        MSG3=online / ACK3=ok,online 
  --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <setimage    nodeid="node55"  imgname="compute_rh72">    
</node-mgr-requests> 
 
 
 
<!-- This is more of a shorthand way of doing a setimage, it just 
     looks up the img associated with nodeid from the PkgService and 
     does the nec. offlining/rebooting too. 
  --> 
<?xml version="1.0" encoding="UTF-8"?> 
<node-mgr-requests> 
    <rebuild    nodeid="node55"> 
</node-mgr-requests>