diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade412to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade412to420.java index 4e1e094348f..0c77ce48634 100644 --- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade412to420.java +++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade412to420.java @@ -2619,9 +2619,9 @@ public class Upgrade412to420 implements DbUpgrade { try { s_logger.debug("Setting format to RAW for all volumes on RBD primary storage pools"); pstmt = conn.prepareStatement("UPDATE volumes SET format = 'RAW' WHERE pool_id IN(SELECT id FROM storage_pool WHERE pool_type = 'RBD')"); - pstmt.executeQuery(); + pstmt.executeUpdate(); } catch (SQLException e) { - throw new CloudRuntimeException("Failed to update volume format to RAW for volumes on RBD pools"); + throw new CloudRuntimeException("Failed to update volume format to RAW for volumes on RBD pools due to exception ", e); } } }