cloudstack
cloudstack copied to clipboard
Upgrade issue 4.10.0 to 4.11.0
ISSUE TYPE
- Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
Upgrade from 4.10.0 to 4.11.0 fails with different issues
CONFIGURATION
No networking issues yet
OS / ENVIRONMENT
Ubuntu 14.04 VM running cloudstack management agent.
2 x Ubuntu 14.04 and 16.04 running KVM as HyperVisors
SUMMARY
During the upgrade from 4.10 to 4.11 the database upgrade fails with the message
logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: 4.11.0.0KVM SystemVm
template not found. Cannot upgrade system Vms
Second run same error. I have followed these instructions and it looks like a naming issue in the new templates.
http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.11/upgrade/upgrade-4.10.html
I managed to recover by checking the .sql file
https://github.com/apache/cloudstack/blob/3109c590e3d69de83a114ed6fdb12b706e46a7f3/engine/schema/resources/META-INF/db/schema-41000to41100.sql
The database upgrade seems to be working and after adding the upgrade statement in the version table the UI is working again.
But when clicking Account i get the following database error
DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@600d2498: SELECT user_view.id, user_view.uuid, user_view.username, user_view.password, user_view.firstname, user_view.lastname, user_view.email, user_view.state, user_view.api_key, user_view.secret_key, user_view.created, user_view.removed, user_view.timezone, user_view.registration_token, user_view.is_registered, user_view.incorrect_login_attempts, user_view.account_id, user_view.account_uuid, user_view.account_name, user_view.account_type, user_view.account_role_id, user_view.domain_id, user_view.domain_uuid, user_view.domain_name, user_view.domain_path, user_view.job_id, user_view.job_uuid, user_view.job_status, user_view.default, user_view.source FROM user_view WHERE user_view.account_id = 2 AND user_view.removed IS NULL
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Seems that i forgot this perform this fix in the many attempts to get this fixed
https://markmail.org/message/f42kqr3mx4r4hgih
VMs seem to be starting now. But im having issues with the consoles (connection refused)
Thanks @raymonvdm for verifying, I was going to add that you need to register the 4.11 systemvmtemplate before upgrading. Also, please test/upgrade to 4.11.1.0 instead of 4.11.0.0. Wrt console proxy, you'll need to destroy old ones and let the new ones communicate with mgmt server. Please go through the release notes.
Closing this as the initially main reported issue is not an issue.