Changes between Version 48 and Version 49 of OpenFlow/FOAM


Ignore:
Timestamp:
05/23/13 13:03:38 (6 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenFlow/FOAM

    v48 v49  
    9191
    9292{{{
    93 /bin/echo "foam hold" | sudo /usr/bin/dpkg --set-selections 
    94 /bin/echo "flowvisor hold" | sudo /usr/bin/dpkg --set-selections 
     93/bin/echo "foam hold" | sudo /usr/bin/dpkg --set-selections
     94/bin/echo "flowvisor hold" | sudo /usr/bin/dpkg --set-selections
    9595}}}
    9696
     
    9999Here are some before-and-after tests you can do when you upgrade FOAM, to confirm that your state hasn't changed unexpectedly.
    100100
    101 On the FOAM server, get a "before" list of slivers, active and deleted:
    102 
    103 {{{
    104 cd
    105 rm -rf ~/tmp/foam-upgrade
    106 mkdir -p ~/tmp/foam-upgrade/before
    107 cd ~/tmp/foam-upgrade/before
    108 
    109 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt
    110 foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt
    111 
    112 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
    113 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
    114 }}}
    115  
    116 If you own any slivers on the server, you can also do a listresources and sliverstatus for a sliver or two.
     101On the FOAM server, get a "before" list of slivers, active and deleted:
     102
     103{{{
     104version=<put the version number here>
     105
     106cd
     107rm -rf ~/tmp/foam-upgrade/$version
     108mkdir -p ~/tmp/foam-upgrade/$version/before
     109cd ~/tmp/foam-upgrade/$version/before
     110
     111foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt
     112until [ "$(grep -v "HTTP Error 504: Gateway Time-out" list-slivers-deleted.txt)" != "" ] ; do foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd >| list-slivers-deleted.txt ; done
     113
     114egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
     115egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
     116}}}
     117
     118If you own any slivers on the server, you can also do a listresources and sliverstatus for a sliver or two.
    117119
    118120Then do the upgrade, as usual. For simple upgrades:
     
    127129More complex upgrades might have additional steps, which will generally be described on a separate page, in the announcement of the upgrade, and/or in the release notes.
    128130
    129 Then, on the FOAM server, get an "after" list of slivers, active and deleted:
    130 
    131 {{{
    132 cd
    133 rm -rf ~/tmp/foam-upgrade/after
    134 mkdir -p ~/tmp/foam-upgrade/after
    135 cd ~/tmp/foam-upgrade/after
    136 
    137 foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt
    138 foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt
    139 
    140 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
    141 egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
    142 }}}
    143  
    144 Diff the results:
    145  
    146 {{{
    147 for file in *cooked.txt ; do diff -u ../before/$file $file ; done
     131Then, on the FOAM server, get an "after" list of slivers, active and deleted:
     132
     133{{{
     134cd
     135rm -rf ~/tmp/foam-upgrade/$version/after
     136mkdir -p ~/tmp/foam-upgrade/$version/after
     137cd ~/tmp/foam-upgrade/$version/after
     138
     139foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt
     140until [ "$(grep -v "HTTP Error 504: Gateway Time-out" list-slivers-deleted.txt)" != "" ] ; do foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd >| list-slivers-deleted.txt ; done
     141
     142egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
     143egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
     144}}}
     145
     146Diff the results:
     147
     148{{{
     149cd ../before
     150for file in *cooked.txt ; do diff -u $file ../after/$file ; done
    148151}}}
    149152