Visitar URL original
framework,api,server,ui: improve error messaging by shwstppr · Pull Request #12336 · apache/cloudstack · GitHub
Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fic build
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
  • Loading branch information
shwstppr committed Sep 28, 2026
commit 1805cce9178d5e5af5a85a06c3484aaad9612266
1 change: 1 addition & 0 deletions client/conf/messages/error-messages.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
"vm.import.kvm.disk.in.use": "Unable to import Instance as the {{disk}} is already in use.",
"vm.import.kvm.disk.path.required": "Unable to import Instance as a disk path is required for KVM disk import.",
"vm.import.kvm.domain.account.required": "Unable to import Instance as both domain ID and account name are required for KVM import.",
"vm.import.kvm.host.cannot.access.storage.pool": "Unable to import Instance as the specified host does not have access to the {{storagePool}}.",
"vm.import.kvm.host.not.found": "Unable to import Instance as the specified KVM host {{host}} could not be found.",
"vm.import.kvm.host.required": "Unable to import Instance as a KVM host is required.",
"vm.import.kvm.hostname.invalid.chars": "Unable to import KVM Instance as the hostname {{hostname}} contains invalid characters.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2610,8 +2610,7 @@ private UserVmResponse importKvmInstance(ImportVmCmd cmd) {
// A host the planner is pinned to must be able to see the pool, otherwise the volume check
// runs on a host that cannot reach the image and reports it as missing.
if (ImportSource.SHARED == importSource && hostId != null && storagePoolHostDao.findByPoolHost(poolId, hostId) == null) {
throw new InvalidParameterValueException(String.format(
"Specified host does not have access to the storage pool: %s", storagePool.getUuid()));
throw Exceptions.invalidParameterValueException("vm.import.kvm.host.cannot.access.storage.pool", Map.of("storagePool", storagePool));
}

DiskOffering diskOffering = diskOfferingDao.findById(serviceOffering.getDiskOfferingId());
Expand Down
Loading