mirror of
https://github.com/Corsinvest/cv4pve-api-php.git
synced 2026-04-25 04:25:48 +03:00
[GH-ISSUE #17] Error on Resize #15
Labels
No labels
enhancement
needs investigation
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-api-php#15
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?
Originally created by @Nevercold on GitHub (Dec 4, 2021).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-api-php/issues/17
Hey,
I have some problems with resizing a hard disk.
e.g.
$disk = 10;
$host_name = "server01"; (ServerName)
$service_id = "100"; (VM ID)
$request = $proxmox->getNodes()->get($host_name)->getQemu()->get($service_id)->getResize()->resizeVm("scsi0", "+".$disk ."G");Resizing does not work with the shown command, the error message just says "null". everything else works, with the same data.
I also get this error (sometimes).
161 =
if(!$request->isSuccessStatusCode()) return ...Please help.
@franklupo commented on GitHub (Dec 6, 2021):
Hi,
I check the problem and update you.
Best regards
@Nevercold commented on GitHub (Dec 6, 2021):
I've tested a bit, the error occurs after the VM is created or cloned. Adjust the configuration is still possible.
The error does not occur if I do it afterwards. Strange.
@franklupo commented on GitHub (Dec 6, 2021):
Ok,
from web interface work correctly?
@Nevercold commented on GitHub (Dec 6, 2021):
yea.
@franklupo commented on GitHub (Dec 6, 2021):
???
@Nevercold commented on GitHub (Dec 6, 2021):
Everything works perfectly from the web interface (pve-7.1)
@franklupo commented on GitHub (Dec 6, 2021):
Ok,
You can reporduce erorr from api?
@Nevercold commented on GitHub (Dec 6, 2021):
=> VM is cloned (task finished)
=> VM disk is resized (error)
If I would do updateVmAsync() before resize, that would work too, only resize doesn't work.
@franklupo commented on GitHub (Dec 6, 2021):
The same step in web Gui work correctly?
Best reagards
@Nevercold commented on GitHub (Dec 6, 2021):
Strange. Yesterday I tried it, everything went perfectly via the web interface...
Today I try it, comes a timeout error. So apparently Proxmox needs time after the clone.
Running Resize again then worked. Facepalm.
command '/usr/bin/qemu-img resize -f qcow2 /var/lib/vz/images/1004/vm-1004-disk-0.qcow2 3221225472' failed: got timeout (500)
@Nevercold commented on GitHub (Dec 6, 2021):
I'm adding a longer sleep in a moment, and testing again.
@franklupo commented on GitHub (Dec 6, 2021):
Thank you so much you are doing a great job improving this library
@Nevercold commented on GitHub (Dec 6, 2021):
Error found. With a sleep of 20 seconds it works.
@franklupo commented on GitHub (Dec 6, 2021):
I have updated the library. Can you test if ok?
Bets regards
@Nevercold commented on GitHub (Dec 6, 2021):
Have already updated, it seems that everything works