| 1 | Backward compatibility between the new CMC and the nodeHandler. |
| 2 | ============================================================== |
| 3 | The handler directory has a new cmc.rb file. Checkout the latest handler/cmc.rb |
| 4 | |
| 5 | Changes |
| 6 | ======= |
| 7 | |
| 8 | 1) In nodeHandler.rb, |
| 9 | def run() |
| 10 | change CMC::nodeAllOff() to CMC::nodeAllOffSoft() |
| 11 | |
| 12 | def shutdown() |
| 13 | change CMC::nodeAllOff() to CMC::nodeAllOffSoft() |
| 14 | |
| 15 | 2) In experiment.rb, |
| 16 | def Experiment.start() |
| 17 | make changes to send a single CMC call to the entire set instead of sending |
| 18 | multiple CMC calls (once for each node). The existing code is in comments |
| 19 | and the new code has been explicitly identified. |
| 20 | |
| 21 | 3) In node.rb, |
| 22 | def powerOn |
| 23 | comment out CMC::nodeOn(x, y) |
| 24 | end |
| 25 | |
| 26 | def powerOff |
| 27 | change CMC::nodeOff to CMC::nodeOffSoft |
| 28 | end |
| 29 | |
| 30 | 4) In nodeHandler/src/etc/nodehandler/grid.cfg set |
| 31 | CMC_URL= "http://cmc:5012/cmc" |
| 32 | |
| 33 | Backward compatibility between the new PXE and the nodeHandler. |
| 34 | =============================================================== |
| 35 | |
| 36 | a) In nodeSet.rb, |
| 37 | def pxeImage(image, imageName = nil) |
| 38 | change the string that is assigned to @pxePrefix |
| 39 | The existing code has been commented out and also comments indicate the new code |
| 40 | added. |
| 41 | end |
| 42 | |
| 43 | b) A new function setPxeEnvMUlti is defined |
| 44 | |
| 45 | |
| 46 | |
| 47 | vi ./repository/test/app/otr.rb otg.rb |
| 48 | the changelog files, version numbers |