Skip to content

Commit 24e01e5

Browse files
author
toni.zamparetti
committed
add Support for migration of system VMs with volumes in the IU
1 parent be89e6f commit 24e01e5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

ui/src/components/view/InstanceVolumesStoragePoolSelectListView.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ export default {
170170
this.volumes = []
171171
getAPI('listVolumes', {
172172
listAll: true,
173-
virtualmachineid: this.resource.id
173+
virtualmachineid: this.resource.id,
174+
listsystemvms: true
174175
}).then(response => {
175176
var volumes = response.listvolumesresponse.volume
176177
if (volumes && volumes.length > 0) {

ui/src/views/compute/MigrateWizard.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ export default {
338338
submitForm () {
339339
if (this.loading) return
340340
this.loading = true
341-
const migrateApi = this.isUserVm
342-
? this.requiresStorageMigration()
343-
? 'migrateVirtualMachineWithVolume'
344-
: 'migrateVirtualMachine'
345-
: 'migrateSystemVm'
341+
const migrateApi = !this.requiresStorageMigration()
342+
? this.isUserVm
343+
? 'migrateVirtualMachine'
344+
: 'migrateSystemVm'
345+
: 'migrateVirtualMachineWithVolume'
346346
var params = this.selectedHost.id === -1
347347
? { autoselect: true, virtualmachineid: this.resource.id }
348348
: { hostid: this.selectedHost.id, virtualmachineid: this.resource.id }

0 commit comments

Comments
 (0)