Changes between Version 17 and Version 18 of NeoContainers
- Timestamp:
- Oct 2, 2015 2:21:44 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NeoContainers
v17 v18 39 39 3. 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. 40 40 41 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: 42 {{{ 43 tb-set-node-os ${pnode(0000)} PNODE-CONT 44 tb-set-hardware ${pnode(0000)} MicroCloud 45 }}} 46 Remove all existing {{{tb-set-node-startcmd}}} lines as these start the old containers system. 47 41 48 The final NS file will look something like this. 42 49 … … 47 54 tb-make-soft-vtype container0 {pc2133 MicroCloud} 48 55 set pnode(0000) [$ns node] 49 tb-set-node-os ${pnode(0000)} CONT-BASE56 tb-set-node-os ${pnode(0000)} PNODE-CONT 50 57 tb-set-hardware ${pnode(0000)} container0 51 58 tb-set-node-failure-action ${pnode(0000)} "nonfatal" … … 55 62 }}} 56 63 64 5. 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. 57 65 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:59 66 {{{ 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 62 71 }}} 63 Remove all existing {{{tb-set-node-startcmd}}} lines as these start the old containers system.64 72 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.73 6. 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. 66 74 {{{ 67 75 users: > ssh config.GID.PID 68 76 config: > tail -F /local/logs/config_startcmd.out 69 77 }}} 78 70 79 71 80 Fun things to do after the containers are running.