Bug 1563299
Summary: | upload tickets have only [“write”] ops, so reading from the image will fail | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-imageio | Reporter: | Daniel Erez <derez> | ||||||
Component: | General | Assignee: | Nir Soffer <nsoffer> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Avihai <aefrat> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 1.1.0 | CC: | amureini, bthurber, bugs, derez, rjones, tnisan, ylavi | ||||||
Target Milestone: | ovirt-4.2.3 | Flags: | rule-engine:
ovirt-4.2+
ylavi: exception+ |
||||||
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: | 2018-05-10 06:33:51 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: | |||||||||
Attachments: |
|
Description
Daniel Erez
2018-04-03 14:29:02 UTC
Hi Daniel, Can you please provide a clear scenario in order to verify this bug . (In reply to Avihai from comment #1) > Hi Daniel, > > Can you please provide a clear scenario in order to verify this bug . This change means that an image transfer, created with direction upload, also supports random chunks download. This was specifically required to support qcow2 in virt-v2v integration (which uses qemu-img that needs to read the qcow2 header before writing). For verification: * Create a new image transfer with 'types.ImageTransferDirection.UPLOAD'. * Use PUT requests to upload data. * Use GET requests to download data. Both directions should be permitted. (In reply to Daniel Erez from comment #2) > (In reply to Avihai from comment #1) > > Hi Daniel, > > > > Can you please provide a clear scenario in order to verify this bug . > > This change means that an image transfer, created with direction upload, > also supports random chunks download. This was specifically required to > support qcow2 in virt-v2v integration (which uses qemu-img that needs to > read the qcow2 header before writing). > For verification: > * Create a new image transfer with 'types.ImageTransferDirection.UPLOAD'. > * Use PUT requests to upload data. > * Use GET requests to download data. > Both directions should be permitted. So in the current upload script for each PUT request I need to add a GET request as well , can you please provide with an example script ? I appended a script executing upload with PUT & GET, will this do ? Created attachment 1425294 [details]
upload_put_get_combined_script
(In reply to Avihai from comment #3) > (In reply to Daniel Erez from comment #2) > > (In reply to Avihai from comment #1) > > > Hi Daniel, > > > > > > Can you please provide a clear scenario in order to verify this bug . > > > > This change means that an image transfer, created with direction upload, > > also supports random chunks download. This was specifically required to > > support qcow2 in virt-v2v integration (which uses qemu-img that needs to > > read the qcow2 header before writing). > > For verification: > > * Create a new image transfer with 'types.ImageTransferDirection.UPLOAD'. > > * Use PUT requests to upload data. > > * Use GET requests to download data. > > Both directions should be permitted. > > So in the current upload script for each PUT request I need to add a GET > request as well , can you please provide with an example script ? > > I appended a script executing upload with PUT & GET, will this do ? looks ok, just no need to loop over all chunks, a single chunk is enough for checking. Verified at ovirt-imageio-proxy-1.3.0, ovirt-imageio-daemon-1.3.0. Both PUT & GET works well with 1.3 imageio proxy/daemon, from image-proxy.log: Thread-3 ) INFO 2018-04-22 15:56:30,957 web:95:web:(log_start) START [10.35.4.178] GET /images/8d97b711-f517-456c-a641-b37a5b138b06 (Thread-3 ) INFO 2018-04-22 15:56:30,959 connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn) Starting new HTTPS connection (1): storage-ge8-vdsm3.scl.lab.tlv.redhat.com (Thread-3 ) INFO 2018-04-22 15:56:30,995 web:102:web:(log_finish) FINISH [10.35.4.178] GET /images/8d97b711-f517-456c-a641-b37a5b138b06: [200] 11811160064 (0.04s) Created attachment 1425326 [details]
used_script
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |