-
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
default should map always, not require the minHypervisorVersion #6841
Conversation
@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 ✖️ debian ✔️ suse15. SL-JID 4520 |
Kudos, SonarCloud Quality Gate passed! |
@blueorangutan test |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Trillian test result (tid-5187)
|
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
However, need to verify if #6736 is fixed
Trillian test result (tid-5190)
|
@borisstoyanov I think we need this in for the upload of OVAs not having a hypervisor version and preventing those that have a too high hypervisor version. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4746 |
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4750 |
Packaging result: ✔️ el7 ✖️ el8 ✔️ debian ✔️ suse15. SL-JID 4754 |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4777 |
@blueorangutan test centos7 vmware-67u3 |
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian test result (tid-5407)
|
Trillian test result (tid-5434)
|
code lgtm, but I wonder ##6736 will be back again |
I don´t think so. @borisstoyanov can you look at that? |
yes it was, forgot to reopen to restart actions... |
Codecov Report
@@ Coverage Diff @@
## main #6841 +/- ##
============================================
+ Coverage 10.84% 11.73% +0.89%
- Complexity 7095 8028 +933
============================================
Files 2485 2514 +29
Lines 245370 266358 +20988
Branches 38319 46572 +8253
============================================
+ Hits 26602 31257 +4655
- Misses 215500 230996 +15496
- Partials 3268 4105 +837
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
From what I can see, this haven't been fixed yet, here is what I got when testing as described in issue #6736: When registering the mentioned template (PI-VA-3.10.0.0.205.ova) with 'Read from OVA', here is the result: when 'Read from OVA' is false, the same template is properly registered. |
Kudos, SonarCloud Quality Gate passed! |
i think we have to check if this is a scenario that would work before this PR. |
@@ -157,7 +157,7 @@ public List<GuestOSHypervisorVO> listByOsNameAndHypervisorMinimumVersion(String | |||
sc.and(sc.entity().getGuestOsName(), SearchCriteria.Op.EQ, guestOsName); | |||
sc.and(sc.entity().getHypervisorType(), SearchCriteria.Op.EQ, hypervisorType); | |||
sc.and().op(sc.entity().getHypervisorVersion(), SearchCriteria.Op.GTEQ, minHypervisorVersion); | |||
sc.or(sc.entity().getHypervisorVersion(), SearchCriteria.Op.NEQ, "default"); | |||
sc.or(sc.entity().getHypervisorVersion(), SearchCriteria.Op.EQ, "default"); |
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.
should this be GTEQ?
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.
no, default is not part of the simver and it is OR'ed so I think EQ is good
added to 4.18.1.0 milestone |
Not sure if manual testing is needed, but other LGTM. Thanks @DaanHoogland |
ping @weizhouapache |
@rohityadavcloud a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6707 |
manual test is required to test if #6736 is fixed or not. |
@DaanHoogland it looks
|
@weizhouapache I think this is a solution looking for a problem. Shall I close? |
@DaanHoogland |
ok, closing. we can always re-open |
Description
This PR fixes an logic error in #6758
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?