Description of problem: According to DNS-1123 spec - the VM and disk names can contain '.' But actually the creation of VM failed in case of one of them include '.' Version-Release number of selected component (if applicable): HCO_BUNDLE_REGISTRY_TAG: v2.0.0-29 How reproducible: 100% Steps to Reproduce: 1. Start migration procedure 2. Give machine/disk name that include the character '.' Actual results: No validation error is shown while insert '.' in the machine/disk name, but finally the creation of VM failed Additional info: The error message that displayed in the last step: Error "spec.template.spec.hostname does not conform to the kubernetes DNS_LABEL rules : a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')" for field "spec.template.spec.hostname". Please note: there is no mention about '.'
Fixed in CNV docs: https://github.com/apinnick/openshift-docs/commit/1a22faa300986e6246093949c0408f02e8e8d63d
Re-opening this bug at Maayan's request and targeting for UI. Migration fails if a migrating VM contains a period (.), space, or international characters. UI should check the VM name and raise a warning to the user if a migrating VM name is not valid.
Clarification: This bug is about that the "Frontend" validation should fail, for VM/Disk name containing a period. ( In UI 'Create with Wizard' dialog, validation for both: * 'Basic settings' card: VM name * 'Storage' card: Disk name ) Current state is that the "Backend" validation fails. Current "Frontend" validation does fail for other characters, that are not allowed, like Upper case, or "_". However it DO NOT fail for ".", which is included in the DNS-1123 spec. Regarding the documentation, mentioned in comment #2: Avital, Would you please add that the naming limitations also refer to Disk name, and not only to VM name?
OK, after an offline discussion with Ilanit, this is a UI bug that the '.' sign is not validated on frontend. As agreed, this is not a 2.0 blocker, moving to 2.1. Ilanit will open a followup doc bug to mention that the '.' is not a valid character.
https://github.com/openshift/console/pull/2126
should this move to ON QA?
(In reply to Nelly Credi from comment #9) > should this move to ON QA? Yes it should. @Daniel?
I think it should automatically mobe to ON-QE once the target DS build (2.1.1) is delivered to QE. Once we get the build with the fix will validate it.
On CNV-2.2.0-10, and Openshift console 4.3.0-0.nightly-2019-12-19-050538 There is a validation error if the VM/Disk Name include a '.', at the stage of filling the Import VM dialog. Previously on CNV-2.0 the Import VM dialog did not validate that. Import VM dialog was passing and the Import itself was failing on this. Now, on CNV -2.2.0-10, * VM name: Name* mini. Name has to end with alphanumeric character. '.' characters are not allowed. * Disk name: Name* hdd. Name has to end with alphanumeric character. '.' characters are not allowed.
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, 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/RHEA-2020:0307