Skip to content

Commit 1805cce

Browse files
committed
fic build
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 8602340 commit 1805cce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎client/conf/messages/error-messages.json.in‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
"vm.import.kvm.disk.in.use": "Unable to import Instance as the {{disk}} is already in use.",
295295
"vm.import.kvm.disk.path.required": "Unable to import Instance as a disk path is required for KVM disk import.",
296296
"vm.import.kvm.domain.account.required": "Unable to import Instance as both domain ID and account name are required for KVM import.",
297+
"vm.import.kvm.host.cannot.access.storage.pool": "Unable to import Instance as the specified host does not have access to the {{storagePool}}.",
297298
"vm.import.kvm.host.not.found": "Unable to import Instance as the specified KVM host {{host}} could not be found.",
298299
"vm.import.kvm.host.required": "Unable to import Instance as a KVM host is required.",
299300
"vm.import.kvm.hostname.invalid.chars": "Unable to import KVM Instance as the hostname {{hostname}} contains invalid characters.",

‎server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,8 +2610,7 @@ private UserVmResponse importKvmInstance(ImportVmCmd cmd) {
26102610
// A host the planner is pinned to must be able to see the pool, otherwise the volume check
26112611
// runs on a host that cannot reach the image and reports it as missing.
26122612
if (ImportSource.SHARED == importSource && hostId != null && storagePoolHostDao.findByPoolHost(poolId, hostId) == null) {
2613-
throw new InvalidParameterValueException(String.format(
2614-
"Specified host does not have access to the storage pool: %s", storagePool.getUuid()));
2613+
throw Exceptions.invalidParameterValueException("vm.import.kvm.host.cannot.access.storage.pool", Map.of("storagePool", storagePool));
26152614
}
26162615

26172616
DiskOffering diskOffering = diskOfferingDao.findById(serviceOffering.getDiskOfferingId());

0 commit comments

Comments
 (0)