-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix guestOsMapper and move mapping code to latest upgrade #7095
Conversation
it seems some codes in Upgrade41400to41500 needs to be moved as well.
|
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41500to41510.java
Outdated
Show resolved
Hide resolved
@blueorangutan package |
@DaanHoogland a 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: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5287 |
@blueorangutan test |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
@@ -69,8 +66,6 @@ public InputStream[] getPrepareScripts() { | |||
|
|||
@Override | |||
public void performDataMigration(Connection conn) { | |||
correctGuestOsNames(conn); | |||
updateGuestOsMappings(conn); |
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.
I'm not sure about these schema changes, what would happen to templates/VMs created from existing guest OS on previous versions?
Trillian test result (tid-5868)
|
Codecov Report
@@ Coverage Diff @@
## main #7095 +/- ##
==========================================
Coverage 11.76% 11.77%
- Complexity 7661 7666 +5
==========================================
Files 2503 2503
Lines 245958 246067 +109
Branches 38374 38380 +6
==========================================
+ Hits 28946 28983 +37
- Misses 213248 213313 +65
- Partials 3764 3771 +7
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@nvazquez @weizhouapache I added some test descriptions to the PR. Can you re-view? |
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.
code lgtm
we need to verify the guest os mapping in environments below
(1) fresh 4.18
(2) upgrade from 4.17 to 4.18
I will verify when packages are done.
@blueorangutan package |
@weizhouapache a 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: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5316 |
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.
Code LGTM.
LGTM @DaanHoogland would we need to do that with every release? |
if we will do another 4.17 minor release (4.17.3.0), we need to fix in 4.17 as well. |
@weizhouapache should I rebase on 4.17? |
Basically, no. Only because the mapping code was broken between 4.16.1 and 4.18 we need to redo the mapping in 4.18 |
it will be complicated ... you need to and |
And merge forward guaranteed conflicts. Let's leave it as is. |
SonarCloud Quality Gate failed. |
@blueorangutan package |
@vladimirpetrov a 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: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 5338 |
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5349 |
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.
LGTM based on manual testing.
Hey @DaanHoogland, I know it has been a while, but did you check if there were duplicate Guest OS types after this change? I have some environments that were recently updated to the |
@BryanMLima |
@weizhouapache @BryanMLima , seems like we need;
|
Description
This PR fixes a buh in the guestos mapping facility and moves mappings, so current installations get the right mappings.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
upgraded from 4.16.0 and checked if the mappings where alright.
upgraded from 4.17 checked that mapping where alright and for the ubuntu on xenserver that an existing VM could still be stopped/started and migrated.