From a782495c68c2b27dff2d659ec87a0ec90c9ceb02 Mon Sep 17 00:00:00 2001 From: Devdeep Singh Date: Mon, 3 Nov 2014 15:42:24 +0530 Subject: [PATCH] CLOUDSTACK-7642. Class not found exception after upgrading from 4.3 to 4.5 on a XenServer hypervisor setup. The resource path has changed for xenserver resources in 4.5. On an upgraded setup the db entries in host table for the resource path needs to be updated. Made a fix in the upgrade script. --- setup/db/db/schema-441to450.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/db/db/schema-441to450.sql b/setup/db/db/schema-441to450.sql index 1f0e2266031..ca915edbbc7 100644 --- a/setup/db/db/schema-441to450.sql +++ b/setup/db/db/schema-441to450.sql @@ -754,3 +754,4 @@ ALTER TABLE `cloud_usage`.`usage_vpn_user` CHANGE `user_name` `user_name` VARCHA --Increase key value size generated from RSA-8192 to be stored. ALTER TABLE `cloud`.`user_vm_details` MODIFY `value` VARCHAR(5120); +UPDATE `cloud`.`host` SET resource = REPLACE(resource, 'com.cloud.hypervisor.xen.resource', 'com.cloud.hypervisor.xenserver.resource') WHERE hypervisor_type='XenServer' AND REMOVED IS NULL;