Bug 1348993 - ovirt-imageio-proxy not working - unable to upload
Summary: ovirt-imageio-proxy not working - unable to upload
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-imageio-proxy
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.0.2
: 4.0.2
Assignee: Amit Aviram
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks: 1328837 1343077
TreeView+ depends on / blocked
 
Reported: 2016-06-22 12:59 UTC by Natalie Gavrielov
Modified: 2019-04-28 13:39 UTC (History)
14 users (show)

Fixed In Version: v4.18.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-25 12:44:22 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm and engine logs (668.81 KB, application/x-gzip)
2016-06-22 12:59 UTC, Natalie Gavrielov
no flags Details
chrome.log, engine.log, image-proxy.log, vdsm.log (1.17 MB, application/x-gzip)
2016-06-26 08:04 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 58668 0 'None' MERGED setup: Store address of Image Proxy in database 2020-10-13 15:44:59 UTC
oVirt gerrit 59696 0 'None' MERGED build: support imageio in rhev 2020-10-13 15:44:59 UTC
oVirt gerrit 59799 0 'None' MERGED build: support imageio in rhev 2020-10-13 15:44:59 UTC

Description Natalie Gavrielov 2016-06-22 12:59:21 UTC
Created attachment 1170743 [details]
vdsm and engine logs

Description of problem:

Unable to upload any files (disks).

Version-Release number of selected component:
rhevm-4.0.0.5-0.1.el7ev.noarch
vdsm-4.18.3-0.el7ev.x86_64
ovirt-imageio-proxy-0.3.0-0.201606191345.git9f3d6d4.el7.centos.noarch
ovirt-imageio-daemon-0.2.1-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install engine and vdsm on hosts.
2. Engine side:
   2.1. yum install ovirt-imageio-proxy
   2.2. engine-setup
   2.3. Change value in DB: 
        UPDATE vdc_options SET option_value=    
        'ngavrilo1.scl.lab.tlv.redhat.com:54323'
        WHERE option_name = 'ImageProxyAddress';  (restart engine)
3. Host (vdsm):
   3.1. yum install ovirt-imageio-daemon
   3.2. service ovirt-imageio-daemon start

4. Browser side (Chrome):
   4.1. Download: https://ngavrilo1.scl.lab.tlv.redhat.com/ovirt-
      engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA
   4.2. go to setting -> manage certificates -> Authorities -> import -> 
        (choose the downloaded file) -> mark every checkbox -> done
5. Try to upload a file/disk.

Actual results:
Upload is "paused by system".

Expected results:
File should be uploaded.

Comment 1 Amit Aviram 2016-06-23 13:28:32 UTC
Can you please also attach proxy and chrome logs?

Comment 2 Natalie Gavrielov 2016-06-26 08:04:28 UTC
Created attachment 1172454 [details]
chrome.log, engine.log, image-proxy.log, vdsm.log

Comment 3 Yaniv Lavi 2016-06-28 15:06:56 UTC
Should this be on 4.0.2?

Comment 4 Amit Aviram 2016-06-29 09:08:52 UTC
Yes.

Comment 5 Allon Mureinik 2016-07-27 20:44:58 UTC
Amit - shouldn't we respin ovirt-imageio to contain this fix?

Comment 6 Amit Aviram 2016-07-28 10:39:58 UTC
No, The current version contains this fix.

Comment 9 Natalie Gavrielov 2016-08-02 15:04:17 UTC
Scenario changed a bit: now there is no need to change any values in the DB, 
and on host's side it's enough to install vdsm.

Verified:
vdsm-4.18.9-1.el7ev.x86_64
ovirt-imageio-daemon-0.3.0-0.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
rhevm-4.0.2.3-0.1.el7ev.noarch
ovirt-imageio-proxy-0.3.0-0.el7ev.noarch

Comment 10 Allon Mureinik 2016-08-25 12:44:22 UTC
The fix for this issue was included in RHV 4.

Comment 11 Alessandro Silva 2017-01-05 16:29:25 UTC
Remains in 4.0.5
Error message in the webUI when I tried to upload:

Unable to upload image to disk 6c844b2d-e864-4e1b-8c34-7c3199f64da7 due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser.


ENGINE.LOG

2017-01-05 14:18:00,529 INFO  [org.ovirt.engine.core.bll.storage.disk.image.UploadImageStatusCommand] (default task-58) [39315b8b] Running command: UploadImageStatusCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_DISK with role type USER
2017-01-05 14:18:04,795 INFO  [org.ovirt.engine.core.bll.storage.disk.image.UploadImageStatusCommand] (default task-72) [56bd66ba] Running command: UploadImageStatusCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_DISK with role type USER
2017-01-05 14:18:06,415 INFO  [org.ovirt.engine.core.bll.storage.disk.image.UploadImageStatusCommand] (default task-83) [42b85aca] Running command: UploadImageStatusCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_DISK with role type USER
2017-01-05 14:18:06,416 INFO  [org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand] (default task-83) [42b85aca] Updating image upload 143150ce-68e4-4ed4-8ae5-1b34a90cbb67 (image 6c844b2d-e864-4e1b-8c34-7c3199f64da7) phase to Paused by System (message: 'Sent 0MB')
2017-01-05 14:18:06,428 WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-83) [42b85aca] Correlation ID: 42b85aca, Call Stack: null, Custom Event ID: -1, Message: Unable to upload image to disk 6c844b2d-e864-4e1b-8c34-7c3199f64da7 due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser.
2017-01-05 14:18:08,630 INFO  [org.ovirt.engine.core.bll.storage.disk.image.UploadImageStatusCommand] (default task-85) [17f62f09] Running command: UploadImageStatusCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_DISK with role type USER


Note You need to log in before you can comment on or make changes to this bug.