Should be fixed:
commit 9aaea28d0dedc370888d346d55c81b95486f131b
Author: Hugo Trippaers <[email protected]>
Date: Wed Jan 15 15:20:48 2014 +0100
Fix typo
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade421to430.java
b/engine/schema/src/com/cloud/upgrade/dao/Upgrade421to430.java
index bf08e87..9702792 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade421to430.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade421to430.java
@@ -80,7 +80,7 @@ public class Upgrade421to430 implements DbUpgrade {
try {
selectPstmt = conn.prepareStatement("SELECT id FROM
`cloud`.`service_offering` WHERE vm_type='secondarystoragevm'");
- updatePstmt = conn.prepareStatement("UPDATE
`cloud`.`service_offering` SET ram_size=? WHERE id=?'");
+ updatePstmt = conn.prepareStatement("UPDATE
`cloud`.`service_offering` SET ram_size=? WHERE id=?");
selectResultSet = selectPstmt.executeQuery();
if(selectResultSet.next()) {
serviceOfferingId = selectResultSet.getLong("id");
On 15 jan. 2014, at 15:17, Hugo Trippaers <[email protected]> wrote:
> Sateesh,
>
> The commit ba96c8cadfa4b1dc7ee74fdb26ba5cea87e29b91 breaks a clean
> installation of CloudStack at the moment. The error is this:
>
> 2014-01-15 15:07:19,166 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null)
> Unable to upgrade the database
> com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade ram_size
> of service offering for secondary storage v
> m.
> at
> com.cloud.upgrade.dao.Upgrade421to430.upgradeMemoryOfSsvmOffering(Upgrade421to430.java:93)
> at
> com.cloud.upgrade.dao.Upgrade421to430.performDataMigration(Upgrade421to430.java:66)
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:310)
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:432)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.checkIntegrity(CloudStackExtendedLifeCycl
> e.java:65)
>
> You can reproduce it by using cloudstack-setup-database to configure the
> database and then starting the management server.
>
>
> Cheers,
>
> Hugo