kvm: truncate vnc password to 8 chars#6244
kvm: truncate vnc password to 8 chars#6244yadvr merged 3 commits intoapache:mainapache/cloudstack:mainfrom weizhouapache:4.16-kvm-truncate-vnc-password-8-charsweizhouapache/cloudstack:4.16-kvm-truncate-vnc-password-8-charsCopy head branch name to clipboard
Conversation
|
this requires manually testing on ubuntu 22.04 or libvirt 8. I will not sure if novnc console works |
|
@blueorangutan package |
|
@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. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 3132 |
|
@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. |
|
tested on centos7 and ubuntu20, vm console works. I have not tested on ubuntu 22.04. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 3136 |
| } | ||
| if (_passwd != null) { | ||
| graphicBuilder.append(" passwd='" + _passwd + "'"); | ||
| graphicBuilder.append(" passwd='" + StringUtils.truncate(_passwd, 8) + "'"); |
There was a problem hiding this comment.
Why is that @weizhouapache ? Does this fix/address any libvirt limitation or user reported issue?
There was a problem hiding this comment.
@rohityadavcloud
this aims to fix an issue with ubuntu 22.04 (to be released soon) and libvirt 8.
the issue is raised in mailing list: https://lists.apache.org/thread/zk4fyggjqk1zphk4dfg1m596yrd15d9b
from many years ago, libvirt accepts vnc password with more than 8 chars. but only the first 8 chars in vnc password are used in vnc console verification (the other chars are dropped).
In recent libvirt, only vnc password with 8 chars is permitted.
…-password-8-chars
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 3141 |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3143 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-3871) |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3879) |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3884)
|
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3895)
|
|
@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 ✔️ debian ✔️ suse15. SL-JID 3176 |
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. Backport of apache@aa0197c Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. Backport of apache@aa0197c Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt. (cherry picked from commit aa0197c) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt.
…#6402) * 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. * Use lang3 string utils Co-authored-by: Wei Zhou <weizhou@apache.org>
* 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>
Description
This PR truncates the vnc password of kvm vms to 8 chars.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?