Changes between Version 14 and Version 15 of OpenFlow/FOAM/Testing
- Timestamp:
- 05/09/12 21:04:54 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenFlow/FOAM/Testing
v14 v15 220 220 The 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. 221 221 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}foamtest228 slice_urn=urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+$slicename229 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 234 222 Confirm 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: 235 223 236 224 {{{ 237 foam-confirm-sliver $sliver_urn status approved238 flowvisor-confirm-fvslice-exists $fv_slicename true239 flowvisor-confirm-flowspace-rule-count $fv_slicename 2225 ssh $foamserver foam-confirm-sliver $sliver_urn status approved 226 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true 227 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2 240 228 }}} 241 229 … … 243 231 244 232 {{{ 245 s udo 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"233 ssh -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\"" 246 234 }}} 247 235 … … 251 239 252 240 {{{ 253 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd241 ssh $foamserver foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 254 242 }}} 255 243 … … 259 247 260 248 {{{ 261 foam-confirm-sliver $sliver_urn status pending262 flowvisor-confirm-fvslice-exists $fv_slicename false263 flowvisor-confirm-flowspace-rule-count $fv_slicename 0249 ssh $foamserver foam-confirm-sliver $sliver_urn status pending 250 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 251 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 264 252 }}} 265 253 … … 269 257 270 258 {{{ 271 s udo 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"259 ssh -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\"" 272 260 }}} 273 261 … … 277 265 278 266 {{{ 279 s udo rm /etc/cron.d/foamtest267 ssh -t $foamserver sudo rm /etc/cron.d/foamtest 280 268 }}} 281 269 … … 285 273 286 274 {{{ 287 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd288 foam-confirm-sliver $sliver_urn status approved289 flowvisor-confirm-fvslice-exists $fv_slicename true290 flowvisor-confirm-flowspace-rule-count $fv_slicename 2275 ssh $foamserver foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 276 ssh $foamserver foam-confirm-sliver $sliver_urn status approved 277 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true 278 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2 291 279 }}} 292 280 … … 294 282 295 283 {{{ 296 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd297 foam-confirm-sliver $sliver_urn status rejected298 flowvisor-confirm-fvslice-exists $fv_slicename false299 flowvisor-confirm-flowspace-rule-count $fv_slicename 0284 ssh $foamserver foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 285 ssh $foamserver foam-confirm-sliver $sliver_urn status rejected 286 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 287 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 300 288 }}} 301 289 … … 303 291 304 292 {{{ 305 foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd306 foam-confirm-sliver $sliver_urn status pending307 flowvisor-confirm-fvslice-exists $fv_slicename false308 flowvisor-confirm-flowspace-rule-count $fv_slicename 0293 ssh $foamserver foamctl geni:disable-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 294 ssh $foamserver foam-confirm-sliver $sliver_urn status pending 295 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 296 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 309 297 }}} 310 298 … … 312 300 313 301 {{{ 314 foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd315 foam-confirm-sliver $sliver_urn status rejected316 flowvisor-confirm-fvslice-exists $fv_slicename false317 flowvisor-confirm-flowspace-rule-count $fv_slicename 0302 ssh $foamserver foamctl geni:reject-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 303 ssh $foamserver foam-confirm-sliver $sliver_urn status rejected 304 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 305 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 318 306 }}} 319 307 … … 321 309 322 310 {{{ 323 foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd324 foam-confirm-sliver $sliver_urn status approved325 flowvisor-confirm-fvslice-exists $fv_slicename true326 flowvisor-confirm-flowspace-rule-count $fv_slicename 2311 ssh $foamserver foamctl geni:approve-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 312 ssh $foamserver foam-confirm-sliver $sliver_urn status approved 313 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true 314 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2 327 315 }}} 328 316 … … 330 318 331 319 {{{ 332 foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd333 foam-confirm-sliver $sliver_urn deleted true334 flowvisor-confirm-fvslice-exists $fv_slicename false335 flowvisor-confirm-flowspace-rule-count $fv_slicename 0320 ssh $foamserver foamctl geni:delete-sliver -u $sliver_urn --passwd-file=/opt/foam/etc/foampasswd 321 ssh $foamserver foam-confirm-sliver $sliver_urn deleted true 322 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 323 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 336 324 }}} 337 325 … … 347 335 348 336 {{{ 349 foam-confirm-sliver $sliver_urn status approved350 flowvisor-confirm-fvslice-exists $fv_slicename true351 flowvisor-confirm-flowspace-rule-count $fv_slicename 2337 ssh $foamserver foam-confirm-sliver $sliver_urn status approved 338 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename true 339 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 2 352 340 }}} 353 341 … … 421 409 }}} 422 410 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.) 424 412 425 413 Add the cron job again, to confirm that it doesn't send a second notification: … … 467 455 }}} 468 456 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.) 470 458 471 459 Confirm that the sliver was deleted, does not show up in FlowVisor, and has no flowspace rules:: 472 460 473 461 {{{ 474 foam-confirm-sliver $sliver_urn deleted true475 flowvisor-confirm-fvslice-exists $fv_slicename false476 flowvisor-confirm-flowspace-rule-count $fv_slicename 0462 ssh $foamserver foam-confirm-sliver $sliver_urn deleted true 463 ssh $fvserver flowvisor-confirm-fvslice-exists $fv_slicename false 464 ssh $fvserver flowvisor-confirm-flowspace-rule-count $fv_slicename 0 477 465 }}} 478 466