diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt index 37b3e6de1cbe..559182663123 100644 --- a/.github/linters/codespell.txt +++ b/.github/linters/codespell.txt @@ -183,15 +183,12 @@ encryted enebled enmpty entires -enviornment environmnet equivalant erro erronous everthing everytime -excetion -excption excute execept execption diff --git a/python/lib/cloudutils/utilities.py b/python/lib/cloudutils/utilities.py index ce50516193e6..5f7e34ed61d8 100755 --- a/python/lib/cloudutils/utilities.py +++ b/python/lib/cloudutils/utilities.py @@ -98,7 +98,7 @@ def writeProgressBar(msg, result): sys.stdout.flush() class UnknownSystemException(Exception): - "This Excption is raised if the current operating enviornment is unknown" + "This Exception is raised if the current operating environment is unknown" pass class Distribution: diff --git a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java index 5c5a4044909c..eaedaefdae71 100644 --- a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java @@ -3113,7 +3113,7 @@ public Volume detachVolumeFromVM(DetachVolumeCmd cmmd) { } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous detach volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -3548,7 +3548,7 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) { } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous migrate volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -3895,7 +3895,7 @@ private Snapshot takeSnapshotInternal(Long volumeId, Long policyId, Long snapsho } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous take volume snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -4259,7 +4259,7 @@ public String extractVolume(ExtractVolumeCmd cmd) { } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous extract volume job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); diff --git a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java index 1fe06d8a3ee7..80dbb4515302 100644 --- a/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java +++ b/server/src/main/java/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java @@ -550,7 +550,7 @@ public VMSnapshot createVMSnapshot(Long vmId, Long vmSnapshotId, Boolean quiesce } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous create VM snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -660,7 +660,7 @@ public boolean deleteVMSnapshot(Long vmSnapshotId) { } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete VM snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -785,7 +785,7 @@ public UserVm revertToSnapshot(Long vmSnapshotId) throws InsufficientCapacityExc } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous revert to snapshot job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob()); @@ -1036,7 +1036,7 @@ public boolean deleteAllVMSnapshots(long vmId, VMSnapshot.Type type) { } catch (InterruptedException e) { throw new RuntimeException("Operation is interrupted", e); } catch (java.util.concurrent.ExecutionException e) { - throw new RuntimeException("Execution excetion", e); + throw new CloudRuntimeException("Execution exception getting the outcome of the asynchronous delete snapshots job", e); } Object jobResult = _jobMgr.unmarshallResultObject(outcome.getJob());