fix: wait for Proxmox resize task before VM start (v1.2.0)

- configure_vm: capture resize UPID and call wait_for_task(120s)
  before returning; prevents lock conflict when VM is started right
  after disk resize
- resize_vm_disk / resize_container_disk (x2): same fix applied
- remove unnecessary restart_vm() after manual QEMU disk resize —
  resize is a storage-layer operation and does not require a reboot;
  the auto-restart was causing a second lock conflict

Fixes: can't lock file '/var/lock/qemu-server/lock-xxx.conf' - got timeout
Fixes: command '/usr/bin/qemu-img resize' failed: got timeout
This commit is contained in:
markmorado
2026-03-16 20:23:06 +01:00
parent bd1777f67b
commit 4ef79112be
15 changed files with 342 additions and 156 deletions

View File

@@ -208,6 +208,7 @@
"full_name": "Full Name",
"email": "Email",
"change_password": "Change Password",
"change_credentials": "Change Credentials",
"current_password": "Current Password",
"new_password": "New Password",
"confirm_password": "Confirm Password",
@@ -1147,5 +1148,43 @@
"workspace_name_required": "Enter workspace name",
"failed_to_load_workspace": "Failed to load workspace data",
"failed_to_save": "Failed to save",
"failed_to_delete": "Failed to delete"
"failed_to_delete": "Failed to delete",
"action_executed_successfully": "Action executed successfully",
"are_you_sure_delete": "Are you sure you want to delete",
"are_you_sure_to": "Are you sure you want to",
"assign_user": "Assign User",
"auto": "Auto",
"cancelled": "Cancelled",
"cannot_detect_proxmox_node": "Cannot detect Proxmox node",
"command_sent_successfully": "Command sent successfully",
"config_saved_successfully": "Configuration saved successfully",
"container": "container",
"dashboard": "Dashboard",
"delete_network": "Delete Network",
"delete_resource": "Delete Resource",
"deleted_successfully": "deleted successfully",
"enter_repository_url": "Enter repository URL",
"error_loading_data": "Error loading data",
"error_saving": "Error saving",
"failed_to_execute_command": "Failed to execute command",
"failed_to_load_server_data": "Failed to load server data",
"failed_to_update_server": "Failed to update server",
"id_mismatch_cancelled": "ID mismatch. Deletion cancelled.",
"input_required": "Input Required",
"ip_allocated_successfully": "IP allocated successfully",
"ip_released_successfully": "IP released successfully",
"lxc_template": "LXC Template",
"network_created_successfully": "Network created successfully",
"network_deleted_successfully": "Network deleted successfully",
"no_owner": "No owner",
"no_servers": "No servers",
"notification": "Notification",
"reinstall_error": "Reinstall error",
"reinstall_started": "Reinstall started. VM will be available in a few minutes.",
"release_ip": "Release IP",
"select_all": "Select all",
"send": "Send",
"server_updated_successfully": "Server updated successfully",
"update_check_disabled": "Update check disabled",
"virtual_machine": "virtual machine"
}

View File

@@ -208,6 +208,7 @@
"full_name": "Полное имя",
"email": "Email",
"change_password": "Изменить пароль",
"change_credentials": "Изменить учётные данные",
"current_password": "Текущий пароль",
"new_password": "Новый пароль",
"confirm_password": "Подтвердите пароль",
@@ -1147,5 +1148,43 @@
"workspace_name_required": "Введите название workspace",
"failed_to_load_workspace": "Не удалось загрузить данные workspace",
"failed_to_save": "Не удалось сохранить",
"failed_to_delete": "Не удалось удалить"
"failed_to_delete": "Не удалось удалить",
"action_executed_successfully": "Действие успешно выполнено",
"are_you_sure_delete": "Вы уверены, что хотите удалить",
"are_you_sure_to": "Вы уверены, что хотите",
"assign_user": "Назначить пользователя",
"auto": "Авто",
"cancelled": "Отменено",
"cannot_detect_proxmox_node": "Не удалось определить ноду Proxmox",
"command_sent_successfully": "Команда успешно отправлена",
"config_saved_successfully": "Конфигурация сохранена успешно",
"container": "контейнер",
"dashboard": "Главная",
"delete_network": "Удалить сеть",
"delete_resource": "Удаление ресурса",
"deleted_successfully": "успешно удалён",
"enter_repository_url": "Введите URL репозитория",
"error_loading_data": "Ошибка загрузки данных",
"error_saving": "Ошибка сохранения",
"failed_to_execute_command": "Не удалось выполнить команду",
"failed_to_load_server_data": "Ошибка загрузки данных сервера",
"failed_to_update_server": "Ошибка обновления сервера",
"id_mismatch_cancelled": "ID не совпадает. Удаление отменено.",
"input_required": "Обязательное поле",
"ip_allocated_successfully": "IP успешно выделен",
"ip_released_successfully": "IP успешно освобождён",
"lxc_template": "LXC шаблон",
"network_created_successfully": "Сеть успешно создана",
"network_deleted_successfully": "Сеть успешно удалена",
"no_owner": "Не назначен",
"no_servers": "Нет серверов",
"notification": "Уведомление",
"reinstall_error": "Ошибка переустановки",
"reinstall_started": "Переустановка запущена. VM будет доступна через несколько минут.",
"release_ip": "Освободить IP",
"select_all": "Выбрать все",
"send": "Отправить",
"server_updated_successfully": "Сервер успешно обновлён",
"update_check_disabled": "Проверка обновлений отключена",
"virtual_machine": "виртуальная машина"
}