Displaying 20 results from an estimated 63 matches for "endhead".
2018 Jun 14
5
[PATCH] v2v: -o rhv-upload: Optimize http request sending
...-%d" % (offset, offset+count-1)}
# Authorization is only needed for old imageio.
if h['needs_auth']:
- http.putheader("Authorization", transfer.signed_ticket)
- http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
- http.endheaders()
+ headers["Authorization"] = transfer.signed_ticket
+
+ http.request("GET", h['path'], headers=headers)
r = http.getresponse()
# 206 = HTTP Partial Content.
@@ -319,11 +319,10 @@ def zero(h, count, offset, may_trim):
'...
2018 Jun 14
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...et+count-1)}
> # Authorization is only needed for old imageio.
> if h['needs_auth']:
> - http.putheader("Authorization", transfer.signed_ticket)
> - http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
> - http.endheaders()
> + headers["Authorization"] = transfer.signed_ticket
> +
> + http.request("GET", h['path'], headers=headers)
>
> r = http.getresponse()
> # 206 = HTTP Partial Content.
> @@ -319,11 +319,10 @@ def zero(h, count, offset, may_t...
2018 Jun 14
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...et+count-1)}
> # Authorization is only needed for old imageio.
> if h['needs_auth']:
> - http.putheader("Authorization", transfer.signed_ticket)
> - http.putheader("Range", "bytes=%d-%d" % (offset, offset+count-1))
> - http.endheaders()
> + headers["Authorization"] = transfer.signed_ticket
> +
> + http.request("GET", h['path'], headers=headers)
>
> r = http.getresponse()
> # 206 = HTTP Partial Content.
> @@ -319,11 +319,10 @@ def zero(h, count, offset, may...
2007 Sep 17
1
longtable and Sweave
Dear Sweave-users,
I want to print listing using sweave. Because my tables are very big, I use
the longtable option. But, is it possible to recall the first line of the
table (e.g the colnames line) on each new page ?
Thanks for your help.
Delphine
2008 May 02
6
Python script to collect domU stats
I''ve attached a python script that collects stats from DomUs (HVM and
PVM). I hope this would be useful for somebody else.
See comments for more info.
regards,
Diego
--
--------------
Diego Woitasen
XTECH
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
2019 Nov 19
2
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...tp.request("OPTIONS", url.path)
> File "/usr/lib64/python3.7/http/client.py", line 1252, in request
> self._send_request(method, url, body, headers, encode_chunked)
> File "/usr/lib64/python3.7/http/client.py", line 1298, in _send_request
> self.endheaders(body, encode_chunked=encode_chunked)
> File "/usr/lib64/python3.7/http/client.py", line 1247, in endheaders
> self._send_output(message_body, encode_chunked=encode_chunked)
> File "/usr/lib64/python3.7/http/client.py", line 1026, in _send_output
> self...
2018 Jun 25
1
Re: [PATCH v2 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...gt; + needs_auth = not params['rhv_direct']
> + can_flush = False
> + can_trim = False
> + can_zero = False
> +
> + http.putrequest("OPTIONS", destination_url.path)
> + http.putheader("Authorization", transfer.signed_ticket)
+ http.endheaders()
> +
> + r = http.getresponse()
>
We should read the response data here to make sure we consume
the entire response before sending hte nex
> + if r.status == 200:
> + # New imageio never needs authentication.
> + needs_auth = False
> +
> + j...
2018 Jun 29
2
[PATCH] v2v: rhv-upload-plugin: Remove unneeded auth
...o-proxy.
needs_auth = not params['rhv_direct']
+
can_flush = False
can_trim = False
can_zero = False
unix_socket = None
- http.putrequest("OPTIONS", destination_url.path)
- http.putheader("Authorization", transfer.signed_ticket)
- http.endheaders()
-
+ http.request("OPTIONS", destination_url.path)
r = http.getresponse()
data = r.read()
@@ -298,7 +299,6 @@ def pread(h, count, offset):
transfer = h['transfer']
headers = {"Range", "bytes=%d-%d" % (offset, offset+count-1)}
-...
2018 Aug 20
0
[PATCH 1/2] v2v: rhv-upload-plugin: Handle send send failures
...A.
import builtins
+import errno
import json
import logging
import socket
@@ -357,7 +358,12 @@ def pwrite(h, buf, offset):
http.putheader("Content-Range", "bytes %d-%d/*" % (offset, offset+count-1))
http.putheader("Content-Length", str(count))
http.endheaders()
- http.send(buf)
+
+ try:
+ http.send(buf)
+ except socket.error as e:
+ if e[0] != errno.EPIPE:
+ raise
r = http.getresponse()
if r.status != 200:
@@ -413,11 +419,15 @@ def emulate_zero(h, count, offset):
http.putheader("Content-Leng...
2018 Jun 21
0
[PATCH 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...fetch the features of the server.
+ needs_auth = not params['rhv_direct']
+ can_flush = False
+ can_trim = False
+ can_zero = False
+
+ http.putrequest("OPTIONS", destination_url.path)
+ http.putheader("Authorization", transfer.signed_ticket)
+ http.endheaders()
+
+ r = http.getresponse()
+ if r.status == 200:
+ # New imageio never needs authentication.
+ needs_auth = False
+
+ j = json.loads(r.read())
+ can_flush = "flush" in j['features']
+ can_trim = "trim" in j['features'...
2018 Jun 22
0
[PATCH v2 1/2] v2v: -o rhv-upload: Always fetch server options when opening the connection.
...fetch the features of the server.
+ needs_auth = not params['rhv_direct']
+ can_flush = False
+ can_trim = False
+ can_zero = False
+
+ http.putrequest("OPTIONS", destination_url.path)
+ http.putheader("Authorization", transfer.signed_ticket)
+ http.endheaders()
+
+ r = http.getresponse()
+ if r.status == 200:
+ # New imageio never needs authentication.
+ needs_auth = False
+
+ j = json.loads(r.read())
+ can_flush = "flush" in j['features']
+ can_trim = "trim" in j['features'...
2019 Nov 19
0
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...n get_options
http.request("OPTIONS", url.path)
File "/usr/lib64/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File &q...
2019 Nov 19
2
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...> >> File "/usr/lib64/python3.7/http/client.py", line 1252, in request
> >> self._send_request(method, url, body, headers, encode_chunked)
> >> File "/usr/lib64/python3.7/http/client.py", line 1298, in
> _send_request
> >> self.endheaders(body, encode_chunked=encode_chunked)
> >> File "/usr/lib64/python3.7/http/client.py", line 1247, in endheaders
> >> self._send_output(message_body, encode_chunked=encode_chunked)
> >> File "/usr/lib64/python3.7/http/client.py", line 1026, in...
2018 Dec 07
2
[PATCH] v2v: -o rhv-upload: Fix emulated zero
...s_auth']:
http.putheader("Authorization", transfer.signed_ticket)
http.putheader("Content-Range",
"bytes %d-%d/*" % (offset, offset+count-1))
http.putheader("Content-Length", str(count))
http.endheaders()
try:
buf = bytearray(128*1024)
while count > len(buf):
http.send(buf)
count -= len(buf)
- http.send(buffer(buf, 0, count))
+ http.send(memoryview(buf)[:count])
except BrokenPipeError:...
2021 Jan 07
1
HCI Cluster - CentOS8 to Streams Upgrade Broken
...= self.send_request(host,
handler, request_body, verbose)#012 File
"/usr/lib64/python3.6/xmlrpc/client.py", line 1279, in send_request#012
self.send_content(connection, request_body)#012 File
"/usr/lib64/python3.6/xmlrpc/client.py", line 1309, in send_content#012
connection.endheaders(request_body)#012 File
"/usr/lib64/python3.6/http/client.py", line 1264, in endheaders#012
self._send_output(message_body, encode_chunked=encode_chunked)#012 File
"/usr/lib64/python3.6/http/client.py", line 1040, in _send_output#012
self.send(msg)#012 File "/usr/lib...
2018 Mar 12
2
[PATCH] v2v: -o rhv-upload: Support zero requests.
Only compile tested.
I'm keeping this as a separate patch for the moment until the
relevant change on the oVirt side goes upstream.
Rich.
2019 Nov 19
0
Re: [PATCH v2 00/11] rvh-upload: Various fixes and cleanups
...;OPTIONS", url.path)
>> File "/usr/lib64/python3.7/http/client.py", line 1252, in request
>> self._send_request(method, url, body, headers, encode_chunked)
>> File "/usr/lib64/python3.7/http/client.py", line 1298, in _send_request
>> self.endheaders(body, encode_chunked=encode_chunked)
>> File "/usr/lib64/python3.7/http/client.py", line 1247, in endheaders
>> self._send_output(message_body, encode_chunked=encode_chunked)
>> File "/usr/lib64/python3.7/http/client.py", line 1026, in _send_output
&...
2018 Aug 20
3
[PATCH 0/2] v2v: rhv-upload-plugin: Improve error handling
These patches improve error handling when PUT request fail, including
the error response from oVirt server. This will make it easier to debug
issue when oVirt server logs have been rotated.
Nir Soffer (2):
v2v: rhv-upload-plugin: Handle send send failures
v2v: rhv-upload-plugin: Fix error formatting
v2v/rhv-upload-plugin.py | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7
2018 Jun 22
4
v2v: -o rhv-upload: Use Unix domain socket to access imageio (RHBZ#1588088).
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-June/msg00099.html
v2:
- Just fixes the two problems noted in the review of the previous version.
Rich.
2018 Jun 15
1
[PATCH] v2v: rhv-upload: Disable Nagle algorithm
When sending a PUT request, the http header may be sent in the first
packet when calling con.endheaders(). When we send the first chunk, the
kernel may delay the send because the header packet was not acked yet.
We have seen PUT requests delayed by 40 milliseconds on the server side
during virt-v2v upload to ovirt. Here is example log from current RHEL
virt-v2v version, uploading to RHV 4.2.3:
2...