wiki:Old/NodeHandler/GridService

Version 2 (modified by sswami, 18 years ago) ( diff )

Backward compatibility between the Ruby version of CMC, PXE and the nodeHandler

1) The handler directory has a new cmc.rb file. Checkout the latest handler/cmc.rb

2) In nodeHandler.rb,

def run()

change CMC::nodeAllOff() to CMC::nodeAllOffSoft()

def shutdown()

change CMC::nodeAllOff() to CMC::nodeAllOffSoft()

3) In experiment.rb,

def Experiment.start()

make changes to send a single CMC call to the entire set instead of sending multiple CMC calls (once for each node). The existing code is in comments and the new code has been explicitly identified.

4) In node.rb,

def powerOn

comment out CMC::nodeOn(x, y)

end

def powerOff

change CMC::nodeOff to CMC::nodeOffSoft

end

5) In nodeHandler/src/etc/nodehandler/grid.cfg set

CMC_URL= "http://cmc:5012/cmc"

6) In nodeSet.rb,

def pxeImage(image, imageName = nil)

change the string that is assigned to @pxePrefix The existing code has been commented out and also comments indicate the new code added.

end

7) In nodeSet.rb,

the calls to the function setPxeEnv has been commented and an new function setPxeEnvMulti has been implemented.

Note: See TracWiki for help on using the wiki.