Bug 59796 - Виджет репозиториев всегда «No repository is enabled» — рассинхрон handle'ов с pve-rs
Summary: Виджет репозиториев всегда «No repository is enabled» — рассинхрон handle'ов ...
Status: RESOLVED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: proxmox-widget-toolkit (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: darisishe@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-10 16:02 MSK by Yuriy Khachaturyan
Modified: 2026-07-16 00:18 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Khachaturyan 2026-07-10 16:02:04 MSK
Версии: p11/branch; proxmox-widget-toolkit-5.2.3-alt1, libpve-rs-perl-0.15.3-alt4, pve-manager-9.2.3-alt1.

После обновления PVE 9.1 → 9.2 страница Node → Updates → Repositories на всех узлах показывает критическую ошибку «No repository is enabled, you do not get any updates!», хотя classic-репозитории p11/branch (x86_64 + noarch) включены и apt-get update отрабатывает без ошибок.

Причина — рассинхрон идентификаторов standard-repos между бэкендом и фронтендом:

pve-rs (libpve-rs-perl-0.15.3-alt4): GET /nodes/<node>/apt/repositories отдаёт handle'ы через дефис: "classic-arch-specific", "classic-noarch", "gostcrypto";
proxmox-widget-toolkit-5.2.3-alt1: в updateStandardRepos() сравнение с подчёркиванием: handle === 'classic_arch_specific' / 'classic_noarch' (proxmoxlib.js, ~строки 8984 и 21077).
Сравнение никогда не истинно → флаги classicArchSpecificRepo/classicNoarchRepo остаются пустыми → updateState() всегда уходит в ветку addCritical('No repository is enabled…'). На 9.1 написания совпадали, статус был корректный.

Воспроизведение: установить pve-manager 9.2.3-alt1 из p11/branch с включёнными classic x86_64+noarch → открыть Node → Updates → Repositories.
Ожидается: «You get supported updates for PVE».
Фактически: критический статус «No repository is enabled, you do not get any updates!».

Затронут также proxmox-backup-server 4.2.0.1-alt1 (виджет общий).

Фикс: привести написание к одному виду с любой стороны. Если правкой JS — только строковые литералы: в файле есть одноимённые голые переменные (let classic_arch_specific и т.д.), глобальная замена ломает парсинг всего proxmoxlib.js.
Comment 1 Dmitry Maksimenkov 2026-07-15 12:11:42 MSK
Проверялось в Sisyphus, ошибка воспроизводится.

Версии:
proxmox-widget-toolkit-5.2.3-alt1
libpve-rs-perl-0.15.3-alt4
pve-manager-9.2.3-alt1

Система:
ALT Server 11.1 (обновлено до Sisyphus)

Дополнительно:
* Воспроизводится в p11 на версиях
proxmox-widget-toolkit-5.2.3-alt1
libpve-rs-perl-0.15.3-alt4
pve-manager-9.2.3-alt1
Comment 2 Repository Robot 2026-07-16 00:18:12 MSK
proxmox-widget-toolkit-5.2.3-alt2 -> sisyphus:

Thu Jul 16 2026 Sergey Konev <darisishe@altlinux> 5.2.3-alt2
- apt: match ALT standard repository handles with dashes (Closes: 59796)