Changes between Version 10 and Version 11 of OpenFlow/FOAM/Testing


Ignore:
Timestamp:
05/02/12 11:16:34 (12 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenFlow/FOAM/Testing

    v10 v11  
    2929 * The URL of the FOAM server is also a name that you can use to log in to it. (Very likely, but might be untrue with virtualhosts or some other odd thing.)
    3030 * On the FOAM server you're testing, when you create a sliver, it will be automatically approved. (More specifically, that geni.openflow.analysis-engine = True (analyze slivers for overlap), and geni.approval.approve-on-creation = 2 (approve slivers at creation time if they don't fail any overlap-analysis tests), and the test sliver's rspec describes a flowspace that will pass overlap analysis.)
     31 * On the FOAM server you're testing, when the 'www-data' user runs a cron job that has output, it sends mail to 'www-data', and you can receive this mail.
    3132
    3233You can run most of these tests wherever you usually use Omni; they don't need to run on the FOAM/FV server, except as noted below.
     
    229230}}}
    230231
    231 Confirm that the sliver was auto-approved: Check that 'status' is "Approved", and that the sliver shows up in FlowVisor, with two flowspace rules:
     232Confirm 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:
    232233
    233234{{{
     
    245246}}}
    246247
    247 (Within a minute (when the cron job fires), that should generate a message to gpo-ops saying that the cron job ran, and one of two other things will happen: (a) If there are *other* pending slivers, it should generate a message to the FOAM admin listing only those slivers, and not your test sliver; OR (b) If there are no other pending slivers, it should not send any message about pending slivers to the FOAM admin.)
     248(Within a minute (when the cron job fires), that should generate a message to www-data saying that the cron job ran, and one of two other things will happen: (a) If there are *other* pending slivers, it should generate a message to the FOAM admin listing only those slivers, and not your test sliver; OR (b) If there are no other pending slivers, it should not send any message about pending slivers to the FOAM admin.)
    248249
    249250Disable the sliver, to put it back into the pending queue:
     
    271272}}}
    272273
    273 (Within a minute (when the cron job fires), that should generate a message to gpo-ops saying that the cron job ran; and e-mail to the FOAM admin with a list of pending slivers, including your test sliver.)
     274(Within a minute (when the cron job fires), that should generate a message to www-data saying that the cron job ran; and e-mail to the FOAM admin with a list of pending slivers, including your test sliver.)
    274275
    275276Clean up the cron job:
     
    343344The steps in this section look at a newly-created sliver, and test expiration in FOAM, by changing its expiration date and, then running the scripts that expire slivers and notify about soon-to-expire ones.
    344345
    345 First, review and approve the sliver.
    346 
    347 Show the sliver, and confirm that 'status' is "Pending":
     346Confirm 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:
    348347
    349348{{{
    350349ssh $foamserver foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    351 }}}
    352 
    353 Confirm that the sliver doesn't yet show up in FlowVisor:
    354 
    355 {{{
    356 ssh $fvserver fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename
    357 }}}
    358 
    359 (Expect a "slice does not exist" error.)
    360 
    361 Show the sliver's rspec:
    362 
    363 {{{
    364 ssh $foamserver foamctl geni:show-sliver -r -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    365 }}}
    366 
    367 Show the sliver's flowspec:
    368 
    369 {{{
    370 ssh $foamserver foamctl geni:show-sliver -s -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    371 }}}
    372 
    373 Show the sliver's flowspace rules:
    374 
    375 {{{
    376 ssh $foamserver foamctl geni:show-sliver -f -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    377 }}}
    378 
    379 Approve the sliver, and confirm that 'status' is now "Approved":
    380 
    381 {{{
    382 ssh $foamserver foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    383 ssh $foamserver foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd
    384 }}}
    385 
    386 (That should generate a "sliver approved" e-mail message, one to the experimenter and one to the FOAM admin.)
    387 
    388 Confirm that the sliver now shows up in FlowVisor, with two flowspace rules:
    389 
    390 {{{
    391350ssh $fvserver fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename
    392351ssh $fvserver fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename
    393352}}}
    394353
    395 (Don't worry about the ouptut saying that it can't connect to the controller; this is expected if your rspec didn't include a controller that's actually running, which the example one doesn't.)
     354(Ignore warnings saying that it can't connect to the sliver's controller, if any; and likewise every time you confirm that the sliver shows up in Flowvisor below.)
    396355
    397356Now, do some tests to make sure FOAM notifies you about a sliver that will expire within a day, but only once.
     
    418377}}}
    419378
    420 (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; no messages about expired slivers being deleted; and one message to gpo-ops saying that the cron job ran.)
     379(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; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    421380
    422381Add the cron job again, to confirm that it doesn't send a second notification:
     
    426385}}}
    427386
    428 (Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to gpo-ops saying that the cron job ran.)
     387(Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    429388
    430389Next, test to make sure FOAM notifies you again if you change the expiration date.
     
    445404}}}
    446405
    447 (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; no messages about expired slivers being deleted; and one message to gpo-ops saying that the cron job ran.)
     406(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; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    448407
    449408Next, do some tests to make sure that FOAM notifies you about a sliver that will expire within a week, but only once.
     
    464423}}}
    465424
    466 (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 gpo-ops saying that the cron job ran.)
     425(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.)
    467426
    468427Add the cron job again, to confirm that it doesn't send a second notification:
     
    472431}}}
    473432
    474 (Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to gpo-ops saying that the cron job ran.)
     433(Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    475434
    476435Next, test to make sure FOAM doesn't notify you at all if your sliver is expiring more than a week from now.
     
    491450}}}
    492451
    493 (Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to gpo-ops saying that the cron job ran.)
     452(Within a minute (when the cron job fires), that should generate no messages about slivers expiring in the future; no messages about expired slivers being deleted; and one message to www-data saying that the cron job ran.)
    494453
    495454Finally, test to make sure FOAM deletes a sliver if its expiration date is in the past.
     
    510469}}}
    511470
    512 (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 gpo-ops saying that the cron job ran.)
     471(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.)
    513472
    514473Confirm that the sliver no longer shows up in FOAM: