Bug 46245 - Ошибка при создании ресурса
Summary: Ошибка при создании ресурса
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: linstor-client (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 16:09 MSK by Alexander Makeenkov
Modified: 2023-05-25 09:18 MSK (History)
2 users (show)

See Also:


Attachments

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