Error message is not useful if VM IP address cannot be detected

Bug #1417622 reported by Robie Basak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
uvtool
Triaged
Medium
Robie Basak

Bug Description

danwest@x1:~$ uvt-kvm ssh host2 --insecure
Traceback (most recent call last):
  File "/usr/bin/uvt-kvm", line 35, in <module>
    uvtool.libvirt.kvm.main_cli_wrapper(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 709, in main_cli_wrapper
    main(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 704, in main
    args.func(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 580, in main_ssh
    return ssh(name, login_name, args.ssh_arguments)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 471, in ssh
    ip = ips[0]
IndexError: list index out of range

Expected result: some error along the lines of "Cannot determine IP address of host2".

Robie Basak (racb)
Changed in uvtool:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Robie Basak (racb)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.