nvazquez commented on code in PR #9619:
URL: https://github.com/apache/cloudstack/pull/9619#discussion_r1740726168


##########
server/src/main/java/com/cloud/resource/ResourceManagerImpl.java:
##########
@@ -2746,6 +2753,13 @@ public HostVO fillRoutingHostVO(final HostVO host, final 
StartupRoutingCommand s
             throw new IllegalArgumentException("Can't add host whose 
hypervisor type is: " + hyType + " into cluster: " + clusterVO.getId() +
                     " whose hypervisor type is: " + 
clusterVO.getHypervisorType());
         }
+        CPU.CPUArchitecture hostCpuArchitecture = 
CPU.CPUArchitecture.fromType(ssCmd.getCpuArchitecture());
+        if (hostCpuArchitecture != null && clusterVO.getArch() != null && 
hostCpuArchitecture != clusterVO.getArch()) {
+            String msg = String.format("Can't add a host whose architecture 
is: %s into cluster of architecture type: %s",
+                    hostCpuArchitecture.getType(), 
clusterVO.getArch().getType());
+            logger.error(msg);
+            throw new IllegalArgumentException(msg);
+        }

Review Comment:
   The multiArch flag is a dynamic check, whenever you add a different arch 
cluster in your existing zone, then the multiArch flag becomes true and allows 
the operator to select the template arch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to