Proxmox API will return OK while the task actually failed

layer7.net

Member
Oct 5, 2021
41
3
13
23
Hi,

when using ceph, the removal of an RBD volume might take a moment. Thats natural as ceph will remove the data.

The problem is: When you are doing multiple actions ( no matter if its create or remove of RBD volumes ) -- like you do it when you create / destroy a VM then the different API processes will wait to acquire a lock to do their magic.

Unfortunatelly it happens ( reproduceable ) quiet easily, that a process will wait to acquire a cfs lock and after a while, will receive a timeout for this lock request and give up.

So far, the story is still fine ( even not nice ). But the problem is, that the status of this API task will actually become OK ( even its not ).

So the API will report back a success of the action, while this is actually not true. And thats a problem if you can not rely on a OK from the API.

It would be very nice if this could be improved.

Thank you & Greetings
Oliver
 

Attachments

  • Screenshot 2022-05-17 at 14.31.44.png
    Screenshot 2022-05-17 at 14.31.44.png
    40.6 KB · Views: 14
  • Screenshot 2022-05-17 at 14.31.54.png
    Screenshot 2022-05-17 at 14.31.54.png
    87.8 KB · Views: 14

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!