From 314baec444ee98ed9ff73e56d34c54b6a0041517 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 11 Mar 2021 13:03:36 +0530 Subject: [PATCH 01/11] ui: Fix breadcrumb discrepancy (#4788) --- ui/src/components/widgets/Breadcrumb.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/src/components/widgets/Breadcrumb.vue b/ui/src/components/widgets/Breadcrumb.vue index fdcb304f7df..c91ef630ff1 100644 --- a/ui/src/components/widgets/Breadcrumb.vue +++ b/ui/src/components/widgets/Breadcrumb.vue @@ -26,12 +26,15 @@ {{ $t(item.meta.title) }} - From c6e8b8c4d588b8970870fcc1403e8bf9c3174cee Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 11 Mar 2021 13:03:56 +0530 Subject: [PATCH 02/11] ui: Show displayname in compute list view (#4787) --- ui/src/config/section/compute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js index 89501406503..dc4efe9af61 100644 --- a/ui/src/config/section/compute.js +++ b/ui/src/config/section/compute.js @@ -38,7 +38,7 @@ export default { return filters }, columns: () => { - const fields = ['name', 'state', 'ipaddress'] + const fields = ['displayname', 'name', 'state', 'ipaddress'] const metricsFields = ['cpunumber', 'cpuused', 'cputotal', { memoryused: (record) => { From 85103441295835bcb3410e596225d4fd8756c9f0 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 11 Mar 2021 13:04:28 +0530 Subject: [PATCH 03/11] ui: Show vm name in info card in deployvm (#4786) --- ui/src/components/view/InfoCard.vue | 9 ++++++--- ui/src/views/compute/DeployVM.vue | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 8200b8114fb..2229f8ee976 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -713,7 +713,6 @@ export default { }, data () { return { - name: '', ipaddress: '', resourceType: '', annotationType: '', @@ -769,10 +768,14 @@ export default { created () { this.setData() }, + computed: { + name () { + return this.resource.displayname || this.resource.displaytext || this.resource.name || this.resource.username || + this.resource.ipaddress || this.resource.virtualmachinename || this.resource.templatetype + } + }, methods: { setData () { - this.name = this.resource.displayname || this.resource.displaytext || this.resource.name || this.resource.username || - this.resource.ipaddress || this.resource.virtualmachinename || this.resource.templatetype if (this.resource.nic && this.resource.nic.length > 0) { this.ipaddress = this.resource.nic.filter(e => { return e.ipaddress }).map(e => { return e.ipaddress }).join(', ') } else { diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue index bee2a386579..b2a5fee8bcb 100644 --- a/ui/src/views/compute/DeployVM.vue +++ b/ui/src/views/compute/DeployVM.vue @@ -603,7 +603,7 @@ - + From 7a9d43e95988b77a84cc671ea1b37c4b2873514d Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 11 Mar 2021 13:05:37 +0530 Subject: [PATCH 04/11] test: fix listVolumes call for detach volume migration check (#4785) Signed-off-by: Abhishek Kumar --- test/integration/smoke/test_vm_life_cycle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke/test_vm_life_cycle.py b/test/integration/smoke/test_vm_life_cycle.py index 3def05346a4..2328a87c593 100644 --- a/test/integration/smoke/test_vm_life_cycle.py +++ b/test/integration/smoke/test_vm_life_cycle.py @@ -1305,7 +1305,7 @@ class TestMigrateVMwithVolume(cloudstackTestCase): Volume.migrate(self.apiclient, storageid=target_pool.id, volumeid=volume1.id) - vol = Volume.list(self.apiclient, volume=volume1.id)[0] + vol = Volume.list(self.apiclient, id=volume1.id)[0] self.assertEqual(vol.storageid, target_pool.id, "Storage pool was not the same as expected") From 9454edd0f316acee13f3531eebee404a9c726d4e Mon Sep 17 00:00:00 2001 From: davidjumani Date: Thu, 11 Mar 2021 13:06:11 +0530 Subject: [PATCH 05/11] ui: Show memory allocated percentage when migrating vm (#4784) --- ui/src/views/compute/MigrateWizard.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/src/views/compute/MigrateWizard.vue b/ui/src/views/compute/MigrateWizard.vue index 46346e941a1..9f050cda20f 100644 --- a/ui/src/views/compute/MigrateWizard.vue +++ b/ui/src/views/compute/MigrateWizard.vue @@ -47,6 +47,9 @@
{{ record.memoryused | byteToGigabyte }} GB
+
+ {{ record.memoryallocatedpercentage }} +