virt-manager/virtinst
Giuseppe Scrivano 1d312a520e virtinst: early detect ftp connection errors
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@redhat.com>
2014-04-14 15:20:18 +02:00
..
__init__.py virt-install: Add --membacking option 2014-03-22 12:16:24 -04:00
capabilities.py test: fix a pylint 2014-04-10 23:15:55 +08:00
cli.py Clean up pylint integration 2014-04-02 19:00:24 -04:00
clock.py cli: Rework adhoc CLI parsing into a class structure 2014-01-22 10:35:30 -05:00
cloner.py VirtualDisk: Always use storage APIs for provisioning 2014-02-08 19:24:14 -05:00
connection.py Clean up pylint integration 2014-04-02 19:00:24 -04:00
cpu.py wip 2014-02-05 14:09:05 -05:00
device.py cli: Support per-device <boot order=> 2014-02-09 14:07:27 -05:00
deviceaudio.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicechar.py addhw: add CharDevice "spiceport" type 2014-03-25 17:42:57 -04:00
devicecontroller.py Unify prettification of VirtIO serial 2014-02-12 21:55:32 +01:00
devicedisk.py virtinst: fix an issue of disk bus caculation 2014-02-23 13:31:48 +08:00
devicefilesystem.py Share the list of all disk image formats 2014-01-25 11:59:32 -05:00
devicegraphics.py details: Fix unsetting autoport values 2014-03-22 18:29:08 -04:00
devicehostdev.py Expose hostdev rombar in UI and cli (bz 768857) 2014-02-10 14:25:23 -05:00
deviceinput.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
deviceinterface.py deviceinterface: Absorb cli 'default source' logic 2014-02-05 19:02:42 -05:00
devicememballoon.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicepanic.py panic notifier: display default value if not set 2014-01-14 09:58:09 -05:00
deviceredirdev.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicerng.py virtinst: allow EGD RNG devices to have both bind and connect sources 2013-10-28 17:32:06 +01:00
devicesmartcard.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicetpm.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicevideo.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
devicewatchdog.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
diskbackend.py VirtualDisk: Always use storage APIs for provisioning 2014-02-08 19:24:14 -05:00
distroinstaller.py virtinst: DistroInstaller uses libosinfo detection first 2014-03-26 16:12:13 +01:00
domainblkiotune.py virt-install: Add --blkiotune option 2014-02-06 22:41:00 +08:00
domainfeatures.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
domainmemorybacking.py virt-install: Add --membacking option 2014-03-22 12:16:24 -04:00
domainmemorytune.py virt-install: Add --memtune option 2014-02-24 21:02:31 -05:00
domainnumatune.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
guest.py guest: Drop back compat hugepage attribute 2014-03-22 12:25:28 -04:00
hostkeymap.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
idmap.py virt-install: add support for user namespace 2014-02-09 13:16:34 -05:00
installer.py cli: Support per-device <boot order=> 2014-02-09 14:07:27 -05:00
interface.py interface: check ip address format 2014-03-31 22:25:36 +08:00
network.py createnet: Use typical name validation pattern 2014-01-17 18:40:30 -05:00
nodedev.py More pylint fixes 2014-03-22 11:21:19 -04:00
osdict.py Clean up pylint integration 2014-04-02 19:00:24 -04:00
osxml.py cli: Rework adhoc CLI parsing into a class structure 2014-01-22 10:35:30 -05:00
pm.py virt-install: Add --pm option 2014-02-03 11:11:38 -05:00
pollhelpers.py Streamline support checks 2013-10-06 10:08:04 -04:00
seclabel.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
snapshot.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
storage.py storage: add support for gluster fs pools. 2014-02-12 15:46:25 +01:00
support.py connection: Add explicit API for getting virConnect object 2014-03-20 14:04:29 -04:00
urlfetcher.py virtinst: early detect ftp connection errors 2014-04-14 15:20:18 +02:00
util.py Clean up pylint integration 2014-04-02 19:00:24 -04:00
virtimage.py Clean up pylint integration 2014-04-02 19:00:24 -04:00
xmlbuilder.py Clean up pylint integration 2014-04-02 19:00:24 -04:00