Commit 112dfdd
authored
Reset the pool id when create volume fails on the allocated pool, and update the resize error when no endpoint exists (#10777)
* Reset the pool id when create volume fails on the allocated pool
- the pool id is persisted while creating the volume, when it fails the pool id is not reverted. On next create volume attempt, CloudStack couldn't find any suitable primary storage even there are pools available with enough capacity as the pool is already assigned to volume which is in Allocated state (and storage pool compatibility check fails). Ensure volume is not assigned to any pool if create volume fails (so the next creation job would pick the suitable pool).
* endpoint check for resize
* update the resize error through callback result instead of exception1 parent c183fc9 commit 112dfdd
File tree
2 files changed
+22
-13
lines changed- engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume
- plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver
2 files changed
+22
-13
lines changedLines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 | | |
328 | 333 | | |
329 | 334 | | |
| |||
1238 | 1243 | | |
1239 | 1244 | | |
1240 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1241 | 1250 | | |
1242 | 1251 | | |
1243 | 1252 | | |
| |||
2482 | 2491 | | |
2483 | 2492 | | |
2484 | 2493 | | |
2485 | | - | |
| 2494 | + | |
2486 | 2495 | | |
2487 | 2496 | | |
2488 | 2497 | | |
| |||
2494 | 2503 | | |
2495 | 2504 | | |
2496 | 2505 | | |
2497 | | - | |
2498 | | - | |
| 2506 | + | |
2499 | 2507 | | |
2500 | | - | |
2501 | 2508 | | |
2502 | 2509 | | |
2503 | 2510 | | |
| |||
2541 | 2548 | | |
2542 | 2549 | | |
2543 | 2550 | | |
2544 | | - | |
| 2551 | + | |
2545 | 2552 | | |
2546 | 2553 | | |
2547 | 2554 | | |
| |||
2552 | 2559 | | |
2553 | 2560 | | |
2554 | 2561 | | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
2559 | | - | |
| 2562 | + | |
2560 | 2563 | | |
2561 | | - | |
2562 | 2564 | | |
2563 | 2565 | | |
2564 | 2566 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
432 | 434 | | |
433 | 435 | | |
434 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
435 | 444 | | |
436 | 445 | | |
437 | 446 | | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
441 | 450 | | |
442 | | - | |
443 | 451 | | |
444 | 452 | | |
445 | 453 | | |
| |||
456 | 464 | | |
457 | 465 | | |
458 | 466 | | |
459 | | - | |
460 | 467 | | |
461 | 468 | | |
462 | 469 | | |
| |||
0 commit comments