Skip to content

VM create form: cannot add a disk until the page is refreshed once #36

@lexfrei

Description

Summary

On the VM create form, the "add disk" control does not work until the page is refreshed once. After a fresh navigation to the form, attempting to add a disk fails; a single manual page reload makes it work.

Reported on v1.4.2. The VM disk form has since been reworked substantially on main (see below), so this may already be resolved — this issue exists to pin the exact symptom and confirm it against current main before closing.

What changed since the report

The disk handling that shipped in v1.4.2 (VMDiskWidget, a one-shot useK8sList on mount with no refetch) has been replaced and hardened on main:

Those fixes target disk selection state. The reported symptom is about adding a disk array item (the array "+ Add" interaction) being unavailable until a refresh, which is a distinct facet — possibly already covered by the stale-RJSF-state fix, but not confirmed.

Repro / verification needed

  1. Fresh-navigate to the VM create form on current main.
  2. Without refreshing, try to add a disk.
  3. Confirm whether it works, or still requires one page reload.

If it still reproduces, narrow it to the array-field add interaction in SchemaForm and fix; if not, close as resolved by the SchemaForm rework.

Source

A user on v1.4.2 reported needing to refresh the page once before being able to add a disk to a VM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/formsIssues or PRs related to RJSF schema forms and widgets (backup, external-ips, storage-class, etc.)area/vmIssues or PRs related to virtual machines — VNC console, VM tabs, kubevirt integrationkind/bugCategorizes issue or PR as related to a bugpriority/backlogGeneral backlog priority. Lower than priority/important-longterm

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions