mirror of https://github.com/apache/cloudstack.git
Fix UI notifications for migrate volume
This commit is contained in:
parent
de123c4268
commit
3d70877b50
|
|
@ -165,12 +165,12 @@ public final class LibvirtMigrateVolumeCommandWrapper extends CommandWrapper<Mig
|
|||
if (blockJobInfo != null) {
|
||||
LOGGER.debug(String.format("Volume %s : %s block copy progress: %s%% current value:%s end value:%s", diskLabel, srcPath, (blockJobInfo.end == 0)? 0 : 100*(blockJobInfo.cur / (double) blockJobInfo.end), blockJobInfo.cur, blockJobInfo.end));
|
||||
if (blockJobInfo.cur == blockJobInfo.end) {
|
||||
LOGGER.debug(String.format("Block copy completed for the volume %s : %s", diskLabel, srcPath));
|
||||
LOGGER.info(String.format("Block copy completed for the volume %s : %s", diskLabel, srcPath));
|
||||
dm.blockJobAbort(diskLabel, Domain.BlockJobAbortFlags.PIVOT);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
LOGGER.debug("Failed to get the block copy status, trying to abort the job");
|
||||
LOGGER.info("Failed to get the block copy status, trying to abort the job");
|
||||
dm.blockJobAbort(diskLabel, Domain.BlockJobAbortFlags.ASYNC);
|
||||
}
|
||||
waitTimeInSec--;
|
||||
|
|
|
|||
|
|
@ -196,6 +196,8 @@ export default {
|
|||
title: this.$t('label.migrate.volume'),
|
||||
description: this.resource.id,
|
||||
jobId: response.migratevolumeresponse.jobid,
|
||||
description: this.resource.name,
|
||||
title: this.$t('label.migrate.volume'),
|
||||
successMessage: this.$t('message.success.migrate.volume'),
|
||||
errorMessage: this.$t('message.migrate.volume.failed'),
|
||||
errorMethod: () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue