Bug 2189744 - VM created from CD source registry cannot be started due to InvalidImageName
Summary: VM created from CD source registry cannot be started due to InvalidImageName
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.14.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks: 2196734
TreeView+ depends on / blocked
 
Reported: 2023-04-26 05:05 UTC by Guohua Ouyang
Modified: 2023-08-16 14:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2196734 (view as bug list)
Environment:
Last Closed: 2023-08-16 14:09:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vm yaml snippet (184.08 KB, image/png)
2023-04-26 05:05 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 1277 0 None open Bug 2189744: no docker prefix for container image 2023-05-02 14:00:59 UTC
Red Hat Issue Tracker CNV-28367 0 None None None 2023-04-26 05:07:04 UTC

Description Guohua Ouyang 2023-04-26 05:05:39 UTC
Created attachment 1959981 [details]
vm yaml snippet

Description of problem:
VM created from CD source registry cannot be started:

# oc get pod
NAME                                          READY   STATUS                  RESTARTS   AGE
virt-launcher-fedora-b26b3myg8m6h5ykt-mvtfn   0/2     Init:InvalidImageName   0          30m

# oc describe pod virt-launcher-fedora-b26b3myg8m6h5ykt-mvtfn
Events:
  Type     Reason          Age                    From               Message
  ----     ------          ----                   ----               -------
  Normal   Scheduled       27m                    default-scheduler  Successfully assigned default/virt-launcher-fedora-b26b3myg8m6h5ykt-mvtfn to uit-413-auto-pkwnc-worker-0-8ntsw
  Normal   AddedInterface  27m                    multus             Add eth0 [10.128.2.211/23] from ovn-kubernetes
  Normal   Pulled          27m                    kubelet            Container image "registry.redhat.io/container-native-virtualization/virt-launcher-rhel9@sha256:8d493a50ff05c3b9f30d3ccdd93acec3b1d7fdc07324ce4b92521c6b084496b3" already present on machine
  Normal   Created         27m                    kubelet            Created container container-disk-binary
  Normal   Started         27m                    kubelet            Started container container-disk-binary
  Warning  Failed          25m (x11 over 27m)     kubelet            Error: InvalidImageName
  Warning  InspectFailed   2m23s (x117 over 27m)  kubelet            Failed to apply default image tag "docker://quay.io/containerdisks/fedora:latest": couldn't parse image reference "docker://quay.io/containerdisks/fedora:latest": invalid reference format


The reason is the prefix "docker://" is added to the containerDisk.image, remove the prefix can get the VM into running.

VM yaml:
      volumes:
        - dataVolume:
            name: centos-stream9-o3vqvnprdkkv7r46
          name: rootdisk
        - cloudInitNoCloud:
            userData: |-
              #cloud-config
              user: centos
              password: tav1-3kn6-a0y6
              chpasswd: { expire: False }
          name: cloudinitdisk
        - containerDisk:
            image: 'docker://quay.io/containerdisks/centos-stream:9'
          name: installation-cdrom


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


How reproducible:


Steps to Reproduce:
1. select a template in catalog and click customize
2. select "Boot from CD" and select registry
3. fill other data and create the VM

Actual results:
VM is stucking at "starting"

Expected results:
VM is started

Additional info:

Comment 1 Guohua Ouyang 2023-05-10 06:06:31 UTC
verified on kubevirt-console-plugin-rhel9:v4.14.0-1195

Comment 10 errata-xmlrpc 2023-08-16 14:09:57 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 (Important: OpenShift Virtualization 4.13.3 Images security and bug fix 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:4664


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