Changes between Version 17 and Version 18 of NeoContainers


Ignore:
Timestamp:
Oct 2, 2015 2:21:44 PM (9 years ago)
Author:
Geoff Lawler
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NeoContainers

    v17 v18  
    39393. Use the NS file to create a containerized experiment using the existing containers scripts (on users): {{{/share/containers/containerize.py [group] [experiment] [ns file]}}}. Note that the experiment must currently be created in the {{{Deter}}} group as that's where the custom images are. This will change.
    4040
     414. Modify the NS file generated by {{{containerize.py}}} to have a new image for the pnode machines. Navigate to the new experiment page and click {{{Modify Experiment}}}. Change the OS type of the pnodes to {{{PNODE_BASE}}} and the hardware type to {{{MicroCloud}}}. I.e. for each pnode in the NS file, make the lines have the form:
     42{{{
     43    tb-set-node-os ${pnode(0000)} PNODE-CONT
     44    tb-set-hardware ${pnode(0000)} MicroCloud
     45}}}
     46Remove all existing {{{tb-set-node-startcmd}}} lines as these start the old containers system.
     47
    4148The final NS file will look something like this.
    4249
     
    4754tb-make-soft-vtype container0 {pc2133 MicroCloud}
    4855set pnode(0000) [$ns node]
    49 tb-set-node-os ${pnode(0000)} CONT-BASE
     56tb-set-node-os ${pnode(0000)} PNODE-CONT
    5057tb-set-hardware ${pnode(0000)} container0
    5158tb-set-node-failure-action ${pnode(0000)} "nonfatal"
     
    5562}}}
    5663
     645. Populate the configuration database that runs on {{{chef.isi.deterlab.net}}} by running the database population scripts. (This will automated in the future.) This should be run from a physical node in the experiment. I use {{{pnode-0000}}} in the example below.
    5765
    58 4. Modify the NS file generated by {{{containerize.py}}} to have a new image for the pnode machines. Navigate to the new experiment page and click {{{Modify Experiment}}}. Change the OS type of the pnodes to {{{PNODE_BASE}}} and the hardware type to {{{MicroCloud}}}. I.e. for each pnode in the NS file, make the lines have the form:
    5966{{{
    60     tb-set-node-os ${pnode(0000)} PNODE-CONT
    61     tb-set-hardware ${pnode(0000)} MicroCloud
     67> ssh pnode-0000.${EXPID}.${PROJID}
     68> cd [your container repository]
     69> ./load_containers_db.sh -p ${PROJID} -e ${EXPID}
     70> ./load_config_db.sh
    6271}}}
    63 Remove all existing {{{tb-set-node-startcmd}}} lines as these start the old containers system.
    6472
    65 5. Swap in the experiment and wait a long time. There is no great way to tell when the containers are up, unfortunately. Tail the start-cmd output on the {{{config}}} node and look for the "complete" message.
     736. Swap in the experiment and wait a long time. There is no great way to tell when the containers are up, unfortunately. Tail the start-cmd output on the {{{config}}} node and look for the "complete" message.
    6674{{{
    6775users: > ssh config.GID.PID
    6876config: > tail -F /local/logs/config_startcmd.out
    6977}}}
     78
    7079
    7180Fun things to do after the containers are running.