From 49a661be5fc4c76159d3d7dbbd3237cfe859e567 Mon Sep 17 00:00:00 2001 From: subhash yedugundla Date: Tue, 6 Jun 2017 16:27:54 +0530 Subject: [PATCH] CLOUDSTACK-9589 vmName entries from host_details table for the VM's whose state is Expunging should be deleted during upgrade from older versions --- setup/db/db/schema-4930to41000-cleanup.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/db/db/schema-4930to41000-cleanup.sql b/setup/db/db/schema-4930to41000-cleanup.sql index b090907d978..986dcdfe7da 100644 --- a/setup/db/db/schema-4930to41000-cleanup.sql +++ b/setup/db/db/schema-4930to41000-cleanup.sql @@ -20,3 +20,5 @@ --; DELETE FROM `cloud`.`configuration` WHERE name='consoleproxy.loadscan.interval'; + +DELETE FROM `cloud`.`host_details` where name = 'vmName' and value in (select name from `cloud`.`vm_instance` where state = 'Expunging' and hypervisor_type ='BareMetal');