Bug 53226

Summary: linstor-client падает при добавлении группы ресурсов на pve-cluster
Product: Branch p11 Reporter: Белая Алёна <belayaav>
Component: linstorAssignee: Andrew Vasilyev <andy>
Status: NEW --- QA Contact: qa-p11 <qa-p11>
Severity: normal    
Priority: P5 CC: amakeenk
Version: unspecified   
Hardware: x86_64   
OS: Linux   

Description Белая Алёна 2025-02-25 19:39:44 MSK
версия пакета: 
linstor-common-1.29.1-alt1
linstor-client-1.23.2-alt1

В качестве сервера использован Альт Виртуализация minimal

Разворачивался кластер pve из 3 машин, хранилище ceph. При необходимости могу предоставить инструкцию для разворачивания, прошу уточнить.

Cluster information
-------------------
Name:             pve
Config Version:   3
Transport:        knet
Secure auth:      on

Quorum information
------------------
Date:             Tue Feb 25 19:31:01 2025
Quorum provider:  corosync_votequorum
Nodes:            3
Node ID:          0x00000001
Ring ID:          1.45
Quorate:          Yes

Votequorum information
----------------------
Expected votes:   3
Highest expected: 3
Total votes:      3
Quorum:           2  
Flags:            Quorate 

Membership information
----------------------
    Nodeid      Votes Name
0x00000001          1 xx.xx.xx.xx (local)
0x00000002          1 xx.xx.xx.xx
0x00000003          1 xx.xx.xx.xx


При разворачивании PVE кластера команда добавления группы ресурсов завершается ошибкой:

# linstor resource-group create defaultpool --storage-pool data --place-count 1 && linstor vg c defaultpool

Traceback (most recent call last):
  File "/usr/bin/linstor", line 24, in <module>
    linstor_client_main.main()
  File "/usr/lib/python3/site-packages/linstor_client_main.py", line 691, in main
    LinStorCLI().run()
  File "/usr/lib/python3/site-packages/linstor_client_main.py", line 656, in run
    rc = self.parse_and_execute(sys.argv[1:])
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/linstor_client_main.py", line 366, in parse_and_execute
    rc = args.func(args)
         ^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/linstor_client/commands/rsc_grp_cmds.py", line 266, in create
    replies = self._linstor.resource_group_create(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Linstor.resource_group_create() got an unexpected keyword argument 'x_replicas_on_different'

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

SUCCESS:
Description:
    New resource group 'defaultpool' created.
Details:
    Resource group 'defaultpool' UUID is: xxxxxxxxxxxxxxxxxxxxxx
SUCCESS:
    New volume group with number '0' of resource group 'defaultpool' created.


Обновилась до Sisyphus (версии пакетов linstor-common-1.30.4-alt1, linstor-client-1.24.0-alt1), там ошибка не воспроизводится.
Comment 1 Andrew Vasilyev 2025-02-25 22:28:35 MSK
https://git.altlinux.org/tasks/376096/
Comment 2 Alexander Makeenkov 2025-03-18 09:31:36 MSK
Ошибка воспроизводится и без PVE.
Задание 376096 исправляет проблему.