Changes between Version 3 and Version 4 of DRM4G/UseCases


Ignore:
Timestamp:
Dec 7, 2016 7:34:36 PM (5 years ago)
Author:
minondoa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/UseCases

    v3 v4  
    55= DRM4G Use Cases =
    66
     7[[TOC(heading=DRM4G Use Cases)]]
     8
     9== Implemented features ==
    710{{{#!th colspan=2 align=justify
    811'''Use case''': Creating  cloud credentials
     
    5356}}}
    5457
    55 [[br]]
    56 
    57 {{{#!th colspan=2 align=justify
    58 '''Use case''': Creating VMs
    59 }}}
    60 |----------------
    61 {{{#!td
    62 '''Description'''
    63 }}}
    64 {{{#!td
    65 An active and accessible Virtual Machine(VM) will be created. It will be considered a ''host'' to whom the user can submit jobs to have executed
     58
     59
     60
     61
     62[[br]]
     63
     64
     65
     66
     67
     68{{{#!th colspan=2 align=justify
     69'''Use case''': Creating VMs [=#point1]
     70}}}
     71|----------------
     72{{{#!td
     73'''Description'''
     74}}}
     75{{{#!td
     76An active and accessible Virtual Machine (VM) will be created. It will be considered a ''host'' to whom the user can submit jobs to have executed
    6677}}}
    6778|----------------
     
    8798{{{#!td
    88991. The user executes the command `drm4g resource create`
    89 }}}
    90 |----------------
    91 {{{#!td
    92 '''Postconditions'''
    93 }}}
    94 {{{#!td
     1001. The program will read the configuration file
     1011. For every resource defined to create VMs, it will create as many VMs as nodes were specified
     102}}}
     103|----------------
     104{{{#!td
     105'''Postconditions'''
     106}}}
     107{{{#!td
     108- As many VMs as nodes specified in the configuration file will have been created
    95109- The VM's public IP direction will be shown
    96110- Submitted jobs will also be sent to the VM
     
    101115}}}
    102116{{{#!td
    103 
    104 }}}
    105 
    106 [[br]]
     1171. If for some reason there's a problem creating a VM, an error message is displayed
     1182. The program will continue creating the rest of the specified VMs
     119}}}
     120
     121
     122
     123
     124
     125[[br]]
     126
     127
     128
     129
    107130
    108131{{{#!th colspan=2 align=justify
     
    114137}}}
    115138{{{#!td
    116 
    117 }}}
    118 |----------------
    119 {{{#!td
    120 '''Primary Actor'''
    121 }}}
    122 {{{#!td
    123 
    124 }}}
    125 |----------------
    126 {{{#!td
    127 '''Preconditions'''
    128 }}}
    129 {{{#!td
    130 
    131 }}}
    132 |----------------
    133 {{{#!td
    134 '''Basic Flow'''
    135 }}}
    136 {{{#!td
    137 
    138 }}}
    139 |----------------
    140 {{{#!td
    141 '''Postconditions'''
    142 }}}
    143 {{{#!td
    144 
    145 }}}
    146 |----------------
    147 {{{#!td
    148 '''Alternate Flow'''
    149 }}}
    150 {{{#!td
    151 
    152 }}}
    153 
    154 [[br]]
     139Adds more VMs to those previously created
     140}}}
     141|----------------
     142{{{#!td
     143'''Primary Actor'''
     144}}}
     145{{{#!td
     146User
     147}}}
     148|----------------
     149{{{#!td
     150'''Preconditions'''
     151}}}
     152{{{#!td
     153* User must have previously [#point1 created VMs]
     154}}}
     155|----------------
     156{{{#!td
     157'''Basic Flow'''
     158}}}
     159{{{#!td
     1601. The user executes the command `drm4g resource create`
     161}}}
     162|----------------
     163{{{#!td
     164'''Postconditions'''
     165}}}
     166{{{#!td
     167{{{#!comment
     168- The same number of VMs will have been created as nodes specified in the configuration files.
     169}}}
     170- As many VMs as nodes specified in the configuration file will have been added
     171- The VM's public IP direction will be shown
     172- Submitted jobs will also be sent to the VM
     173}}}
     174|----------------
     175{{{#!td
     176'''Alternate Flow'''
     177}}}
     178{{{#!td
     1791. If for some reason there's a problem creating a VM, an error message is displayed
     1802. The program will continue creating the rest of the specified VMs
     181}}}
     182
     183
     184
     185
     186
     187[[br]]
     188
     189
     190
     191
    155192
    156193{{{#!th colspan=2 align=justify
     
    162199}}}
    163200{{{#!td
    164 
    165 }}}
    166 |----------------
    167 {{{#!td
    168 '''Primary Actor'''
    169 }}}
    170 {{{#!td
    171 
    172 }}}
    173 |----------------
    174 {{{#!td
    175 '''Preconditions'''
    176 }}}
    177 {{{#!td
    178 
    179 }}}
    180 |----------------
    181 {{{#!td
    182 '''Basic Flow'''
    183 }}}
    184 {{{#!td
    185 
    186 }}}
    187 |----------------
    188 {{{#!td
    189 '''Postconditions'''
    190 }}}
    191 {{{#!td
    192 
    193 }}}
    194 |----------------
    195 {{{#!td
    196 '''Alternate Flow'''
    197 }}}
    198 {{{#!td
    199 
    200 }}}
    201 
    202 [[br]]
     201A list of all the accessible VMs will be displayed
     202}}}
     203|----------------
     204{{{#!td
     205'''Primary Actor'''
     206}}}
     207{{{#!td
     208User
     209}}}
     210|----------------
     211{{{#!td
     212'''Preconditions'''
     213}}}
     214{{{#!td
     215* User must have previously [#point1 created VMs]
     216}}}
     217|----------------
     218{{{#!td
     219'''Basic Flow'''
     220}}}
     221{{{#!td
     2221. User runs the commands `drm4g host list`
     223}}}
     224|----------------
     225{{{#!td
     226'''Postconditions'''
     227}}}
     228{{{#!td
     229* A list with information from every host will be shown, including from all of the active VMs created
     230}}}
     231|----------------
     232{{{#!td
     233'''Alternate Flow'''
     234}}}
     235{{{#!td
     236
     237}}}
     238
     239
     240
     241
     242
     243[[br]]
     244
     245
     246
     247
    203248
    204249{{{#!th colspan=2 align=justify
     
    210255}}}
    211256{{{#!td
    212 
    213 }}}
    214 |----------------
    215 {{{#!td
    216 '''Primary Actor'''
    217 }}}
    218 {{{#!td
    219 
    220 }}}
    221 |----------------
    222 {{{#!td
    223 '''Preconditions'''
    224 }}}
    225 {{{#!td
    226 
    227 }}}
    228 |----------------
    229 {{{#!td
    230 '''Basic Flow'''
    231 }}}
    232 {{{#!td
    233 
    234 }}}
    235 |----------------
    236 {{{#!td
    237 '''Postconditions'''
    238 }}}
    239 {{{#!td
    240 
    241 }}}
    242 |----------------
    243 {{{#!td
    244 '''Alternate Flow'''
    245 }}}
    246 {{{#!td
    247 
    248 }}}
    249 
    250 [[br]]
     257A list with every defined resource will be displayed.
     258That includes the ones defined by the user and the ones created by the program for every VM created
     259}}}
     260|----------------
     261{{{#!td
     262'''Primary Actor'''
     263}}}
     264{{{#!td
     265User
     266}}}
     267|----------------
     268{{{#!td
     269'''Preconditions'''
     270}}}
     271{{{#!td
     272* The DRM4G must be running on a terminal
     273}}}
     274|----------------
     275{{{#!td
     276'''Basic Flow'''
     277}}}
     278{{{#!td
     2791. The user runs the command `drm4g resource list --all`
     280}}}
     281|----------------
     282{{{#!td
     283'''Postconditions'''
     284}}}
     285{{{#!td
     286* A list with information from every resource will be displayed
     287}}}
     288|----------------
     289{{{#!td
     290'''Alternate Flow'''
     291}}}
     292{{{#!td
     293
     294}}}
     295
     296
     297
     298
     299
     300
     301[[br]]
     302
     303
     304
     305
    251306
    252307{{{#!th colspan=2 align=justify
     
    258313}}}
    259314{{{#!td
    260 
    261 }}}
    262 |----------------
    263 {{{#!td
    264 '''Primary Actor'''
    265 }}}
    266 {{{#!td
    267 
    268 }}}
    269 |----------------
    270 {{{#!td
    271 '''Preconditions'''
    272 }}}
    273 {{{#!td
    274 
    275 }}}
    276 |----------------
    277 {{{#!td
    278 '''Basic Flow'''
    279 }}}
    280 {{{#!td
    281 
    282 }}}
    283 |----------------
    284 {{{#!td
    285 '''Postconditions'''
    286 }}}
    287 {{{#!td
    288 
    289 }}}
    290 |----------------
    291 {{{#!td
    292 '''Alternate Flow'''
    293 }}}
    294 {{{#!td
    295 
    296 }}}
    297 
    298 [[br]]
     315Jobs will be sent to all available hosts to be executed
     316}}}
     317|----------------
     318{{{#!td
     319'''Primary Actor'''
     320}}}
     321{{{#!td
     322User
     323}}}
     324|----------------
     325{{{#!td
     326'''Preconditions'''
     327}}}
     328{{{#!td
     329* The user must have edited correctly a job template
     330}}}
     331|----------------
     332{{{#!td
     333'''Basic Flow'''
     334}}}
     335{{{#!td
     3361. The user runs the command `drm4g job submit path/to/job/template.job`
     337}}}
     338|----------------
     339{{{#!td
     340'''Postconditions'''
     341}}}
     342{{{#!td
     343* The job is executed by one of the available host. This includes those defined in the configuration file with the purpose of executing jobs and VMs that may have been previously created
     344}}}
     345|----------------
     346{{{#!td
     347'''Alternate Flow'''
     348}}}
     349{{{#!td
     3501. The user uses the option "--ntasks" to determine how many times he wants to have the same job executed
     3511. The user uses the option "--dep" to define the job dependency list of the job
     352}}}
     353
     354
     355
     356
     357
     358
     359[[br]]
     360
     361
     362
     363
     364
    299365
    300366{{{#!th colspan=2 align=justify
     
    306372}}}
    307373{{{#!td
    308 
    309 }}}
    310 |----------------
    311 {{{#!td
    312 '''Primary Actor'''
    313 }}}
    314 {{{#!td
    315 
    316 }}}
    317 |----------------
    318 {{{#!td
    319 '''Preconditions'''
    320 }}}
    321 {{{#!td
    322 
    323 }}}
    324 |----------------
    325 {{{#!td
    326 '''Basic Flow'''
    327 }}}
    328 {{{#!td
    329 
    330 }}}
    331 |----------------
    332 {{{#!td
    333 '''Postconditions'''
    334 }}}
    335 {{{#!td
    336 
    337 }}}
    338 |----------------
    339 {{{#!td
    340 '''Alternate Flow'''
    341 }}}
    342 {{{#!td
    343 
    344 }}}
     374Regardless whether they are being used o not, every VM created by the DRM4G will be destroyed
     375}}}
     376|----------------
     377{{{#!td
     378'''Primary Actor'''
     379}}}
     380{{{#!td
     381User
     382}}}
     383|----------------
     384{{{#!td
     385'''Preconditions'''
     386}}}
     387{{{#!td
     388* The user must have previously [#point1 created VMs]
     389}}}
     390|----------------
     391{{{#!td
     392'''Basic Flow'''
     393}}}
     394{{{#!td
     3951. The user runs the command `drm4g resource destroy`
     3961. The program will eliminate all created VMs one by one
     397}}}
     398|----------------
     399{{{#!td
     400'''Postconditions'''
     401}}}
     402{{{#!td
     403* There won't be any VM left
     404}}}
     405|----------------
     406{{{#!td
     407'''Alternate Flow'''
     408}}}
     409{{{#!td
     4101. If for some reason there's a problem destroying a VM, an error message is displayed
     4112. The program will continue destroying the rest of the VMs
     412}}}
     413
     414
     415
     416
    345417
    346418[[br]]
     
    395467}}}
    396468
    397 [[br]]
     469
     470
     471
     472
     473
     474[[br]]
     475
     476
     477
    398478
    399479
     
    444524}}}
    445525
    446 [[br]]
     526
     527
     528
     529
     530[[br]]
     531
     532
     533
     534
    447535
    448536{{{#!th colspan=2 align=justify