Bug 2159975

Summary: The prefix "docker://docker://" was added to the container image while editing the rootdisk (registry)
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Dana Orr <dorr>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.12.0CC: gouyang
Target Milestone: ---   
Target Release: 4.13.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: 2023-05-18 02:56:40 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:

Description Guohua Ouyang 2023-01-11 09:36:34 UTC
Description of problem:
Create a VM from registry and edit its disk, the prefix "docker://docker://" was added to its value.
If not edit the disk, no this problem.

Version-Release number of selected component (if applicable):
v4.12.0

How reproducible:
100%

Steps to Reproduce:
1. create vm from catalog
2. move to customize mode
3. select registry as the disk source and fill the value like "registry.redhat.io/rhel8/rhel-guest-image"
4. move to review page and click disks tab
5. edit the rootdisk, the container image value becomes "docker://registry.redhat.io/rhel8/rhel-guest-image", which is not correct, it should stay with "registry.redhat.io/rhel8/rhel-guest-image"
6. save and create the vm
7. review the VM yaml, the registry value is 'docker://docker://registry.redhat.io/rhel8/rhel-guest-image'

Actual results:
The status of the VM is DataVolumeError, because it cannot import the container image "docker://docker://registry.redhat.io/rhel8/rhel-guest-image"

Expected results:
VM is started 

Additional info:

Comment 1 Guohua Ouyang 2023-02-27 03:39:12 UTC
It causes a regression while selecting source 'Registry' in the edit-disk modal.

Comment 3 errata-xmlrpc 2023-05-18 02:56:40 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 Virtualization 4.13.0 Images security, bug fix, and enhancement 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-2023:3205