Skip to content

image option source offers golden images whose import failed #4553

Closed

Description

The VM image picker offers golden images whose import failed. imageProvider in pkg/registry/core/option/providers.go lists every PVC in cozy-public whose name starts with vm-default-images- and never looks at the DataVolume that owns it. CDI creates the PVC when the import starts, so the list includes images that are still importing and images whose DataVolume is in phase Failed.

A still-importing image is fine to offer: CDI holds a clone until the source is populated. A Failed one is not. Once #4392 lands, vm-disk refuses to render a new disk on a Failed golden and names the image, so a user who picks it from the list gets an error on create for an option the platform just offered.

The provider could read the vm-default-images-* DataVolumes in cozy-public instead of the PVCs and skip those in phase Failed.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/virtualizationIssues or PRs related to virtualization (kubevirt, cdi, vmi, vm-import)
    on Sep 28, 2026
  2. added a commit that references this issue on Oct 5, 2026
    6a98acb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/virtualizationIssues or PRs related to virtualization (kubevirt, cdi, vmi, vm-import)kind/bugCategorizes issue or PR as related to a bugtriage/needs-triageIndicates an issue needs triage by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions