424 | | '''Use case''': Listing VMs with IDs |
425 | | }}} |
426 | | |---------------- |
427 | | {{{#!td |
428 | | '''Description''' |
429 | | }}} |
430 | | {{{#!td |
431 | | |
432 | | }}} |
433 | | |---------------- |
434 | | {{{#!td |
435 | | '''Primary Actor''' |
436 | | }}} |
437 | | {{{#!td |
438 | | |
439 | | }}} |
440 | | |---------------- |
441 | | {{{#!td |
442 | | '''Preconditions''' |
443 | | }}} |
444 | | {{{#!td |
445 | | |
446 | | }}} |
447 | | |---------------- |
448 | | {{{#!td |
449 | | '''Basic Flow''' |
450 | | }}} |
451 | | {{{#!td |
452 | | |
453 | | }}} |
454 | | |---------------- |
455 | | {{{#!td |
456 | | '''Postconditions''' |
457 | | }}} |
458 | | {{{#!td |
459 | | |
460 | | }}} |
461 | | |---------------- |
462 | | {{{#!td |
463 | | '''Alternate Flow''' |
464 | | }}} |
465 | | {{{#!td |
466 | | |
467 | | }}} |
468 | | |
469 | | |
470 | | |
471 | | |
472 | | |
473 | | |
474 | | [[br]] |
475 | | |
476 | | |
477 | | |
478 | | |
479 | | |
480 | | {{{#!th colspan=2 align=justify |
481 | | '''Use case''': Adding VMs dynamically |
482 | | }}} |
483 | | |---------------- |
484 | | {{{#!td |
485 | | '''Description''' |
486 | | }}} |
487 | | {{{#!td |
488 | | |
489 | | }}} |
490 | | |---------------- |
491 | | {{{#!td |
492 | | '''Primary Actor''' |
493 | | }}} |
494 | | {{{#!td |
495 | | |
496 | | }}} |
497 | | |---------------- |
498 | | {{{#!td |
499 | | '''Preconditions''' |
500 | | }}} |
501 | | {{{#!td |
502 | | |
503 | | }}} |
504 | | |---------------- |
505 | | {{{#!td |
506 | | '''Basic Flow''' |
507 | | }}} |
508 | | {{{#!td |
509 | | |
510 | | }}} |
511 | | |---------------- |
512 | | {{{#!td |
513 | | '''Postconditions''' |
514 | | }}} |
515 | | {{{#!td |
516 | | |
517 | | }}} |
518 | | |---------------- |
519 | | {{{#!td |
520 | | '''Alternate Flow''' |
521 | | }}} |
522 | | {{{#!td |
523 | | |
| 424 | '''Use case''': Listing VMs with IDs [=#ListingVmswithIDs] |
| 425 | }}} |
| 426 | |---------------- |
| 427 | {{{#!td |
| 428 | '''Description''' |
| 429 | }}} |
| 430 | {{{#!td |
| 431 | When running the command `drm4g resource list --all`, the program will detect if the resource it's listing is a VM and list its ''host id'' |
| 432 | }}} |
| 433 | |---------------- |
| 434 | {{{#!td |
| 435 | '''Primary Actor''' |
| 436 | }}} |
| 437 | {{{#!td |
| 438 | User |
| 439 | }}} |
| 440 | |---------------- |
| 441 | {{{#!td |
| 442 | '''Preconditions''' |
| 443 | }}} |
| 444 | {{{#!td |
| 445 | * The user must have previously [#CreatingVMs created VMs] |
| 446 | }}} |
| 447 | |---------------- |
| 448 | {{{#!td |
| 449 | '''Basic Flow''' |
| 450 | }}} |
| 451 | {{{#!td |
| 452 | 1. The user runs the command `drm4g resource list --all` |
| 453 | 2. If the program detects that the resource it's listing is a VM, it will add to the rest of its information it shows its ''host id''. |
| 454 | }}} |
| 455 | |---------------- |
| 456 | {{{#!td |
| 457 | '''Postconditions''' |
| 458 | }}} |
| 459 | {{{#!td |
| 460 | * A list with information from every resource will be displayed |
| 461 | * VMs' information will display its host id |
| 462 | }}} |
| 463 | |---------------- |
| 464 | {{{#!td |
| 465 | '''Alternate Flow''' |
| 466 | }}} |
| 467 | {{{#!td |
| 468 | |
| 469 | }}} |
| 470 | |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | [[br]] |
| 477 | |
| 478 | |
| 479 | |
| 480 | |
| 481 | |
| 482 | {{{#!th colspan=2 align=justify |
| 483 | '''Use case''': Creating VMs dynamically [=#CreatingVMsdynamically] |
| 484 | }}} |
| 485 | |---------------- |
| 486 | {{{#!td |
| 487 | '''Description''' |
| 488 | }}} |
| 489 | {{{#!td |
| 490 | In the case that a user wants to create a certain number of instances with one specific configuration, instead of having to modify his configuration file, the user can determine with a command how many instances he wants to create and which specific resource configuration to use from the ones he has defined in the configuration file |
| 491 | }}} |
| 492 | |---------------- |
| 493 | {{{#!td |
| 494 | '''Primary Actor''' |
| 495 | }}} |
| 496 | {{{#!td |
| 497 | User |
| 498 | }}} |
| 499 | |---------------- |
| 500 | {{{#!td |
| 501 | '''Preconditions''' |
| 502 | }}} |
| 503 | {{{#!td |
| 504 | * There must be a resource in the configuration defined with the purpose for the creation of VMs |
| 505 | }}} |
| 506 | |---------------- |
| 507 | {{{#!td |
| 508 | '''Basic Flow''' |
| 509 | }}} |
| 510 | {{{#!td |
| 511 | 1. The user runs the command `drm4g resource <resource_name> create` |
| 512 | a. `<resource_name>` has to be the same as the section name in the configuration file |
| 513 | 1. The DRM4G will use the configuration defined in the section `resource name` to create as many VM as that resource has specified |
| 514 | }}} |
| 515 | |---------------- |
| 516 | {{{#!td |
| 517 | '''Postconditions''' |
| 518 | }}} |
| 519 | {{{#!td |
| 520 | * Even if there may be other resources defined with the purpose of creating VMs, only the ones specified for the resource `resouce_name` will have been created |
| 521 | }}} |
| 522 | |---------------- |
| 523 | {{{#!td |
| 524 | '''Alternate Flow''' |
| 525 | }}} |
| 526 | {{{#!td |
| 527 | 1. The user uses the option `--instances` to determine how many VMs should be created with the specified configuration |
| 528 | a. This will overwrite the value specified in the configuration file |