Changes between Version 4 and Version 5 of JBSsandbox/PlasticSlices


Ignore:
Timestamp:
04/21/14 08:11:30 (10 years ago)
Author:
Josh Smift
Comment:

Added some sanity-checks to the createsliver process

Legend:

Unmodified
Added
Removed
Modified
  • JBSsandbox/PlasticSlices

    v4 v5  
    154154}}}
    155155
    156 Create the slivers:
     156Set up variables to create the slivers:
    157157
    158158{{{
     
    160160for slicename in $slices ; do rspecs[$slicename]=$(ls -1 ~/rspecs/request/$slicename/*.rspec) ; done
    161161for slicename in $slices ; do echo ${rspecs[$slicename]} ; done
     162for slicename in $slices ; do echo ${rspecs[$slicename]} ; done | wc
     163}}}
     164
     165The last two echo lines are a good place to sanity-check that things are as you expect: The first should list an rspec for every sliver you expect to create, and the second should list a count of them. There should be one line per slice, and probably a few hundred rspecs, but the exact number will depend on how many aggregates you have in each slice.
     166
     167Actually create the slivers:
     168
     169{{{
    162170for slicename in $slices ; do for rspec in ${rspecs[$slicename]} ; do somni $slicename $rspec ; omni --usercredfile=$HOME/.gcf/$USER-geni-usercred.xml --slicecredfile=$HOME/.gcf/$slicename-cred.xml -a $am createsliver $slicename $rspec & done ; sleep 5m ; done
    163171}}}