Bug 54133

Summary: /api/nvmeof/{subsystem,gateway}: 400 Bad Request
Product: Sisyphus Reporter: Artem Varaksa <varaksaaa>
Component: cephAssignee: maks1ms <maks1ms>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: maks1ms
Version: unstable   
Hardware: x86_64   
OS: Linux   
Attachments:
Description Flags
ceph log none

Description Artem Varaksa 2025-05-05 13:34:59 MSK
Created attachment 18375 [details]
ceph log

Шаги
====

1. Настроить кластер ceph и на первой ноде:
# apt-get install -y ceph-mgr-dashboard
# ceph mgr module enable dashboard (с --force если https://bugzilla.altlinux.org/50698)
# systemctl restart ceph-mgr@ceph-hosta.service
# echo 12345678 > passwd && ceph dashboard ac-user-create cephadmin -i passwd administrator
# ceph config set mgr mgr/dashboard/ssl false
# echo "http://$(hostname -i):8080"

2. Открыть http://<ip>:8080, авторизоваться cephadmin/12345678, перейти в Block > NVMe/TCP

3. Необязательно: переключать вкладки Subsystems <-> Gateway

Фактический результат
=====================

Вкладки отображаются корректно, но они пустые, идёт загрузка/обновление, и отображается уведомление:

> Failed to execute unknown task
> Unable to retrieve the gateway info: cannot unpack non-iterable NoneType object

В консоли браузера ошибки:

> /api/nvmeof/subsystem: 400 Bad Request
> /api/nvmeof/gateway: 400 Bad Request

Логи ceph при попытке доступа к вкладкам прикреплены.

Ожидаемый результат
===================

Нет ошибок.

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ceph-19.2.2-alt1.x86_64
ALT Server 11.0 beta 20250213 x86_64

[p11+377171] ceph-19.2.2-alt1.x86_64
ALT Server 11.0 beta 20250213 x86_64

[p11] ceph-19.2.2-alt1.x86_64
ALT Server 11.0 beta 20250213 x86_64