Bug 1857165
Summary: | [v2v] VM import RHV to CNV Import fails if targetVmName is longer than 23 chars | ||||||
---|---|---|---|---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Amos Mastbaum <amastbau> | ||||
Component: | V2V | Assignee: | Jakub Dzon <jdzon> | ||||
Status: | CLOSED ERRATA | QA Contact: | Amos Mastbaum <amastbau> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2.4.0 | CC: | alitke, bthurber, cnv-qe-bugs, dagur, istein, jdzon, omachace, pkliczew | ||||
Target Milestone: | --- | ||||||
Target Release: | 2.4.1 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | v2.4.1-2 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1857181 1858565 (view as bug list) | Environment: | |||||
Last Closed: | 2020-09-03 20:31:08 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1857181, 1858565 | ||||||
Attachments: |
|
Description
Amos Mastbaum
2020-07-15 10:15:40 UTC
I think you can solve this at the v2v level by deleting the DV once you know the VM import cannot complete successfully. Deleting the DV will cause the importer Pod to be deleted along with the underlying PVC. Closer examination of the issue in functional tests environment has shown that the VM is created with given name (shorter than 63 characters) but it is not possible to attach disks to it - the admission hook rejects disks and volumes with names longer than 63 characters (the generated name is in following format: dv-<vm name>-<disk attachment id>). The solution to that is to limit the length of the disk+volume names to 63 characters. The errors reporting that the VM cannot be found are result of the VM being already gone after we remove it after failed import. Additional issue arises when the target VM name is longer than 63 characters - we try to put the name in at least one label ("app" on VirtualMachine) and it fails, because label value cannot be longer than 63 characters. The solution to that problem is to limit the length of the target vm name to 63 characters (as opposed to current 253). Code for release 2.4.1 is under review in PR https://github.com/kubevirt/vm-import-operator/pull/348 Changes for 2.5 were merged from https://github.com/kubevirt/vm-import-operator/pull/341. Changes were merged to https://github.com/kubevirt/vm-import-operator/tree/release-0.1 Please add fixed in version 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 (OpenShift Virtualization 2.4.1 images), 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/RHBA-2020:3629 |