Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-28367

[2189744] VM created from CD source registry cannot be started due to InvalidImageName

XMLWordPrintable

    • Medium
    • None

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

      1. oc get pod
        NAME READY STATUS RESTARTS AGE
        virt-launcher-fedora-b26b3myg8m6h5ykt-mvtfn 0/2 Init:InvalidImageName 0 30m
      1. 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:

              upalatuc@redhat.com Ugo Palatucci
              gouyang1@redhat.com Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: