Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1924695

Summary: Non-ascii passwords are accepted but don't work
Product: OpenShift Container Platform Reporter: Erkan Erol <eerol>
Component: Console Kubevirt PluginAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: low Docs Contact:
Priority: low    
Version: 4.7CC: aos-bugs, cnv-qe-bugs, lkladnit, tnisan, ycui, yzamir
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:29:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Non-ascii chars are not allowed in the password none

Description Erkan Erol 2021-02-03 13:22:26 UTC
Description of problem:

While creating a VM, users are allowed to enter password in "cloud-init" step. When they use non-ascii chars in the password, the creation of VM works. However, users  cannot connect to console via web ui or virtctl. WebUI doesn't allow keyboard selection in console window. virtctl cannot verify the password. 

Version-Release number of selected component (if applicable): 2.6


How reproducible:


Steps to Reproduce:
1. Choose "Customize virtual machine" in web UI while creating a VM. (I used Fedora 31)
2. In the step 4, remove the autogenerated password and use "türkçekarakterlişifre"
3. Continue the wizard and create the VM
4. Observe that you cannot enter the password via web ui since the console tab in web ui assumes your keyboard is english keyboard.
5. Try to connect with "virtctl console" command with the password. Observe that it rejects. 

Actual results: Connection to VM is not possible.


Expected results: The password should not be allowed while creation or it should work. At least, the doc should states that non-ascii passwords don't work. 


Additional info:

Comment 1 Yaacov Zamir 2021-05-19 12:15:18 UTC
Target release is 4.9, moving out of 4.8

Comment 3 Leon Kladnitsky 2021-07-07 07:51:07 UTC
Created attachment 1798988 [details]
Non-ascii chars are not allowed in the password

Comment 5 Leon Kladnitsky 2021-07-11 11:37:12 UTC
Reproduced on:
Client Version: 4.8.0-rc.1
Server Version: 4.7.14
Kubernetes Version: v1.20.0+a0b09eb
CNV:
NAME                                      DISPLAY                    VERSION   REPLACES                                  PHASE
kubevirt-hyperconverged-operator.v2.6.5   OpenShift Virtualization   2.6.5     kubevirt-hyperconverged-operator.v2.6.4   Succeeded

Moving to VERIFIED

Comment 6 Ying Cui 2021-07-14 06:36:03 UTC
Set the 4.9.0 release according to comment #1

Comment 7 Leon Kladnitsky 2021-07-20 07:05:11 UTC
Works as expected on 4.9. 
Verified on https://console-openshift-console.apps.virt-09.cnv-qe.rhcloud.com 

Client Version: 4.8.0-rc.1
Server Version: 4.9.0-0.nightly-2021-07-12-203753
Kubernetes Version: v1.21.1+90622d8
NAME                                      DISPLAY                    VERSION   REPLACES                                  PHASE
kubevirt-hyperconverged-operator.v4.9.0   OpenShift Virtualization   4.9.0     kubevirt-hyperconverged-operator.v2.6.5   Succeeded

Moving to VERIFIED.

Comment 10 errata-xmlrpc 2021-10-18 17:29:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759