Changes between Version 14 and Version 15 of OpenFlow/FOAM/Testing


Ignore:
Timestamp:
05/09/12 21:04:54 (12 years ago)
Author:
Josh Smift
Comment:

Switched to running complex tests entirely remotely

Legend:

Unmodified
Added
Removed
Modified
  • OpenFlow/FOAM/Testing

    v14 v15  
    220220The steps in this subsection look at a newly-created sliver, run through a sequence of approve/disable/reject actions to confirm that it can transition from any of those states to the others, and check the FlowVisor after each change; then delete the sliver, and confirm that it vanishes from the FlowVisor.
    221221
    222 NOTE: These steps are run directly on the FOAM/FlowVisor server, rather than on your Omni client system. If those aren't the same server, do the FOAM commands on the FOAM server, and the FlowVisor commands on the FV server.
    223 
    224 Repeat the setup steps from above, but on the server, so you've got the right variables set there:
    225 
    226 {{{
    227 slicename=${USER}foamtest
    228 slice_urn=urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+$slicename
    229 slice_urn_egrep=$(echo $slice_urn | sed -e 's/+/\\+'/g)
    230 sliver_urn=$(foamctl geni:list-slivers --passwd-file=/opt/foam/etc/foampasswd | egrep sliver_urn.+$slice_urn_egrep | sed -e 's/ *"sliver_urn": "\(.*\)".*/\1/')
    231 fv_slicename=$(echo $sliver_urn | awk -F : '{print $NF}')
    232 }}}
    233 
    234222Confirm that the sliver was approved at creation time: Check that 'status' is "Approved", and that the sliver shows up in FlowVisor, with two flowspace rules:
    235223
    236224{{{
    237 foam-confirm-sliver $sliver_urn status approved
    238 flowvisor-confirm-fvslice-exists $fv_slicename true
    239 flowvisor-confirm-flowspace-rule-count $fv_slicename 2
     225ssh $foamserver foam-confirm-sliver $sliver_urn status approved
     226ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true
     227ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2
    240228}}}
    241229
     
    243231
    244232{{{
    245 sudo sh -c "echo $(date +'%M %H' -d 'now + 1 min') '* * *  www-data  /opt/foam/bin/daily-queue ; echo foamtest cron job ran at $(date)' > /etc/cron.d/foamtest"
     233ssh -t $foamserver "sudo sh -c \"echo $(date +'%M %H' -d 'now + 1 min') '* * *  www-data  /opt/foam/bin/daily-queue ; echo foamtest cron job ran at $(date)' > /etc/cron.d/foamtest\""
    246234}}}
    247235
     
    251239
    252240{{{
    253 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     241ssh $foamserver foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    254242}}}
    255243
     
    259247
    260248{{{
    261 foam-confirm-sliver $sliver_urn status pending
    262 flowvisor-confirm-fvslice-exists $fv_slicename false
    263 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     249ssh $foamserver foam-confirm-sliver $sliver_urn status pending
     250ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     251ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    264252}}}
    265253
     
    269257
    270258{{{
    271 sudo sh -c "echo $(date +'%M %H' -d 'now + 1 min') '* * *  www-data  /opt/foam/bin/daily-queue ; echo foamtest cron job ran at $(date)' > /etc/cron.d/foamtest"
     259ssh -t $foamserver "sudo sh -c \"echo $(date +'%M %H' -d 'now + 1 min') '* * *  www-data  /opt/foam/bin/daily-queue ; echo foamtest cron job ran at $(date)' > /etc/cron.d/foamtest\""
    272260}}}
    273261
     
    277265
    278266{{{
    279 sudo rm /etc/cron.d/foamtest
     267ssh -t $foamserver sudo rm /etc/cron.d/foamtest
    280268}}}
    281269
     
    285273
    286274{{{
    287 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    288 foam-confirm-sliver $sliver_urn status approved
    289 flowvisor-confirm-fvslice-exists $fv_slicename true
    290 flowvisor-confirm-flowspace-rule-count $fv_slicename 2
     275ssh $foamserver foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     276ssh $foamserver foam-confirm-sliver $sliver_urn status approved
     277ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true
     278ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2
    291279}}}
    292280
     
    294282
    295283{{{
    296 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    297 foam-confirm-sliver $sliver_urn status rejected
    298 flowvisor-confirm-fvslice-exists $fv_slicename false
    299 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     284ssh $foamserver foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     285ssh $foamserver foam-confirm-sliver $sliver_urn status rejected
     286ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     287ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    300288}}}
    301289
     
    303291
    304292{{{
    305 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    306 foam-confirm-sliver $sliver_urn status pending
    307 flowvisor-confirm-fvslice-exists $fv_slicename false
    308 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     293ssh $foamserver foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     294ssh $foamserver foam-confirm-sliver $sliver_urn status pending
     295ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     296ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    309297}}}
    310298
     
    312300
    313301{{{
    314 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    315 foam-confirm-sliver $sliver_urn status rejected
    316 flowvisor-confirm-fvslice-exists $fv_slicename false
    317 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     302ssh $foamserver foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     303ssh $foamserver foam-confirm-sliver $sliver_urn status rejected
     304ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     305ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    318306}}}
    319307
     
    321309
    322310{{{
    323 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    324 foam-confirm-sliver $sliver_urn status approved
    325 flowvisor-confirm-fvslice-exists $fv_slicename true
    326 flowvisor-confirm-flowspace-rule-count $fv_slicename 2
     311ssh $foamserver foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     312ssh $foamserver foam-confirm-sliver $sliver_urn status approved
     313ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true
     314ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2
    327315}}}
    328316
     
    330318
    331319{{{
    332 foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    333 foam-confirm-sliver $sliver_urn deleted true
    334 flowvisor-confirm-fvslice-exists $fv_slicename false
    335 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     320ssh $foamserver foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
     321ssh $foamserver foam-confirm-sliver $sliver_urn deleted true
     322ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     323ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    336324}}}
    337325
     
    347335
    348336{{{
    349 foam-confirm-sliver $sliver_urn status approved
    350 flowvisor-confirm-fvslice-exists $fv_slicename true
    351 flowvisor-confirm-flowspace-rule-count $fv_slicename 2
     337ssh $foamserver foam-confirm-sliver $sliver_urn status approved
     338ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true
     339ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2
    352340}}}
    353341
     
    421409}}}
    422410
    423 (Within a minute (when the cron job fires), that should generate a "sliver expiring soon" e-mail message, one to the experimenter and one to the FOAM admin; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
     411(Within a minute (when the cron job fires), that should generate a "sliver expiring in about a week" e-mail message, one to the experimenter and one to the FOAM admin; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    424412
    425413Add the cron job again, to confirm that it doesn't send a second notification:
     
    467455}}}
    468456
    469 (Within a minute (when the cron job fires), that should generate a "sliver expiring shortly" e-mail message, one to the experimenter and one to the FOAM admin; a "sliver expired" message, one to the experimenter and one to the FOAM admin; and one message to www-data saying that the cron job ran.)
     457(Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; a "sliver expired" message, one to the experimenter and one to the FOAM admin; and one message to www-data saying that the cron job ran.)
    470458
    471459Confirm that the sliver was deleted, does not show up in FlowVisor, and has no flowspace rules::
    472460
    473461{{{
    474 foam-confirm-sliver $sliver_urn deleted true
    475 flowvisor-confirm-fvslice-exists $fv_slicename false
    476 flowvisor-confirm-flowspace-rule-count $fv_slicename 0
     462ssh $foamserver foam-confirm-sliver $sliver_urn deleted true
     463ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false
     464ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0
    477465}}}
    478466