schema: Add upgrade path from 4.21.0.0 to 4.22.0.0#11469
schema: Add upgrade path from 4.21.0.0 to 4.22.0.0#11469shwstppr merged 4 commits intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11469 +/- ##
=========================================
Coverage 17.35% 17.36%
- Complexity 15230 15236 +6
=========================================
Files 5886 5888 +2
Lines 525685 525722 +37
Branches 64159 64161 +2
=========================================
+ Hits 91247 91266 +19
- Misses 424138 424157 +19
+ Partials 10300 10299 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
engine/schema/src/main/resources/META-INF/db/schema-42100to42200-cleanup.sql
Outdated
Show resolved
Hide resolved
engine/schema/src/main/resources/META-INF/db/schema-42100to42200.sql
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14673 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
There was a problem hiding this comment.
Pull Request Overview
This PR adds the database upgrade path from Apache CloudStack version 4.21.0.0 to 4.22.0.0. The implementation follows the standard CloudStack upgrade pattern by providing the necessary infrastructure for schema migration.
- Creates empty SQL migration scripts for the version upgrade
- Implements the Java upgrade class with standard boilerplate methods
- Registers the new upgrade path in the DatabaseUpgradeChecker chain
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
schema-42100to42200.sql |
Empty SQL migration script with Apache license header |
schema-42100to42200-cleanup.sql |
Empty SQL cleanup script with Apache license header |
Upgrade42100to42200.java |
Java upgrade implementation with standard methods and system VM template registration |
DatabaseUpgradeChecker.java |
Registration of the new upgrade path in the upgrade chain |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
| } | ||
|
|
||
| private void initSystemVmTemplateRegistration() { | ||
| systemVmTemplateRegistration = new SystemVmTemplateRegistration(""); |
There was a problem hiding this comment.
The SystemVmTemplateRegistration constructor is being called with an empty string parameter. This may indicate missing configuration or could lead to unexpected behavior. Consider providing the appropriate parameter value or documenting why an empty string is intentional.
| systemVmTemplateRegistration = new SystemVmTemplateRegistration(""); | |
| // TODO: Replace "systemVmTemplateConfig" with the actual required configuration value. | |
| systemVmTemplateRegistration = new SystemVmTemplateRegistration("systemVmTemplateConfig"); | |
| // If an empty string is intentional, document the reason here. |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
thanks @weizhouapache LGTM
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42100to42200.java
Outdated
Show resolved
Hide resolved
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42100to42200.java
Outdated
Show resolved
Hide resolved
|
made some changes as suggested by @sureshanaparti @blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14753 |
|
@blueorangutan test keepEnv |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14134)
|
* Add upgrade path from 4.21.0.0 to 4.22.0.0 * Optimize DbUpgrade files
Description
This PR...
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?