Commit 52d9860
authored
Updated Endpoint Selector to pick the Cluster in Enabled state (in addition to Host state) (#10757)
* Consider the clusters with allocation state 'Enabled' for EndPoint selection (in addition to Host state)
* 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 exception
* logger fix1 parent 95489b8 commit 52d9860
File tree
3 files changed
+23
-14
lines changed- engine/storage
- src/main/java/org/apache/cloudstack/storage/endpoint
- volume/src/main/java/org/apache/cloudstack/storage/volume
- plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver
3 files changed
+23
-14
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
331 | 336 | | |
332 | 337 | | |
333 | 338 | | |
| |||
1237 | 1242 | | |
1238 | 1243 | | |
1239 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1240 | 1249 | | |
1241 | 1250 | | |
1242 | 1251 | | |
| |||
2476 | 2485 | | |
2477 | 2486 | | |
2478 | 2487 | | |
2479 | | - | |
| 2488 | + | |
2480 | 2489 | | |
2481 | 2490 | | |
2482 | 2491 | | |
| |||
2488 | 2497 | | |
2489 | 2498 | | |
2490 | 2499 | | |
2491 | | - | |
2492 | | - | |
| 2500 | + | |
2493 | 2501 | | |
2494 | | - | |
2495 | 2502 | | |
2496 | 2503 | | |
2497 | 2504 | | |
| |||
2535 | 2542 | | |
2536 | 2543 | | |
2537 | 2544 | | |
2538 | | - | |
| 2545 | + | |
2539 | 2546 | | |
2540 | 2547 | | |
2541 | 2548 | | |
| |||
2546 | 2553 | | |
2547 | 2554 | | |
2548 | 2555 | | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
| 2556 | + | |
2554 | 2557 | | |
2555 | | - | |
2556 | 2558 | | |
2557 | 2559 | | |
2558 | 2560 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
441 | 450 | | |
442 | 451 | | |
443 | 452 | | |
444 | 453 | | |
445 | | - | |
446 | 454 | | |
447 | 455 | | |
448 | 456 | | |
| |||
459 | 467 | | |
460 | 468 | | |
461 | 469 | | |
462 | | - | |
463 | 470 | | |
464 | 471 | | |
465 | 472 | | |
| |||
0 commit comments