Bug 46245

Summary: Ошибка при создании ресурса
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: linstor-clientAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: andy, shaba
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2023-05-24 16:09:09 MSK
Версия пакета:
linstor-client-1.18.0-alt1

Шаги воспроизведения:
# apt-get install linstor-controller linstor-client
# systemctl start linstor-controller
# linstor resource-definition create myres

Получаемый результат:
# linstor resource-definition create myres
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_dfn_cmds.py", line 230, in create
    replies = self._linstor.resource_dfn_create(
TypeError: Linstor.resource_dfn_create() got an unexpected keyword argument 'peer_slots'

Ожидаемый результат:
SUCCESS:
Description:
    New resource definition 'myres' created.
Details:
    Resource definition 'myres' UUID is: f1963ae6-f2f9-49b5-acbe-771441a3c27d

Не воспроизводится в p10 (linstor-client-1.15.1-alt1)
Comment 1 Alexander Makeenkov 2023-05-25 09:18:55 MSK
Не воспроизводится с новой версией python3-module-linstor-1.18.0-alt1