Repository navigation
Commit f367d2e
committed
affinity: make the host-tag affinity group admin-controlled
Host tags are set by the operator, so a group whose name is used as a host
tag should be admin-controlled too. Override isAdminControlledGroup() to true
(as ExplicitDedication does) so a non-admin cannot create a group named after
an operator tag to bias their VMs onto those hosts.1 parent f7317b2 commit f367d2e
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- plugins/affinity-group-processors/host-tag-affinity/src
- main/java/org/apache/cloudstack/affinity
- test/java/org/apache/cloudstack/affinity
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
135 | 141 | | |
0 commit comments