Bug 1884538 - v2v-vmware config map cannot be modified to add vddk-init-image
Summary: v2v-vmware config map cannot be modified to add vddk-init-image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 2.5.0
Assignee: Simone Tiraboschi
QA Contact: Nandini Chandra
Pan Ousley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-02 08:55 UTC by Fabien Dupont
Modified: 2020-11-17 13:25 UTC (History)
7 users (show)

Fixed In Version: hyperconverged-cluster-operator-container-v2.5.0-43, hco-bundle-registry-container-v2.5.0-272
Doc Type: Known Issue
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 13:24:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Warning message (369.04 KB, image/png)
2020-10-02 15:59 UTC, Simone Tiraboschi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 854 0 None closed Partially reconcile IMS ConfigMap 2021-02-12 15:59:08 UTC
Github kubevirt hyperconverged-cluster-operator pull 856 0 None closed [release-1.2] Partially reconcile IMS ConfigMap 2021-02-12 15:59:08 UTC
Red Hat Bugzilla 1879993 0 high CLOSED v2v-conversion-image is not updated during CNV upgrade from 2.4.0 to 2.4.1 2023-12-15 19:29:35 UTC
Red Hat Product Errata RHEA-2020:5127 0 None None None 2020-11-17 13:25:33 UTC

Description Fabien Dupont 2020-10-02 08:55:26 UTC
Description of problem:
The fix for BZ 1879993 forces the v2v-vmware config map to have only 3 entries. It replaces the whole data, instead of merging to override some specific entries.

This is a regression as it breaks the existing VMware import feature. The VDDK image is specified in the v2v-vmware config map, see https://docs.openshift.com/container-platform/4.5/virt/virtual_machines/importing_vms/virt-importing-vmware-vm.html#virt-creating-vddk-image_virt-importing-vmware-vm.

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


How reproducible: Always


Steps to Reproduce:
1. Create a vddk-init-image entry in the openshift-cnv/v2v-vmware config map

Actual results: The entry is deleted


Expected results: The entry is present


Additional info:

Comment 1 Simone Tiraboschi 2020-10-02 15:59:52 UTC
Created attachment 1718469 [details]
Warning message

Comment 2 Simone Tiraboschi 2020-10-02 16:04:40 UTC
The fix is basically just an hack to have HCO ignoring the additional values injected by the user into that config map.
But this is still a bad design and indeed the UI is going to emit a warning (please see the attached screenshot), on the other side we are not going to properly fix it before 2.6.0.

Pan,
can we please add a note to https://docs.openshift.com/container-platform/4.5/virt/virtual_machines/importing_vms/virt-importing-vmware-vm.html#virt-creating-vddk-image_virt-importing-vmware-vm saying that the user can simply ignore that warning message on 2.5?

Comment 3 Inbar Rose 2020-10-04 06:03:42 UTC
targeting this bug for 2.5 (as you already fixed the major problem) but I think we should duplicate/track this for 2.6 as well.

Comment 4 Simone Tiraboschi 2020-10-04 07:39:17 UTC
How to verify:
Trying to edit v2v-vmware config map in openshift-cnv namespace, the user should be able to successfully add/edit vddk-init-image value while only v2v-conversion-image and kubevirt-vmware-image should be really managed by the operator.

Comment 5 Pan Ousley 2020-10-09 20:38:34 UTC
Simone, I'm happy to update the docs. However, looking at the link you provided, the user is instructed to edit the ConfigMap by using `oc edit configmap`. Does a similar warning happen via the CLI? 

If not, perhaps we can just put this in the release notes as a known issue in the event that a user tries to edit the config map via the web console.

Or if there is a similar warning via the CLI, perhaps we need both :) 

Let me know what you think. Thanks!

Comment 6 Nandini Chandra 2020-10-22 04:06:18 UTC
Verified in 2.5

Verified that it's possible to edit/add vddk-init-iamge value in the v2v-vmware config map in the openshift-cnv namespace.

Comment 7 Simone Tiraboschi 2020-11-10 07:26:04 UTC
(In reply to Pan Ousley from comment #5)
> Simone, I'm happy to update the docs. However, looking at the link you
> provided, the user is instructed to edit the ConfigMap by using `oc edit
> configmap`. Does a similar warning happen via the CLI? 

No, the warning is visible only in the UI.

> If not, perhaps we can just put this in the release notes as a known 
> issue in the event that a user tries to edit the config map via the
> web console.

Yes, it makes sense. +1

Comment 8 Pan Ousley 2020-11-10 20:26:12 UTC
@Simone, please review the following PR for this Known Issue: https://github.com/openshift/openshift-docs/pull/27239

Thanks!

Comment 9 Pan Ousley 2020-11-11 18:53:30 UTC
Doc update: Simone and Nandini both approved my PR, so I have merged the known issue into the OpenShift Virtualization 2.5 release notes.

Comment 12 errata-xmlrpc 2020-11-17 13:24:56 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 (OpenShift Virtualization 2.5.0 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/RHEA-2020:5127


Note You need to log in before you can comment on or make changes to this bug.