[virt-tools-list] [virt-manager PATCH] virtinst: early detect ftp connection errors

Giuseppe Scrivano gscrivan at redhat.com
Mon Apr 14 13:21:25 UTC 2014


Cole Robinson <crobinso at redhat.com> writes:

> On 04/14/2014 09:11 AM, Giuseppe Scrivano wrote:
>> It fixes two problems:
>> 
>> i) "ftp://" was accepted as valid URL but then it causes this
>> exception:
>> 
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/usr/lib64/python2.7/ftplib.py", line 387, in login
>>     resp = self.sendcmd('USER ' + user)
>>   File "/usr/lib64/python2.7/ftplib.py", line 243, in sendcmd
>>     self.putcmd(cmd)
>>   File "/usr/lib64/python2.7/ftplib.py", line 178, in putcmd
>>     self.putline(line)
>>   File "/usr/lib64/python2.7/ftplib.py", line 173, in putline
>>     self.sock.sendall(line)
>> AttributeError: 'NoneType' object has no attribute 'sendall'
>> 
>> ii) only a cryptic error message "Unable to complete install: '[Errno
>> -2] Name or service not known'" was showed to users when the DNS
>> lookup failed.  The exception is now intercepted and decorated with
>> more information.
>> 
>> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1086554
>> 
>> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
>> ---
>>  virtinst/urlfetcher.py | 13 ++++++++++---
>>  1 file changed, 10 insertions(+), 3 deletions(-)
>> 
>
> ACK

thanks, pushed now.

Giuseppe




More information about the virt-tools-list mailing list