mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
server: reapply checkVmProfileAndHost to check guest os preference (#6000)
This commit is contained in:
parent
e0a5df50ce
commit
c543f5f546
@ -424,14 +424,7 @@ StateListener<State, VirtualMachine.Event, VirtualMachine>, Configurable {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (host.getStatus() == Status.Up) {
|
if (host.getStatus() == Status.Up) {
|
||||||
boolean hostTagsMatch = true;
|
if (checkVmProfileAndHost(vmProfile, host)) {
|
||||||
if(offering.getHostTag() != null){
|
|
||||||
_hostDao.loadHostTags(host);
|
|
||||||
if (!(host.getHostTags() != null && host.getHostTags().contains(offering.getHostTag()))) {
|
|
||||||
hostTagsMatch = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (hostTagsMatch) {
|
|
||||||
long cluster_id = host.getClusterId();
|
long cluster_id = host.getClusterId();
|
||||||
ClusterDetailsVO cluster_detail_cpu = _clusterDetailsDao.findDetail(cluster_id,
|
ClusterDetailsVO cluster_detail_cpu = _clusterDetailsDao.findDetail(cluster_id,
|
||||||
"cpuOvercommitRatio");
|
"cpuOvercommitRatio");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user