Skip to content

Commit 290f65d

Browse files
authored
Merge pull request #590 from Dajeong-Park/dj-tests
[Mold] Glue 이미지를 이용한 가상머신 생성 오류로 스택 소스 임시 주석처리
2 parents f1c78ad + 1713c79 commit 290f65d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@
332332
import com.cloud.storage.StoragePoolStatus;
333333
import com.cloud.storage.VMTemplateStorageResourceAssoc;
334334
import com.cloud.storage.VMTemplateVO;
335-
import com.cloud.storage.VMTemplateZoneVO;
336335
import com.cloud.storage.Volume;
337336
import com.cloud.storage.VolumeApiService;
338337
import com.cloud.storage.VolumeVO;
@@ -4413,10 +4412,12 @@ private UserVm getUncheckedUserVmResource(DataCenter zone, String hostName, Stri
44134412
if (template.getTemplateType().equals(TemplateType.SYSTEM) && !CKS_NODE.equals(vmType) && !SHAREDFSVM.equals(vmType)) {
44144413
throw new InvalidParameterValueException(String.format("Unable to use system template %s to deploy a user vm", template));
44154414
}
4416-
List<VMTemplateZoneVO> listZoneTemplate = _templateZoneDao.listByZoneTemplate(zone.getId(), template.getId());
4417-
if (listZoneTemplate == null || listZoneTemplate.isEmpty()) {
4418-
throw new InvalidParameterValueException(String.format("The template %s is not available for use", template));
4419-
}
4415+
4416+
// apache#9873 ) kvm-default-vm-import-dummy-template 을 이용한 가상머신 생성을 위해 임시 주석처리
4417+
// List<VMTemplateZoneVO> listZoneTemplate = _templateZoneDao.listByZoneTemplate(zone.getId(), template.getId());
4418+
// if (listZoneTemplate == null || listZoneTemplate.isEmpty()) {
4419+
// throw new InvalidParameterValueException(String.format("The template %s is not available for use", template));
4420+
// }
44204421

44214422
if (isIso && !template.isBootable()) {
44224423
throw new InvalidParameterValueException(String.format("Installing from ISO requires an ISO that is bootable: %s", template));

services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ private List<String> getAllowedInternalSiteCidrs() {
402402
for (String cidr : cidrs) {
403403
if (NetUtils.isValidIp4Cidr(cidr) && !cidr.startsWith("0.0.0.0")) {
404404
if (! NetUtils.getCleanIp4Cidr(cidr).equals(cidr)) {
405-
s_logger.warn(String.format("Invalid CIDR %s in %s", cidr, SecStorageAllowedInternalDownloadSites.key()));
405+
logger.warn(String.format("Invalid CIDR %s in %s", cidr, SecStorageAllowedInternalDownloadSites.key()));
406406
}
407407
allowedCidrs.add(NetUtils.getCleanIp4Cidr(cidr));
408408
} else if (NetUtils.isValidIp4(cidr) && !cidr.startsWith("0.0.0.0")) {
409-
s_logger.warn(String.format("Ip address is not a valid CIDR; %s consider using %s/32", cidr, cidr));
409+
logger.warn(String.format("Ip address is not a valid CIDR; %s consider using %s/32", cidr, cidr));
410410
allowedCidrs.add(cidr);
411411
}
412412
}

0 commit comments

Comments
 (0)