-
Notifications
You must be signed in to change notification settings - Fork 1.2k
kvm: truncate vnc password to 8 chars #6244
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
kvm: truncate vnc password to 8 chars #6244
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that @weizhouapache ? Does this fix/address any libvirt limitation or user reported issue?
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.
@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.
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.
LGTM
…-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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
This PR truncates the vnc password of kvm vms to 8 chars to support latest versions of libvirt.
* kvm: truncate vnc password to 8 chars (#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 <[email protected]>
…#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 <[email protected]>
* 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 <[email protected]> * [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 <[email protected]> Co-authored-by: Wei Zhou <[email protected]> Co-authored-by: Nicolas Vazquez <[email protected]>
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?