Changes between Initial Version and Version 1 of User Guide/Omf/Load Image


Ignore:
Timestamp:
May 16, 2019, 3:45:00 PM (6 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • User Guide/Omf/Load Image

    v1 v1  
     1== Loading an image ==
     2 1. Before we begin using the nodes, it's a good idea to check their status first. This is done with the ''omf stat'' command.
     3
     4{{{
     5console> omf stat -t all
     6
     7 INFO NodeHandler: OMF Experiment Controller 5.4 (git 861d645)
     8 INFO NodeHandler: Slice ID: default_slice (default)
     9 INFO NodeHandler: Experiment ID: default_slice-2019-05-16t11.30.21.088-04.00
     10 INFO NodeHandler: Message authentication is disabled
     11 INFO property.resetDelay: resetDelay = 200 (Fixnum)
     12 INFO property.resetTries: resetTries = 1 (Fixnum)
     13 INFO property.nodes: nodes = "system:topo:all" (String)
     14 INFO property.summary: summary = false (FalseClass)
     15 INFO Topology: Loaded topology 'system:topo:all'.
     16
     17Talking to the CMC service, please wait
     18-----------------------------------------------
     19 Node: mob1.sb1.cosmos-lab.org           State: POWEROFF
     20 Node: mob2.sb1.cosmos-lab.org           State: POWEROFF
     21 Node: mob3.sb1.cosmos-lab.org           State: POWEROFF
     22 Node: sdr1-lg1.sb1.cosmos-lab.org       State: POWEROFF
     23 Node: sdr1-md1.sb1.cosmos-lab.org       State: POWEROFF
     24 Node: sdr2-lg1.sb1.cosmos-lab.org       State: POWEROFF
     25 Node: sdr2-md1.sb1.cosmos-lab.org       State: POWEROFF
     26 Node: srv1-lg1.sb1.cosmos-lab.org       State: POWEROFF
     27 Node: srv2-lg1.sb1.cosmos-lab.org       State: POWEROFF
     28-----------------------------------------------
     29
     30 INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks.
     31 INFO NodeHandler:
     32 INFO NodeHandler: Shutting down experiment, please wait...
     33 INFO NodeHandler:
     34 INFO run: Experiment default_slice-2019-05-16t11.30.21.088-04.00 finished after 0:5
     35
     36}}}
     37
     38The node can be in 1 of 3 states
     39 || POWEROFF || Node is available for use but turned off ||
     40 ||POWERON || Node is available and is on ||
     41 ||NOT REGISTERED || Node is not available for use ||
     42
     43
     442. It is recommended that the node be in the POWEROFF state prior to any experiment process. If the node is in the POWERON state you can use the ''omf tell'' command to get the node into the off state.
     45
     46{{{
     47console> omf tell -a offh -t sdr2-lg1.sb1.cosmos-lab.org
     48
     49 INFO NodeHandler: OMF Experiment Controller 5.4 (git 861d645)
     50 INFO NodeHandler: Slice ID: default_slice (default)
     51 INFO NodeHandler: Experiment ID: default_slice-2019-05-16t11.33.26.632-04.00
     52 INFO NodeHandler: Message authentication is disabled
     53 INFO property.resetDelay: resetDelay = 200 (Fixnum)
     54 INFO property.resetTries: resetTries = 1 (Fixnum)
     55 INFO property.nodes: nodes = "sdr2-lg1.sb1.cosmos-lab.org" (String)
     56 INFO property.command: command = "offh" (String)
     57
     58Talking to the CMC service, please wait
     59-----------------------------------------------
     60 Node: sdr2-lg1.sb1.cosmos-lab.org       Reply: OK
     61-----------------------------------------------
     62
     63 INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks.
     64 INFO NodeHandler:
     65 INFO NodeHandler: Shutting down experiment, please wait...
     66 INFO NodeHandler:
     67 INFO run: Experiment default_slice-2019-05-16t11.33.26.632-04.00 finished after 0:10
     68}}}
     69
     70 3. Use the ''omf stat'' to verify the node is in the POWEROFF state. At this point load an image with ''omf load'' command.
     71
     72{{{
     73console> omf load -i baseline-uhd1.ndz -t sdr2-lg1.sb1.cosmos-lab.org
     74
     75 INFO NodeHandler: OMF Experiment Controller 5.4 (git 861d645)
     76 INFO NodeHandler: Slice ID: pxe_slice
     77 INFO NodeHandler: Experiment ID: pxe_slice-2019-05-16t11.04.08.897-04.00
     78 INFO NodeHandler: Message authentication is disabled
     79 INFO property.resetDelay: resetDelay = 200 (Fixnum)
     80 INFO property.resetTries: resetTries = 1 (Fixnum)
     81 INFO property.nodes: nodes = "sdr2-lg1.sb1.cosmos-lab.org" (String)
     82 INFO property.image: image = "baseline-uhd1.ndz" (String)
     83 INFO property.domain: domain = "sb1.cosmos-lab.org" (String)
     84 INFO property.outpath: outpath = "/tmp" (String)
     85 INFO property.outprefix: outprefix = "pxe_slice-2019-05-16t11.04.08.897-04.00" (String)
     86 INFO property.timeout: timeout = 800 (Fixnum)
     87 INFO property.resize: resize = nil (NilClass)
     88 INFO property.resetDelay: resetDelay = 80 (Fixnum)
     89 INFO Experiment: Resetting resources
     90 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [0 sec.]
     91 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [10 sec.]
     92 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [20 sec.]
     93 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [30 sec.]
     94 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [40 sec.]
     95 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [50 sec.]
     96 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: sdr2-lg1.sb1.cosmos-lab.org) [60 sec.]
     97 INFO ALL_UP: Event triggered. Starting the associated tasks.
     98 INFO exp: Progress(0/0/1): 0/0/0 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 790 sec.
     99 INFO BRING_UP: Event triggered. Starting the associated tasks.
     100 INFO Experiment: Bringing up resources
     101 INFO exp: Progress(0/0/1): 0/0/0 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 780 sec.
     102 INFO exp: Progress(0/0/1): 20/20/20 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 770 sec.
     103 INFO exp: Progress(0/0/1): 40/40/40 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 760 sec.
     104 INFO exp: Progress(0/0/1): 60/60/60 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 750 sec.
     105 INFO exp: Progress(0/0/1): 70/70/70 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 740 sec.
     106 INFO exp: Progress(0/0/1): 90/90/90 min(sdr2-lg1.sb1.cosmos-lab.org)/avg/max (59) - Timeout: 730 sec.
     107 INFO exp: Progress(1/0/1): 100/100/100 min()/avg/max (59) - Timeout: 720 sec.
     108 INFO exp:  -----------------------------
     109 INFO exp:  Imaging Process Done
     110 INFO exp:  1 node successfully imaged - Topology saved in '/tmp/pxe_slice-2019-05-16t11.04.08.897-04.00-topo-success.rb'
     111 INFO exp:  -----------------------------
     112 INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks.
     113 INFO NodeHandler:
     114 INFO NodeHandler: Shutting down experiment, please wait...
     115 INFO NodeHandler:
     116 INFO NodeHandler: Shutdown flag is set - Turning Off the resources
     117 INFO run: Experiment pxe_slice-2019-05-16t11.04.08.897-04.00 finished after 2:25
     118}}}
     119
     120Once the node finishes the imaging process, the node is in the POWEROFF state. So use the ''omf tell'' command to turn it back on.
     121