Changes between Version 9 and Version 10 of OpenFlow/FOAM/Testing
- Timestamp:
- 05/02/12 10:52:34 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenFlow/FOAM/Testing
v9 v10 3 3 = Testing FOAM = 4 4 5 NOTE that all the foamctl commands in this sectionnow use the new 0.7 syntax.5 NOTE that all the foamctl commands on this page now use the new 0.7 syntax. 6 6 7 7 This page describes a couple of ways to test FOAM: … … 28 28 * You know what output to expect when common things succeed. (Expected output is described here only in cases where an error is the expected result, or where it otherwise might not be obvious; if you think the expected output isn't obvious for any given step, let us know.) 29 29 * 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.) 30 * On the FOAM server you're testing, when you create a sliver, it 's marked as Pending, and isn't automatically approved.30 * 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 31 32 32 You 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. … … 94 94 }}} 95 95 96 (That should generate a "sliver created" e-mail message, one to the experimenter and oneto the FOAM admin.)96 (That should generate a "sliver created" and a "sliver approved" e-mail message, one of each to the experimenter and one of each to the FOAM admin.) 97 97 98 98 Confirm that it looks right via Omni: … … 122 122 NOTE: Do the [wiki:OpenFlow/FOAM/Testing#Creation Creation] section immediately before starting this section. 123 123 124 NOTE: This section is not really compatible with FOAM 0.7, which auto-approves the sliver. We need to reconsider what to do as a simple test here.124 NOTE: This section needs to be revamped to match the new assumption that when you create a sliver, it will be automatically approved. 125 125 126 126 The steps in this section look at a newly-created sliver, approve it, confirm that it shows up in the FlowVisor, delete it, and confirm that it vanishes from the FlowVisor. … … 214 214 215 215 NOTE: Do the [wiki:OpenFlow/FOAM/Testing#Creation Creation] section immediately before starting this section. 216 217 NOTE: These tests assume that the default auto-approval settings are active, and that the test sliver's flowspace will be auto-approved.218 216 219 217 The steps in this section 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. … … 234 232 235 233 {{{ 236 ssh $foamserverfoamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd237 ssh $fvserverfvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename238 ssh $fvserverfvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename234 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 235 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename 236 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename 239 237 }}} 240 238 … … 292 290 }}} 293 291 292 Reject the sliver, confirm that 'status' is now "Rejected", and confirm that the sliver now does not show up in FlowVisor, and has no flowspace rules: 293 294 {{{ 295 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 296 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 297 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename 298 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename 299 }}} 300 294 301 Disable the sliver, confirm that 'status' is now "Pending", and confirm that the sliver now does not show up in FlowVisor, and has no flowspace rules: 295 302 … … 319 326 }}} 320 327 321 Reject the sliver, confirm that 'status' is now "Rejected", and confirm that the sliver now does not show up in FlowVisor, and has no flowspace rules:322 323 {{{324 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd325 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd326 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename327 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename328 }}}329 330 Disable the sliver, confirm that 'status' is now "Pending", and confirm that the sliver now does not show up in FlowVisor, and has no flowspace rules:331 332 {{{333 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd334 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd335 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename336 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename337 }}}338 339 Approve the sliver, confirm that 'status' is now "Approved", and confirm that the sliver now shows up in FlowVisor, with two flowspace rules:340 341 {{{342 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd343 foamctl geni:show-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd344 fvctl --passwd-file=/etc/flowvisor/fvpasswd getSliceInfo $fv_slicename345 fvctl --passwd-file=/etc/flowvisor/fvpasswd listFlowSpace | grep $fv_slicename346 }}}347 348 328 Delete the sliver, confirm that 'deleted' is now "True", and confirm that the sliver now does not show up in FlowVisor, and has no flowspace rules: 349 329 … … 355 335 }}} 356 336 357 That set of tests should generate eight e-mail messages to the experimenter and eight to the FOAM admin: There should be a "sliver approved" message, then "sliver disabled", then "sliver rejected", then approved, rejected, disabled, approved, and deleted. Probably in that order, although e-mail is sometimes delivered out of sequence, so don't worry too much if they're not in order.337 That set of tests should generate six e-mail messages to the experimenter and eight to the FOAM admin: There should be a "sliver approved" message, then "sliver rejected", then "sliver disabled", then rejected, approved, and deleted. Probably in that order, although e-mail is sometimes delivered out of sequence, so don't worry too much if they're not in order. 358 338 359 339 == Expiration ==