Bug 1344285
| Summary: | Fail fast on not-valid QCOW image upload | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Amit Aviram <aaviram> |
| Component: | Backend.Core | Assignee: | Amit Aviram <aaviram> |
| Status: | CLOSED WONTFIX | QA Contact: | Natalie Gavrielov <ngavrilo> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | future | CC: | amureini, bugs, nsoffer, ylavi |
| Target Milestone: | --- | Flags: | sbonazzo:
ovirt-4.0.z-
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-18 12:12:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Amit Aviram
2016-06-09 10:39:13 UTC
Tentatively targetting to 4.0 Since we did not implement this the engine yet, I think we should implement this on the client side first, see bug 1357548. Failing in the backend is relevant to upload via REST - however it is not clear how this can work. When uploading via REST, we are not controlling the order or the size the chunks. The user may send the entire image in one chunk, or send multiple requests (e.g. one request from 0 to size/2, second request from size/2 to end). Another case is resuming an upload, the user may send the last part of the image, keeping the original header on storage. In this case there is no way to verify the image properties before the user tell us to finalize the upload. We can always validate the current header of the image, regardless of what the user uploaded, but we need to know when the image is ready for verification - maybe we can add an api to verify the image, so the user can trigger this verification itself, saving pointless upload. After having Bug 1357548, I don't see the point implementing this: - The webadmin will block an image with a wrong type before even starting the upload process. - upload using API doesn't guarantee the order of the chunks chosen to upload, so the engine can't know when to verify it. Theoretically the header of the image can be the last part of the upload being made. Allon, any rejections for closing this bug? (In reply to Amit Aviram from comment #4) > After having Bug 1357548, I don't see the point implementing this: > > - The webadmin will block an image with a wrong type before even starting > the upload process. > > - upload using API doesn't guarantee the order of the chunks chosen to > upload, so the engine can't know when to verify it. Theoretically the header > of the image can be the last part of the upload being made. > > Allon, any rejections for closing this bug? Agreed, closing. |