Commit be22bfe
authored
Management Server - Prepare for Maintenance and Cancel Maintenance improvements (#10995)
* Management Server - Prepare for Maintenance and Cancel Maintenance improvements:
- Added new setting 'management.server.maintenance.ignore.maintenance.hosts' to ignore hosts in maintenance states while preparing management server for maintenance. This skips agent transfer and agents count check for hosts in maintenance.
- Rebalance indirect agents after cancel maintenance, using rebalance parameter in cancelMaintenance API
- Force maintenance after maintenance window timeout, using forced parameter in prepareForMaintenance API.
- Propagate 'indirect.agent.lb.check.interval' setting change to the host agents.
* rebases fixes
* code improvements, cleanup
* [UI] Set rebalance true by default in cancel maintenance dialog
* Update MS state after executing cluster cmd in the target MS, and some code improvements
* code improvements
* Ensure the host lb algorithm 'shuffle' is applied once before disabling the indirect agent lb check background task1 parent 16c60c7 commit be22bfe
File tree
26 files changed
+411
-145
lines changed- agent/src/main/java/com/cloud/agent
- api/src/main/java
- com/cloud
- exception
- resource
- org/apache/cloudstack/api
- command/admin/systemvm
- core/src/main/java/org/apache/cloudstack/agent/lb
- engine
- components-api/src/main/java/com/cloud/agent
- orchestration/src/main/java/com/cloud/agent/manager
- schema/src/main/java/com/cloud/host/dao
- framework/agent-lb/src/main/java/org/apache/cloudstack/agent/lb
- plugins/maintenance/src
- main/java/org/apache/cloudstack
- api/command
- maintenance
- command
- test/java/org/apache/cloudstack/maintenance
- server/src
- main/java
- com/cloud/configuration
- org/apache/cloudstack/agent/lb
- test/java/org/apache/cloudstack/agent/lb
- ui
- public/locales
- src
- config/section/infra
- views
- infra
- utils/src/main/java/com/cloud/utils/nio
26 files changed
+411
-145
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
465 | | - | |
| 466 | + | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
470 | 471 | | |
471 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
| |||
928 | 936 | | |
929 | 937 | | |
930 | 938 | | |
931 | | - | |
| 939 | + | |
932 | 940 | | |
933 | 941 | | |
934 | 942 | | |
| |||
941 | 949 | | |
942 | 950 | | |
943 | 951 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
948 | 957 | | |
| 958 | + | |
949 | 959 | | |
950 | 960 | | |
951 | 961 | | |
952 | | - | |
| 962 | + | |
953 | 963 | | |
954 | 964 | | |
955 | 965 | | |
956 | 966 | | |
957 | 967 | | |
958 | 968 | | |
959 | | - | |
| 969 | + | |
960 | 970 | | |
961 | 971 | | |
962 | 972 | | |
| |||
1046 | 1056 | | |
1047 | 1057 | | |
1048 | 1058 | | |
1049 | | - | |
| 1059 | + | |
1050 | 1060 | | |
1051 | 1061 | | |
1052 | 1062 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
101 | | - | |
102 | | - | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | | - | |
62 | 67 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
828 | 826 | | |
829 | 827 | | |
830 | 828 | | |
| 829 | + | |
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
| |||
2193 | 2192 | | |
2194 | 2193 | | |
2195 | 2194 | | |
2196 | | - | |
| 2195 | + | |
2197 | 2196 | | |
2198 | 2197 | | |
2199 | 2198 | | |
| |||
Lines changed: 18 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | | - | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | | - | |
| 438 | + | |
438 | 439 | | |
439 | 440 | | |
440 | 441 | | |
| |||
643 | 644 | | |
644 | 645 | | |
645 | 646 | | |
646 | | - | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
695 | 694 | | |
696 | 695 | | |
697 | 696 | | |
| |||
1352 | 1351 | | |
1353 | 1352 | | |
1354 | 1353 | | |
1355 | | - | |
| 1354 | + | |
1356 | 1355 | | |
1357 | 1356 | | |
1358 | 1357 | | |
| |||
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
1402 | | - | |
| 1401 | + | |
1403 | 1402 | | |
1404 | 1403 | | |
1405 | 1404 | | |
1406 | 1405 | | |
1407 | 1406 | | |
1408 | 1407 | | |
1409 | | - | |
| 1408 | + | |
1410 | 1409 | | |
1411 | 1410 | | |
1412 | 1411 | | |
| |||
1421 | 1420 | | |
1422 | 1421 | | |
1423 | 1422 | | |
1424 | | - | |
| 1423 | + | |
1425 | 1424 | | |
1426 | 1425 | | |
1427 | 1426 | | |
| |||
1455 | 1454 | | |
1456 | 1455 | | |
1457 | 1456 | | |
1458 | | - | |
| 1457 | + | |
1459 | 1458 | | |
1460 | | - | |
| 1459 | + | |
| 1460 | + | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | | - | |
| 1471 | + | |
1472 | 1472 | | |
1473 | | - | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1474 | 1476 | | |
1475 | 1477 | | |
1476 | 1478 | | |
| |||
1506 | 1508 | | |
1507 | 1509 | | |
1508 | 1510 | | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
1509 | 1515 | | |
1510 | 1516 | | |
1511 | 1517 | | |
| |||
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | | - | |
184 | | - | |
185 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
186 | 195 | | |
187 | | - | |
| 196 | + | |
| 197 | + | |
188 | 198 | | |
189 | 199 | | |
190 | 200 | | |
| |||
0 commit comments