Fix XenServer nested extra configuration#8698
Conversation
DaanHoogland
left a comment
There was a problem hiding this comment.
CLGTM, but don't you think the replacement code should be called inside the VirtualMachine.add<>() methods, @gpordeus ?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8698 +/- ##
============================================
+ Coverage 30.90% 30.98% +0.08%
- Complexity 33382 33501 +119
============================================
Files 5355 5355
Lines 375727 375784 +57
Branches 54915 54914 -1
============================================
+ Hits 116109 116444 +335
+ Misses 244219 243903 -316
- Partials 15399 15437 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: dahn <daan.hoogland@gmail.com>
|
@DaanHoogland Thanks for the review.
Do you mean the original methods ( |
right, I thought these were in a wrapper :( ok, don't bother |
|
@blueorangutan package |
|
@DaanHoogland 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]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 8761 |
|
@gpordeus Unit tests are failing during build. Can you check & fix those? |
@DaanHoogland @vishesh92 |
The server is not down. @DaanHoogland @NuxRo |
|
@blueorangutan package |
|
@DaanHoogland 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]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 8795 |
…or/xenserver/resource/CitrixResourceBase.java
|
@blueorangutan package |
|
@DaanHoogland 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8804 |
|
@blueorangutan test alma9 xcpng82 |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + xcpng82) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9338)
|
@gpordeus the test run with these env specs fails a bit, is that expected? what did you use? |
I tested it manually on a local ubuntu lab with xcp-ng-8.2 host. I didn't run the integration tests, but I believe these are related to #8586, since the same tests are acting up ( |
@weizhouapache , can you review? |
|
@blueorangutan test rocky8 xenserver-71 |
|
@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + xenserver-71) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9505)
|
|
@vishesh92 is this alright to you? |
Description
This PR fixes a problem when trying to boot up a XenServer VM with a template through an ISO.
Steps to reproduce:
enable.additional.vm.configurationand addHVM-boot-params:ordertoallow.additional.vm.configuration.list.xen.updateVirtualMachinewith parameterextraconfig=HVM-boot-params:order%3DdcnIt will not finish, with the following log message:
After fixing the exception message, we get:
This PR fixes the exception message and changes the Xen API method called from
addTotosetwithget, letting Java substitute any duplicates in the HashMap.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
I repeated the steps to reproduce the error and verified the VM with template started up sucessfully, booting the ISO.