1 Commits

Author SHA1 Message Date
0d85368852 11.0.4 2026-07-22 15:01:36 +03:00
3 changed files with 13 additions and 8 deletions

View File

@@ -1,11 +1,11 @@
# Список изменений в версии 11.0.3 # Список изменений в версии 11.0.4
## Добавлено ## Добавлено
## Удалено ## Удалено
## Исправлено ## Исправлено
### Модуль decort_k8s ### Модуль decort_vm
| Идентификатор<br>задачи | Описание | | Идентификатор<br>задачи | Описание |
| --- | --- | | --- | --- |
| BANS-1208 | Модуль завершал работу ошибкой запроса к API при попытке модуля пересоздать группу воркеров. | | BANS-1333 | Модуль завершал работу ошибкой при передаче параметров `disks` и `boot` для существующей ВМ. |

View File

@@ -1637,12 +1637,17 @@ class decort_vm(DecortController):
f'disk {aparam_boot_disk_id} is not attached to ' f'disk {aparam_boot_disk_id} is not attached to '
f'Compute ID {self.comp_id}.' f'Compute ID {self.comp_id}.'
) )
else: elif aparam_boot_disk_id is not None:
aparam_disk_ids = []
if aparam_disks['objects']:
aparam_disk_ids = [
disk['id'] for disk in aparam_disks['objects']
]
match aparam_disks['mode']: match aparam_disks['mode']:
case 'update': case 'update':
if ( if (
aparam_boot_disk_id not in comp_disk_ids aparam_boot_disk_id not in comp_disk_ids
and aparam_boot_disk_id not in aparam_disks['ids'] and aparam_boot_disk_id not in aparam_disk_ids
): ):
check_errors = True check_errors = True
self.message( self.message(
@@ -1651,7 +1656,7 @@ class decort_vm(DecortController):
f'to Compute ID {self.comp_id}.' f'to Compute ID {self.comp_id}.'
) )
case 'match': case 'match':
if aparam_boot_disk_id not in aparam_disks['ids']: if aparam_boot_disk_id not in aparam_disk_ids:
check_errors = True check_errors = True
self.message( self.message(
f'Check for parameter "boot.disk_id" failed: ' f'Check for parameter "boot.disk_id" failed: '
@@ -1659,7 +1664,7 @@ class decort_vm(DecortController):
f'disks.ids' f'disks.ids'
) )
case 'detach' | 'delete': case 'detach' | 'delete':
if aparam_boot_disk_id in aparam_disks['ids']: if aparam_boot_disk_id in aparam_disk_ids:
check_errors = True check_errors = True
self.message( self.message(
f'Check for parameter "boot.disk_id" failed: ' f'Check for parameter "boot.disk_id" failed: '

View File

@@ -43,7 +43,7 @@ class DecortController(object):
_api: sdk_types.API | None = None _api: sdk_types.API | None = None
_usermanager_whoami_result: None | dict = None _usermanager_whoami_result: None | dict = None
ANSIBLE_MODULES_VERSION = '11.0.3' ANSIBLE_MODULES_VERSION = '11.0.4'
COMPATIBLE_SDK_MINOR_VERSION = '1.4' COMPATIBLE_SDK_MINOR_VERSION = '1.4'
VM_RESIZE_NOT = 0 VM_RESIZE_NOT = 0