[
https://issues.apache.org/jira/browse/CLOUDSTACK-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622187#comment-13622187
]
Milamber commented on CLOUDSTACK-1842:
--------------------------------------
Seems have introduce a bug.
With a fresh install of CS4.1 on CentOS (6.4), first startp of cloud-management
service doesn't works.
In catalina.out, a upgrade DB 4.0 to 4.1 are made and:
ERROR [utils.db.ScriptRunner] (Timer-1:) Error executing: INSERT INTO
`cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (163, UUID(),
10, 'Ubuntu 12.04 (32-bit)')
ERROR [utils.db.ScriptRunner] (Timer-1:)
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '163' for key 'PRIMARY'
ERROR [cloud.upgrade.DatabaseUpgradeChecker] (Timer-1:) Unable to execute
upgrade script: /usr/share/cloudstack-management/setup/db/schema-40to410.sql
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '163' for key 'PRIMARY'
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:193)
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
at
com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:173)
at
com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:233)
at
com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:358)
at
com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:90)
at
com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
ERROR [utils.component.ComponentContext] (Timer-1:) System integrity check
failed. Refuse to startup
Inside the cloud database, guest_os with id 163 and 164 (ubuntu 12.04 32/64)
are already exists.
> ASF 4.0 to 4.1 Upgrade: Missing Ubuntu 12.04 Guest OS Types on the Upgraded
> Setup
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-1842
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1842
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.1.0
> Reporter: Chandan Purushothama
> Assignee: Abhinandan Prateek
> Priority: Critical
> Fix For: 4.1.0
>
> Attachments: UICapture6.PNG
>
>
> ================
> Steps to Reproduce:
> ================
> 1. Upgrade ASF 4.0 setup to 4.1
> ==========
> Observations:
> ==========
> I attached the screenshot of missing Guest OSs on the Upgraded Setup.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira