Commit c7c8e09
authored
Bugfix/CSTACKEX-254: Change the minimum storagepool size to 20MB and throw an exception in case of invalid capacity bytes instead of adjusting to minimum requirement (#94)
### Description
This PR corrects the minimum allowed storage pool size from 1.56GB to
20MB as per ONTAP guidelines for FlexVol. Also, this removes the
behaviour to silently correct the invalid capacity bytes to min.
requirement, instead it'll throw an exception to let the user decide on
the corrective action.
<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [X] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
`Case-1: Storage Pool Capacity Bytes = 214B, less than the min. req of
20MB`
<img width="1047" height="735" alt="Screenshot 2026-08-20 at 7 08 03 AM"
src="https://github.com/user-attachments/assets/f09d23d8-4c74-4222-8b2e-e4b37b3de1b3"
/>
`Case-2: Storage Pool Capacity Bytes = 20971520B or 20MB`
<img width="1047" height="735" alt="Screenshot 2026-08-20 at 7 15 58 AM"
src="https://github.com/user-attachments/assets/8b4a47af-0d90-4636-bb48-5d41260a0fad"
/>
<img width="1047" height="735" alt="Screenshot 2026-08-20 at 7 16 27 AM"
src="https://github.com/user-attachments/assets/f0033b69-0390-4fc6-8394-0e67247274be"
/>
<img width="1103" height="437" alt="Screenshot 2026-08-20 at 7 17 16 AM"
src="https://github.com/user-attachments/assets/1bf51bd5-d746-43b6-b99e-fd87515db411"
/>1 parent b4a53eb commit c7c8e09
3 files changed
Lines changed: 58 additions & 29 deletions
File tree
- plugins/storage/volume/ontap
- src
- main/java/org/apache/cloudstack/storage/lifecycle
- test/java/org/apache/cloudstack/storage/lifecycle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
| |||
Lines changed: 47 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | | - | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
253 | 284 | | |
254 | 285 | | |
255 | 286 | | |
| |||
261 | 292 | | |
262 | 293 | | |
263 | 294 | | |
264 | | - | |
| 295 | + | |
265 | 296 | | |
266 | 297 | | |
267 | 298 | | |
| |||
284 | 315 | | |
285 | 316 | | |
286 | 317 | | |
287 | | - | |
| 318 | + | |
288 | 319 | | |
289 | 320 | | |
290 | 321 | | |
| |||
307 | 338 | | |
308 | 339 | | |
309 | 340 | | |
310 | | - | |
| 341 | + | |
311 | 342 | | |
312 | 343 | | |
313 | 344 | | |
| |||
330 | 361 | | |
331 | 362 | | |
332 | 363 | | |
333 | | - | |
| 364 | + | |
334 | 365 | | |
335 | 366 | | |
336 | 367 | | |
| |||
364 | 395 | | |
365 | 396 | | |
366 | 397 | | |
367 | | - | |
| 398 | + | |
368 | 399 | | |
369 | 400 | | |
370 | 401 | | |
| |||
396 | 427 | | |
397 | 428 | | |
398 | 429 | | |
399 | | - | |
| 430 | + | |
400 | 431 | | |
401 | 432 | | |
402 | 433 | | |
| |||
428 | 459 | | |
429 | 460 | | |
430 | 461 | | |
431 | | - | |
| 462 | + | |
432 | 463 | | |
433 | 464 | | |
434 | 465 | | |
| |||
464 | 495 | | |
465 | 496 | | |
466 | 497 | | |
467 | | - | |
| 498 | + | |
468 | 499 | | |
469 | 500 | | |
470 | 501 | | |
| |||
495 | 526 | | |
496 | 527 | | |
497 | 528 | | |
498 | | - | |
| 529 | + | |
499 | 530 | | |
500 | 531 | | |
501 | 532 | | |
| |||
526 | 557 | | |
527 | 558 | | |
528 | 559 | | |
529 | | - | |
| 560 | + | |
530 | 561 | | |
531 | 562 | | |
532 | 563 | | |
| |||
558 | 589 | | |
559 | 590 | | |
560 | 591 | | |
561 | | - | |
| 592 | + | |
562 | 593 | | |
563 | 594 | | |
564 | 595 | | |
| |||
589 | 620 | | |
590 | 621 | | |
591 | 622 | | |
592 | | - | |
| 623 | + | |
593 | 624 | | |
594 | 625 | | |
595 | 626 | | |
| |||
621 | 652 | | |
622 | 653 | | |
623 | 654 | | |
624 | | - | |
| 655 | + | |
625 | 656 | | |
626 | 657 | | |
627 | 658 | | |
| |||
0 commit comments