Bug 54133 - /api/nvmeof/{subsystem,gateway}: 400 Bad Request
Summary: /api/nvmeof/{subsystem,gateway}: 400 Bad Request
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: ceph (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: maks1ms@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-05 13:34 MSK by Artem Varaksa
Modified: 2025-05-05 13:34 MSK (History)
1 user (show)

See Also:


Attachments
ceph log (3.88 KB, text/x-log)
2025-05-05 13:34 MSK, Artem Varaksa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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