Commit f2584bb
CLOUDSTACK-9182: Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance. (#1252)
Fix: Block VMOperations if Host in PrepareForMaintenance mode. VM operations (Stop, Reboot, Destroy, Migrate to host) are not allowed when Host in PrepareForMaintenance mode.1 parent 3f69c83 commit f2584bb
2 files changed
Lines changed: 21 additions & 0 deletions
File tree
- engine/orchestration/src/com/cloud/vm
- server/src/com/cloud/vm
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
1531 | 1532 | | |
1532 | 1533 | | |
1533 | 1534 | | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1534 | 1541 | | |
1535 | 1542 | | |
1536 | 1543 | | |
| |||
server/src/com/cloud/vm/UserVmManagerImpl.java
100755100644Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2636 | 2636 | | |
2637 | 2637 | | |
2638 | 2638 | | |
| 2639 | + | |
| 2640 | + | |
2639 | 2641 | | |
2640 | 2642 | | |
2641 | 2643 | | |
| |||
4845 | 4847 | | |
4846 | 4848 | | |
4847 | 4849 | | |
| 4850 | + | |
| 4851 | + | |
4848 | 4852 | | |
4849 | 4853 | | |
4850 | 4854 | | |
| |||
4938 | 4942 | | |
4939 | 4943 | | |
4940 | 4944 | | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
4941 | 4955 | | |
4942 | 4956 | | |
4943 | 4957 | | |
| |||
0 commit comments