Changes between Version 30 and Version 31 of OpenFlow/FOAM


Ignore:
Timestamp:
08/24/12 12:28:15 (12 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenFlow/FOAM

    v30 v31  
    5858foamctl config:set-value --key="site.admin.email" --value="foam-admin@gpolab.bbn.com" --passwd-file=/opt/foam/etc/foampasswd
    5959foamctl config:set-value --key="geni.max-lease" --value=9000 --passwd-file=/opt/foam/etc/foampasswd
     60}}}
     61
     62== Upgrading ==
     63
     64Here are some before-and-after tests you can do when you upgrade FOAM, to confirm that your state hasn't changed unexpectedly.
     65
     66Note that if you're upgrading from FOAM 0.6 to 0.8, you'll need to modify the foamctl commands in the "before" section, changing "geni:list-slivers" to "list-slivers".
     67
     68On the FOAM server, get a "before" list of slivers, active and deleted:
     69
     70{{{
     71cd
     72rm -rf ~/tmp/foam-upgrade
     73mkdir -p ~/tmp/foam-upgrade/before
     74cd ~/tmp/foam-upgrade/before
     75
     76foamctl geni:list-slivers --passwd-file=/opt/foam/etc/foampasswd > list-slivers-active.txt
     77foamctl geni:list-slivers --deleted --passwd-file=/opt/foam/etc/foampasswd > list-slivers-deleted.txt
     78
     79egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
     80egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
     81}}}
     82 
     83If you own any slivers on the server, you can also do a listresources and sliverstatus for a sliver or two.
     84
     85Then do the upgrade, as usual.
     86
     87On the FOAM server, get an "after" list of slivers, active and deleted:
     88
     89{{{
     90cd
     91rm -rf ~/tmp/foam-upgrade/after
     92mkdir -p ~/tmp/foam-upgrade/after
     93cd ~/tmp/foam-upgrade/after
     94
     95foamctl geni:list-slivers --passwd-file=/opt/foam/etc/foampasswd > list-slivers-active.txt
     96foamctl geni:list-slivers --deleted --passwd-file=/opt/foam/etc/foampasswd > list-slivers-deleted.txt
     97
     98egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt
     99egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt
     100}}}
     101 
     102Diff the results:
     103 
     104{{{
     105for file in *cooked.txt ; do diff -u ../before/$file $file ; done
    60106}}}
    61107