Regression 4.21.0: cloud-setup-databases errors out on --schema-only#11609
Regression 4.21.0: cloud-setup-databases errors out on --schema-only#11609bradh352 wants to merge 1 commit intoapache:mainfrom
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
|
@nvazquez can you review since you introduced the breaking PR? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11609 +/- ##
=========================================
Coverage 17.36% 17.36%
- Complexity 15245 15246 +1
=========================================
Files 5888 5888
Lines 525831 525831
Branches 64183 64183
=========================================
+ Hits 91298 91303 +5
+ Misses 424227 424222 -5
Partials 10306 10306
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:
|
|
@blueorangutan package |
|
@harikrishna-patnala 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 14948 |
nvazquez
left a comment
There was a problem hiding this comment.
Sorry @bradh352 I previously approved but after reviewing the original issue the PR was fixing (#11202) the flag force-recreate was introduced to prevent data loss. So I think a better solution for this use case should be also passing the force-recreate flag along with the schema-only flag instead of this fix. What do you think? cc @DaanHoogland @harikrishna-patnala @weizhouapache
I agree with you @nvazquez It has been mentioned in the cloudstack documentation
@bradh352 |
|
Ok, thanks. I think the "recreate" part threw me off then since its a fresh install. |

Description
PR #11239 introduced a regression when initializing the cloudstack database when the schema already exists and passes the
--schema-onlycommand line option.This PR fixes that issue.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Not very readable, but here's the output from my ansible playbook on the failure:
How Has This Been Tested?
Tested by manually patching a live system being set up.
How did you try to break this feature and the system with this change?
N/A