Repository navigation
Restrict VDDK check on filesystem only when the agent property for VDDK is set - #14688
Conversation
|
@blueorangutan package |
|
@nvazquez 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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14688 +/- ##
=========================================
Coverage 18.32% 18.32%
+ Complexity 16644 16643 -1
=========================================
Files 5939 5939
Lines 537787 537777 -10
Branches 65932 65929 -3
=========================================
- Hits 98544 98543 -1
+ Misses 428033 428024 -9
Partials 11210 11210
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✖️ suse15. SL-JID 20021 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
I'm not an official reviewer, but I do not believe this fixes the issue. It does not address the root cause, and I don't think it'll even workaround the issue. The root cause is the vddk detection is far too slow. Doing a search of the entire filesystem is not a good design and should be avoided. My recommendation would be to remove the detection, but I'm not a cloudstack developer or maintainer. If there's no way to remove the detection or change the detection to not scan the entire root filesystem, then this change only addresses one of the calls to detectVddkLibDir. As noted in the bug report, there's another case where detectVddkLibDir is called in the hostSupportsVddk function, and I believe this will likely cause the bug to persist. Generally, calling a host supports function is not expected to take dozens of minutes, which would occur when the detectVddkLibDir function is called within the function. Within the hostSupportsVddk function, moving the hostSupportsInstanceConversion() function call from the return to the beginning of this function could potentially workaround this issue. At minimum, this should be included in this PR and tested that it's working as expected, but it doesn't address the design issue with the detection. |
|
Thanks @timmyzhu I have missed the check on |
|
@blueorangutan package |
|
@nvazquez 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 20031 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-17564)
|
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-17569)
|
|
[SF] Trillian test result (tid-17576)
|
vladimirpetrov
left a comment
There was a problem hiding this comment.
LGTM, here are the tested scenarios:
Host connect (the bug)
| # | Scenario | Baseline | PR |
|---|---|---|---|
| TC-01 | Agent restart with the scan delay on (steps from the issue) | Alert, not Up after 510 s, 6 scans, Timed out on ReadyCommand |
n/a |
| TC-02 | Same as TC-01 | n/a | Up in 8 s, 0 scans |
| TC-03 | reconnectHost with the scan delay on |
3 scans | Up in 14 s, 0 scans |
| TC-05 | vddk.lib.dir set to a wrong path (a typo in the workaround) |
WARN, then 4 scans | Up in 8 s, 0 scans |
VDDK detection (regression and behaviour change)
| # | Scenario | Baseline | PR |
|---|---|---|---|
| TC-04 | Valid vddk.lib.dir (the workaround from the issue) |
0 scans, directory reported | same |
| TC-06 | VDDK fully configured | host.vddk.support=true |
same |
| TC-07 | VDDK installed, vddk.lib.dir not set |
found by the scan | not found, support=false |
| R1 | Real OpenVDDK in vddk.lib.dir, scan delay on |
0 scans, support=true, 1.38.5 | same |
| R2 | Real OpenVDDK installed but not configured | found by the scan | not found, 0 scans |
importVm VDDK check (CheckConvertInstance)
| # | Scenario | Baseline | PR |
|---|---|---|---|
| TC-08 | usevddk=true, no VDDK directory set anywhere |
1 scan, job fails after 124 s | fails in 3 s, 0 scans |
| TC-09 | Wrong directory passed in the API, valid one in agent.properties |
1 scan | fails in 3 s, 0 scans |
| TC-10 | Valid directory passed in the API | check passes | same |
Full imports from vCenter 8.0.3
| # | Scenario | Baseline | PR |
|---|---|---|---|
| R3 | VDDK import, directory from agent.properties, then start the VM |
imported in 121 s, Running | imported in 111 s, Running |
| R4 | VDDK import, directory only in details[0].vddk.lib.dir |
imported | imported |
| R5 | No convertinstancehostid given (one host has VDDK, the other only virt-v2v) |
the VDDK host is chosen | same |
| R6 | vddk.transports=nbdssl and vddk.thumbprint in the import details |
both reach virt-v2v, |
Description
This PR restricts the filesystem check for the VDDK library only when the property
vddk.lib.diris set onagent.propertiesFixes: #13497
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?