mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #211] [MERGED] [fix] client.CreateTemplate must wait for completion of job #311
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/211
Author: @mizhka
Created: 10/24/2022
Status: ✅ Merged
Merged: 10/26/2022
Merged by: @mleone87
Base:
master← Head:user/mizhka/long-convertion-fix📝 Commits (1)
dc03063[fix] client.CreateTemplate must wait for completion of job📊 Changes
1 file changed (+16 additions, -1 deletions)
View changed files
📝
proxmox/client.go(+16 -1)📄 Description
Before fix function client.CreateTemplate triggers creation of template instead of waiting of template creation. The patch adds wait for job completion.
The original problem is packer failures. Packer converts VM to template and set new name and description. As of now, client.CreateTemplate returns result immediately and Packer tries to set name. But VM is locked by template creation job. If template creation is longer than 10 seconds, then call to set name is timed out, Packer gets error and fails whole build.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.