-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proxmox_virtual_environment_file broken #521
Comments
Hey @dawidole! 👋🏼 Thanks for the report! Although I can't reproduce this issue in my LAB, I suspect this is something to do with availability of a task that PVE creates to handle the uploaded file: Task ID is returned back to the provider in the response to file upload, but when provider checks status of the task, PVE replies with "no such task" 😕 I'll make a quick fix to simply retry the operation in this case. |
@all-contributors please add @dawidole for bug |
I've put up a pull request to add @dawidole! 🎉 |
I've just upgraded from 0.30.1 to 0.30.2 and I'm still seeing the issue when trying to upload an ISO to Proxmox 8.0.4 Code:
Init output:
Plan output:
Result
|
Hmmm... that's interesting. @GJKrupa How big is your file? |
The file is around 85MB. It's being downloaded over a 1Gbit broadband link and transferred to a Synology NAS over GigE. I've tried uploading the same file from the laptop instead of downloading from GitHub but I see the same error. There is a Copy Data task being created and it's running to completion after Terraform exits. I've compared the UID in the TF_LOG=DEBUG output to the ProxMox console and they match. I noticed that the task doesn't show up in the console sometimes until a second or so after Terraform errors out but that could just be due to latency in the polling. What I did just find out is that the apply succeeds if the target node is the same as the provider endpoint and fails if it's a different node. The task is different in these cases. In both instances it loads the image to the endpoint node first but then it either does a cp or an scp to get it to the final location depending on where the target of the upload is. For my use case I can work around it by changing the node since it's using shared storage but will fail if, for example, I was trying to distribute a file into local storage on multiple nodes. |
I've tried the above comparison with local storage and the behaviour is the same - fails if it's copying to another node, succeeds if it's on the same node. |
Those are important details, thanks for the testing @GJKrupa! @all-contributors please add @GJKrupa for test |
I've put up a pull request to add @thanks! 🎉 I've put up a pull request to add @GJKrupa! 🎉 |
I had to grant the role I was using for my API token the Two other thoughts:
|
No, unfortunately. So far, most of my testing is done under the
@zimmertr, thanks a lot for the good words! ❤️ This is purely a hobby / free time project, and any support and encouragement means a lot to me :) |
Describe the bug
An attempt to create proxmox_virtual_environment_file resource, specifically
ends up with crashed plugin when using provider newer than v0.28.0. I believe this commit brokes it:
f901e71
To Reproduce
Steps to reproduce the behavior:
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
Resource would be created :)
Working example, v0.28.0:
broken, v0.30.1:
The text was updated successfully, but these errors were encountered: