From 4ae9fa8ad4caf9af0d331ab118d0b01c0d56e8a0 Mon Sep 17 00:00:00 2001 From: alena Date: Fri, 6 May 2011 17:49:09 -0700 Subject: [PATCH] DB upgrade - update LVM storage with correct cluster id --- setup/db/db/schema-222to224.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/db/db/schema-222to224.sql b/setup/db/db/schema-222to224.sql index 2c0a65e0737..37c5ff6325a 100644 --- a/setup/db/db/schema-222to224.sql +++ b/setup/db/db/schema-222to224.sql @@ -166,3 +166,5 @@ DROP TABLE `cloud`.`load_balancer`; UPDATE `cloud`.`nics` SET strategy='Create' where reserver_name='DirectNetworkGuru'; + +UPDATE storage_pool SET cluster_id=(SELECT cluster_id FROM host INNER JOIN storage_pool_host_ref WHERE host.id=storage_pool_host_ref.host_id AND storage_pool_host_ref.pool_id=storage_pool.id) WHERE pool_type='LVM';