Open mas-who opened 11 months ago
@MusicDin this has been reported from our LXD UI team so would be good to take a look and evaluate.
@MusicDin please can you look at this one as your next bug, as if we need to change the API behaviour to make it consistent then we need to do so before LXD 5.21 LTS is released.
Required information
Issue description
The api endpoints for updating a volume
PUT /1.0/storage-pools/{poolName}/volumes/{type}/{volumeName}
and updating a volume snapshotPUT /1.0/storage-pools/{poolName}/volumes/{type}/{volumeName}/snapshots/{snapshotName}
are synchronous at the moment. Making a request to either endpoint results in the below successful response:This seems to be inconsistent with other API endpoints which typically results in asynchronous operations. This is concerning since it may result in long and blocking operations on the server. Suggestion is to make these endpoints asynchronous.