Changes between Version 14 and Version 15 of FlowVisor


Ignore:
Timestamp:
02/06/13 14:04:33 (11 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlowVisor

    v14 v15  
    4747== Upgrading ==
    4848
    49 Since most of our !FlowVisor instances are managed by FOAM, when we upgrade !FlowVisor, we typically just test FOAM to make sure that everything still works as expected.
     49Here are some before-and-after tests you can do when you upgrade FlowVisor, to confirm that your state hasn't changed unexpectedly.
     50
     51First, get a "before" dump of the flowspace and slice info:
     52
     53{{{
     54cd
     55rm -rf ~/tmp/flowvisor-upgrade
     56mkdir -p ~/tmp/flowvisor-upgrade/before
     57cd ~/tmp/flowvisor-upgrade/before
     58
     59fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig config.json
     60fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace | sed -re 's/id=\[[0-9\-]+\]/[id number stripped]/' > flowspace
     61for slice in $(fvctl --passwd-file=/etc/flowvisor.passwd listSlices | awk '{print $3}' | sort); do echo "Info for slice: $slice" ; fvctl --passwd-file=/etc/flowvisor.passwd getSliceInfo $slice | egrep -v ^connection_[0-9]+= | sort ; done > sliceinfo
     62}}}
     63
     64Next do the upgrade, as usual.
     65
     66Then, get an "after" dump of the flowspace and slice info:
     67
     68{{{
     69cd
     70rm -rf ~/tmp/flowvisor-upgrade/after
     71mkdir -p ~/tmp/flowvisor-upgrade/after
     72cd ~/tmp/flowvisor-upgrade/after
     73
     74fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig config.json
     75fvctl --passwd-file=/etc/flowvisor.passwd listFlowSpace | sed -re 's/id=\[[0-9\-]+\]/[id number stripped]/' > flowspace
     76for slice in $(fvctl --passwd-file=/etc/flowvisor.passwd listSlices | awk '{print $3}' | sort); do echo "Info for slice: $slice" ; fvctl --passwd-file=/etc/flowvisor.passwd getSliceInfo $slice | egrep -v ^connection_[0-9]+= | sort ; done > sliceinfo
     77}}}
     78
     79Finally, diff the results against the "before" results:
     80
     81{{{
     82cd ~/tmp/flowvisor-upgrade/before
     83for file in * ; do diff -u $file ../after/$file ; done
     84}}}
     85
     86If that all looks good, a good way to test that things are working properly is to do some FOAM operations (create or delete or approve or disable some slivers) on the FOAM server that manages that !FlowVisor.
    5087
    5188== Useful commands ==