-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Regression 4.21.0: cloud-setup-databases errors out on --schema-only #11609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bradh352 - LGTM
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-only
command 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