René's URL Explorer Experiment


Title: Database encryption engine migration script fails · Issue #9979 · apache/cloudstack · GitHub

Open Graph Title: Database encryption engine migration script fails · Issue #9979 · apache/cloudstack

X Title: Database encryption engine migration script fails · Issue #9979 · apache/cloudstack

Description: ISSUE TYPE Bug Report COMPONENT NAME Database encryption engine migration script CLOUDSTACK VERSION 4.18.2.3 CONFIGURATION Database with legacy cryptographic cipher (MD5/DES) OS / ENVIRONMENT Centos 7 SUMMARY When migrating from the old ...

Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME Database encryption engine migration script CLOUDSTACK VERSION 4.18.2.3 CONFIGURATION Database with legacy cryptographic cipher (MD5/DES) OS / ENVIRONMENT Cento...

X Description: ISSUE TYPE Bug Report COMPONENT NAME Database encryption engine migration script CLOUDSTACK VERSION 4.18.2.3 CONFIGURATION Database with legacy cryptographic cipher (MD5/DES) OS / ENVIRONMENT Cento...

Opengraph URL: https://github.com/apache/cloudstack/issues/9979

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Database encryption engine migration script fails","articleBody":"##### ISSUE TYPE\r\n * Bug Report\r\n\r\n##### COMPONENT NAME\r\nDatabase encryption engine migration script\r\n\r\n\r\n##### CLOUDSTACK VERSION\r\n4.18.2.3\r\n\r\n\r\n##### CONFIGURATION\r\nDatabase with legacy cryptographic cipher (MD5/DES)\r\n\r\n\r\n##### OS / ENVIRONMENT\r\nCentos 7\r\n\r\n\r\n##### SUMMARY\r\nWhen migrating from the old database encryption scheme (MD5/DES 56-bit) to the new one (AES-GCM 256-bit) using the supplied script (/usr/bin/cloudstack-migrate-databases) from any of the managers; the migration process starts, but suddenly, when working on on the 'user_vm_deploy_as_is_details' table, we get an error and the process fails.\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n~~~\r\n# systemctl stop cloudstack-management cloudstack-usage\r\n# /usr/bin/cloudstack-migrate-databases -d oldDBKey -m oldMSKey -e newDBKey -n newMSKey -v V2\r\n...\r\n...\r\nData Migration failed. Reverting db.properties\r\n~~~\r\n\r\n\r\n##### EXPECTED RESULTS\r\nThe script should end without error. The database content is migrated using the new cipher and the configuration files are updated as needed.\r\n\r\n\r\n##### ACTUAL RESULTS\r\nThe database and configuration files remains untouched, the migration script fails with the following error:\r\n\r\n~~~\r\nUnable to update user_vm_deploy_as_is_details values due to: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'vm_instance.id = 20850 AND template_deploy_as_is_details.name = 'property-timezo' at line 1\r\nError during data migration\r\ncom.cloud.utils.exception.CloudRuntimeException: Unable to update user_vm_deploy_as_is_details values\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.throwCloudRuntimeException(EncryptionSecretKeyChanger.java:794)\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.migrateTemplateDeployAsIsDetails(EncryptionSecretKeyChanger.java:663)\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.migrateData(EncryptionSecretKeyChanger.java:485)\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.migratePropertiesAndDatabase(EncryptionSecretKeyChanger.java:343)\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.main(EncryptionSecretKeyChanger.java:142)\r\nCaused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'vm_instance.id = 20850 AND template_deploy_as_is_details.name = 'property-timezo' at line 1\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)\r\n        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)\r\n        at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)\r\n        at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1003)\r\n        at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:122)\r\n        at org.apache.commons.dbcp2.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:122)\r\n        at com.cloud.utils.crypt.EncryptionSecretKeyChanger.migrateTemplateDeployAsIsDetails(EncryptionSecretKeyChanger.java:649)\r\n        ... 3 more\r\nData Migration failed. Reverting db.properties\r\n~~~\r\n","author":{"url":"https://github.com/detaras","@type":"Person","name":"detaras"},"datePublished":"2024-11-26T18:22:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/9979/cloudstack/issues/9979"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:68298373-98cc-63bb-88c9-e393b56842bf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id94CE:AB404:7D5FE3:AD0C59:6A55A9C7
html-safe-nonce08a78fed7926da85135792954ae57e63d5289ccf50296e03df5bb573452f983c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NENFOkFCNDA0OjdENUZFMzpBRDBDNTk6NkE1NUE5QzciLCJ2aXNpdG9yX2lkIjoiMTYyOTU4MzY0MjY5MDE2OTI4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac48cd5555630d276e38159399d3fe1a6debfcb12cd7e7867fbb6c38be1041ae19
hovercard-subject-tagissue:2695662757
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/9979/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f03cdd630ec16b635e97e0b272ee8c84cee08b27eca727fbf6300881ee351790/apache/cloudstack/issues/9979
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f03cdd630ec16b635e97e0b272ee8c84cee08b27eca727fbf6300881ee351790/apache/cloudstack/issues/9979
og:image:altISSUE TYPE Bug Report COMPONENT NAME Database encryption engine migration script CLOUDSTACK VERSION 4.18.2.3 CONFIGURATION Database with legacy cryptographic cipher (MD5/DES) OS / ENVIRONMENT Cento...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedetaras
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653fccf1e27344851c0d3de3fa6faa526197f072
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/9979#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F9979
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F9979
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/9979
Reloadhttps://github.com/apache/cloudstack/issues/9979
Reloadhttps://github.com/apache/cloudstack/issues/9979
Please reload this pagehttps://github.com/apache/cloudstack/issues/9979
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 539 https://github.com/apache/cloudstack/issues
Pull requests 259 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
#10033https://github.com/apache/cloudstack/pull/10033
Database encryption engine migration script failshttps://github.com/apache/cloudstack/issues/9979#top
#10033https://github.com/apache/cloudstack/pull/10033
https://github.com/weizhouapache
affects:4.18https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.18%22
affects:4.19https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.19%22
4.19.2https://github.com/apache/cloudstack/milestone/33
https://github.com/detaras
detarashttps://github.com/detaras
on Nov 26, 2024https://github.com/apache/cloudstack/issues/9979#issue-2695662757
weizhouapachehttps://github.com/weizhouapache
affects:4.18https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.18%22
affects:4.19https://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22affects%3A4.19%22
4.19.2https://github.com/apache/cloudstack/milestone/33
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.