Uh oh!
There was an error while loading. Please reload this page.
[KVM] Fix VM migration error due to VNC password on libvirt limiting versions - #6404
Conversation
nvazquez
commented
May 22, 2022
@blueorangutan package |
blueorangutan
commented
May 22, 2022
@nvazquez 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. |
blueorangutan
commented
May 22, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3466 |
nvazquez
commented
May 22, 2022
@blueorangutan package |
blueorangutan
commented
May 22, 2022
@nvazquez 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. |
blueorangutan
commented
May 22, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3468 |
nvazquez
commented
May 22, 2022
@blueorangutan test |
blueorangutan
commented
May 22, 2022
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
leolleeooleo
commented
May 22, 2022
It works.
|
weizhouapache
commented
May 22, 2022
@leolleeooleo |
leolleeooleo
commented
May 22, 2022
@weizhouapache |
Yes, was a mistake on the PR description, have updated it - thanks for testing @leolleeooleo. Please submit your review under Files changed -> Review |
Uh oh!
There was an error while loading. Please reload this page.
leolleeooleo
commented
May 22, 2022
"then upgrade host 1" is right.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
May 22, 2022
Trillian test result (tid-4228)
|
nvazquez
commented
May 23, 2022
Thanks for the review @leolleeooleo@weizhouapache - I have refactored it to a simpler approach |
nvazquez
commented
May 23, 2022
@blueorangutan package |
1 similar comment
nvazquez
commented
May 23, 2022
@blueorangutan package |
blueorangutan
commented
May 23, 2022
@nvazquez 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. |
blueorangutan
commented
May 23, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3471 |
weizhouapache
commented
May 23, 2022
@blueorangutan package |
blueorangutan
commented
May 23, 2022
@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. |
blueorangutan
commented
May 23, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3472 |
weizhouapache
commented
May 23, 2022
@blueorangutan test |
blueorangutan
commented
May 23, 2022
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| // Limit the VNC password in case the length is greater than 8 characters | ||
| // Since libvirt version 8 VNC passwords are limited to 8 characters | ||
| String vncPassword = org.apache.commons.lang3.StringUtils.truncate(to.getVncPassword(), 8); | ||
| xmlDesc = replaceIpForVNCInDescFileAndNormalizePassword(xmlDesc, target, vncPassword); |
There was a problem hiding this comment.
separate methos?
| // Limit the VNC password in case the length is greater than 8 characters | |
| // Since libvirt version 8 VNC passwords are limited to 8 characters | |
| StringvncPassword = org.apache.commons.lang3.StringUtils.truncate(to.getVncPassword(), 8); | |
| xmlDesc = replaceIpForVNCInDescFileAndNormalizePassword(xmlDesc, target, vncPassword); | |
| /** | |
| * LimittheVNCpasswordincasethelengthisgreaterthan8characters | |
| * Sincelibvirtversion8VNCpasswordsarelimitedto8characters | |
| */ | |
| privateXmlDescOrSuchAThinggetXmlDesc(....) { | |
| StringvncPassword = org.apache.commons.lang3.StringUtils.truncate(to.getVncPassword(), 8); | |
| returnreplaceIpForVNCInDescFileAndNormalizePassword(xmlDesc, target, vncPassword); | |
| } |
blueorangutan
commented
May 23, 2022
Trillian test result (tid-4229)
|
…versions (apache#6404) * [KVM] Fix VM migration error due to VNC password on libvirt limiting versions * Fix passwd value * Simplify implementation
* Extract the IO_URING configuration into the agent.properties (apache#6253) When using advanced virtualization the IO Driver is not supported. The admin will decide if want to enable/disable this configuration from agent.properties file. The default value is true * kvm: truncate vnc password to 8 chars (apache#6244) This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. * merge fix Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * [KVM] Enable IOURING only when it is available on the host (apache#6399) * [KVM] Disable IOURING by default on agents * Refactor * Remove agent property for iouring * Restore property * Refactor suse check and enable on ubuntu by default * Refactor irrespective of guest OS * Improvement * Logs and new path * Refactor condition to enable iouring * Improve condition * Refactor property check * Improvement * Doc comment * Extend comment * Move method * Add log * [KVM] Fix VM migration error due to VNC password on libvirt limiting versions (apache#6404) * [KVM] Fix VM migration error due to VNC password on libvirt limiting versions * Fix passwd value * Simplify implementation Co-authored-by: slavkap <51903378+slavkap@users.noreply.github.com> Co-authored-by: Wei Zhou <weizhou@apache.org> Co-authored-by: Nicolas Vazquez <nicovazquez90@gmail.com>
…versions (apache#6404) * [KVM] Fix VM migration error due to VNC password on libvirt limiting versions * Fix passwd value * Simplify implementation (cherry picked from commit b1c8b5a) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Description
This PR fixes a VM migration issue described on #6402 (comment)
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?