[ovirt-users] Re: oVirt HE 4.2.6 - Cannot upload a QCOW2 disk image via oVirt Administration Portal

2018-10-15 Thread Aleksey Maksimov
Hello, Nir

Thank you, we will wait for the release of version 4.2.7.
And special thanks for the workaround.

PS: I was able to load the disk image after I converted it to RAW format
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EWXXF2MODQOTEDW5WTJS6HGZUP23XUSA/


[ovirt-users] Re: oVirt HE 4.2.6 - Cannot upload a QCOW2 disk image via oVirt Administration Portal

2018-10-15 Thread Nir Soffer
On Sun, Oct 14, 2018 at 7:02 AM Eyal Shenitzky  wrote:

> Adding Daniel and Nir.
> Can you please take a look?
>
> On Sat, Oct 13, 2018 at 8:48 PM Aleksey Maksimov <
> aleksey.i.maksi...@yandex.ru> wrote:
>
>> Hello, oVirt Team
>>
>> I have oVirt Hosted Engine 4.2.6.4-1.el7
>>
>> I cannot upload a QCOW2 disk image via oVirt Administration Portal
>> (Storage\Disks\Upload).
>> "Test Connection" in upload disk dialog works but the upload is changed
>> to "Paused by System" after upload ~8GB from 30GB disk
>>
>
This is bug https://bugzilla.redhat.com/1635830, introduced in 4.2.6.
Should be fixed in 4.2.7.

As a workaround, you can use upload_disk.py example from ovirt SDK instead
of the UI.

1. Install the ovirt SDK
yum install python-ovirt-engine-sdk4

2. download the upload_disk.py example
curl
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/upload_disk.py
> upload_disk.py

3. modify the script with your engine address, user and password, storage
domain etc.

4. copy the ovirt engine certificate on the host running this script
   on a host, you can use /etc/pki/vdsm/certs/cacert.pem

5. upload:

python upload_disk.py --direct /path/to/disk.qcow2

This way is also faster compared the UI.

Nir

-
>> Log from Hosted Engine:
>>
>> [root@KOM-OVIRT1 ~]# tail -f /var/log/ovirt-imageio-proxy/image-proxy.log
>>
>> (MainThread) INFO 2018-10-13 19:15:49,379 image_proxy:35:root:(main)
>> Server shut down, exiting
>> (MainThread) INFO 2018-10-13 19:15:50,807 image_proxy:26:root:(main)
>> Server started, successfully notified systemd
>> (Thread-2  ) INFO 2018-10-13 19:56:11,121
>> auth:187:auth2:(add_signed_ticket) Adding new ticket: > id=u'5438fcde-a614-4123-a2d5-f4fb067c6453', url=u'
>> https://kom-vm14.holding.com:54322' timeout=35997.87838792801 at
>> 0x7fa43b30e410>
>> (Thread-3  ) INFO 2018-10-13 19:56:14,160
>> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
>> Starting new HTTPS connection (1): kom-vm14.holding.com
>> (Thread-4  ) INFO 2018-10-13 19:56:18,209
>> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
>> Starting new HTTPS connection (1): kom-vm14.holding.com
>> ...
>> 
>> ...
>> (Thread-102) INFO 2018-10-13 20:02:26,311
>> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
>> Starting new HTTPS connection (1): kom-vm14.holding.com
>> (Thread-103) INFO 2018-10-13 20:02:26,339
>> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
>> Starting new HTTPS connection (1): kom-vm14.holding.com
>> (Thread-103) ERROR 2018-10-13 20:02:26,357 web:136:web:(log_error) ERROR
>> [10.160.0.142] PUT /images/5438fcde-a614-4123-a2d5-f4fb067c6453 [500]
>> Failed response from host: 500 {"explanation": "The server has either erred
>> or is incapable of performing the requested operation.", "code": 500,
>> "detail": "[Errno 22] Invalid argument", "title": "Internal Server Error"}
>> [request=0.027293]
>> Traceback (most recent call last):
>>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
>> line 99, in __call__
>> resp = self.dispatch(request, clock)
>>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
>> line 128, in dispatch
>> return method(*match.groups())
>>   File
>> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
>> 86, in wrapper
>> return func(self, *args)
>>   File
>> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
>> 59, in wrapper
>> ret = func(self, *args)
>>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
>> line 153, in put
>> read_timeout=self.config.imaged_read_timeout_sec)
>>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
>> line 239, in make_imaged_request
>> raise exc.status_map[imaged_resp.status_code](s)
>> HTTPInternalServerError: Failed response from host: 500 {"explanation":
>> "The server has either erred or is incapable of performing the requested
>> operation.", "code": 500, "detail": "[Errno 22] Invalid argument", "title":
>> "Internal Server Error"}
>> (Thread-104) INFO 2018-10-13 20:02:29,463
>> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
>> Starting new HTTPS connection (1): kom-vm14.holding.com
>> (Thread-104) ERROR 2018-10-13 20:02:29,475 web:136:web:(log_error) ERROR
>> [10.160.0.142] PUT /images/5438fcde-a614-4123-a2d5-f4fb067c6453 [500]
>> Failed response from host: 500 {"explanation": "The server has either erred
>> or is incapable of performing the requested operation.", "code": 500,
>> "detail": "[Errno 22] Invalid argument", "title": "Internal Server Error"}
>> [request=0.013473]
>> Traceback (most recent call last):
>>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
>> line 99, in __call__
>> resp = self.dispatch(request, clock)
>>   File 

[ovirt-users] Re: oVirt HE 4.2.6 - Cannot upload a QCOW2 disk image via oVirt Administration Portal

2018-10-13 Thread Eyal Shenitzky
Adding Daniel and Nir.
Can you please take a look?

On Sat, Oct 13, 2018 at 8:48 PM Aleksey Maksimov <
aleksey.i.maksi...@yandex.ru> wrote:

> Hello, oVirt Team
>
> I have oVirt Hosted Engine 4.2.6.4-1.el7
>
> I cannot upload a QCOW2 disk image via oVirt Administration Portal
> (Storage\Disks\Upload).
> "Test Connection" in upload disk dialog works but the upload is changed to
> "Paused by System" after upload ~8GB from 30GB disk
>
> -
> Log from Hosted Engine:
>
> [root@KOM-OVIRT1 ~]# tail -f /var/log/ovirt-imageio-proxy/image-proxy.log
>
> (MainThread) INFO 2018-10-13 19:15:49,379 image_proxy:35:root:(main)
> Server shut down, exiting
> (MainThread) INFO 2018-10-13 19:15:50,807 image_proxy:26:root:(main)
> Server started, successfully notified systemd
> (Thread-2  ) INFO 2018-10-13 19:56:11,121
> auth:187:auth2:(add_signed_ticket) Adding new ticket:  id=u'5438fcde-a614-4123-a2d5-f4fb067c6453', url=u'
> https://kom-vm14.holding.com:54322' timeout=35997.87838792801 at
> 0x7fa43b30e410>
> (Thread-3  ) INFO 2018-10-13 19:56:14,160
> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
> Starting new HTTPS connection (1): kom-vm14.holding.com
> (Thread-4  ) INFO 2018-10-13 19:56:18,209
> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
> Starting new HTTPS connection (1): kom-vm14.holding.com
> ...
> 
> ...
> (Thread-102) INFO 2018-10-13 20:02:26,311
> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
> Starting new HTTPS connection (1): kom-vm14.holding.com
> (Thread-103) INFO 2018-10-13 20:02:26,339
> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
> Starting new HTTPS connection (1): kom-vm14.holding.com
> (Thread-103) ERROR 2018-10-13 20:02:26,357 web:136:web:(log_error) ERROR
> [10.160.0.142] PUT /images/5438fcde-a614-4123-a2d5-f4fb067c6453 [500]
> Failed response from host: 500 {"explanation": "The server has either erred
> or is incapable of performing the requested operation.", "code": 500,
> "detail": "[Errno 22] Invalid argument", "title": "Internal Server Error"}
> [request=0.027293]
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
> line 99, in __call__
> resp = self.dispatch(request, clock)
>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
> line 128, in dispatch
> return method(*match.groups())
>   File
> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
> 86, in wrapper
> return func(self, *args)
>   File
> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
> 59, in wrapper
> ret = func(self, *args)
>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
> line 153, in put
> read_timeout=self.config.imaged_read_timeout_sec)
>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
> line 239, in make_imaged_request
> raise exc.status_map[imaged_resp.status_code](s)
> HTTPInternalServerError: Failed response from host: 500 {"explanation":
> "The server has either erred or is incapable of performing the requested
> operation.", "code": 500, "detail": "[Errno 22] Invalid argument", "title":
> "Internal Server Error"}
> (Thread-104) INFO 2018-10-13 20:02:29,463
> connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn)
> Starting new HTTPS connection (1): kom-vm14.holding.com
> (Thread-104) ERROR 2018-10-13 20:02:29,475 web:136:web:(log_error) ERROR
> [10.160.0.142] PUT /images/5438fcde-a614-4123-a2d5-f4fb067c6453 [500]
> Failed response from host: 500 {"explanation": "The server has either erred
> or is incapable of performing the requested operation.", "code": 500,
> "detail": "[Errno 22] Invalid argument", "title": "Internal Server Error"}
> [request=0.013473]
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
> line 99, in __call__
> resp = self.dispatch(request, clock)
>   File "/usr/lib64/python2.7/site-packages/ovirt_imageio_common/web.py",
> line 128, in dispatch
> return method(*match.groups())
>   File
> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
> 86, in wrapper
> return func(self, *args)
>   File
> "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line
> 59, in wrapper
> ret = func(self, *args)
>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
> line 153, in put
> read_timeout=self.config.imaged_read_timeout_sec)
>   File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/images.py",
> line 239, in make_imaged_request
> raise exc.status_map[imaged_resp.status_code](s)
> HTTPInternalServerError: Failed response from host: 500 {"explanation":
> "The server has either erred or is incapable of performing the requested
> operation.", "code": 500, "detail": "[Errno 22] Invalid