[Bug] Cluster pickers show config name instead of the renamed display name
Describe the bug
A cluster entry has two names: name (from the Add Cluster form, kept in the cluster config) and display_name (written by the sidebar Rename action, kept in the database). Rename never updates name, so once a cluster is renamed the two differ.
Most of the UI renders display_name || name. A handful of places render only name:
- Cross-Cluster Migration dialog: the Target Cluster dropdown and the Source VM header line
- Cross-cluster replication source/target selectors and the group settings cluster rows
- Site Recovery plan and replication views
- Multi-Cluster EVPN member picker and member list
- PBS linked-cluster selector
- Tenant cluster checkboxes and two cluster dropdowns in Settings
- The cluster switcher
Those views disagree with the sidebar for any renamed cluster. When several clusters also share the same name, the migration target dropdown becomes unusable: on my instance two entries both read pxve0 with nothing to distinguish them, and the Source VM line showed pxve0 for a cluster the sidebar calls pxve6011.
How three clusters ended up sharing name is a separate bug (the Add Cluster form keeps the previous submission's values when reopened), which I will file on its own. This issue is only about the label inconsistency, which is visible with a single renamed cluster.
Steps to Reproduce
- Add a cluster with Name
alpha. - Rename it in the sidebar (pencil icon) to
beta. - Open a VM on another cluster → Cross-Cluster Migrate → open the Target Cluster dropdown. It lists
alpha; the sidebar saysbeta.
Expected behavior
Every cluster picker and label shows the same name as the sidebar: display_name, falling back to name.
Environment
- PegaProx Version: 1.1.1
- Installation Method: Docker (official image, Swarm service)
- OS: Docker Swarm host on Proxmox VE; client on Nobara (latest)
- Browser: Firefox (latest)
- Behind Reverse Proxy? Traefik (no container ports published)
- UI? Modern Layout
Screenshots
-
before (two "pxve0" dropdown entries, source "pxve4 · pxve0")
-
after (pxve0 / pxve5 dropdown, source "pxve4 · pxve6011")
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [x] I am using the latest version of PegaProx
I have a fix ready (a shared clusterLabel() helper used at every affected label) and will open a PR referencing this issue.
Hi Drauku — sorry for the silence on this one, it got fixed and then nobody said so.
The list you wrote was the useful part: it's one cause, so instead of patching each view there's now a single clusterLabel() helper (display_name || name || id) and every one of those pickers goes through it — migration target + source line, replication, site recovery, EVPN member list, PBS selector, tenant checkboxes, the settings dropdowns and the switcher.
That's on Testing as c78f38e, so it ships with the next release, not 1.1.1. The Add Cluster form keeping the previous values (#788) is done as well.
If PegaProx is worth something to you, https://opencollective.com/pegaprox is where it helps.
Marcus
This went out with 1.2.0. Clusters are labelled by their display name everywhere now, not the config name — pickers included.
Cheers, Marcus