uvt-kvm wait stack trace

Bug #1599683 reported by Seth Arnold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

sarnold@wopr:~$ uvt-kvm wait jj --insecure
Warning: Permanently added '192.168.122.182' (ECDSA) to the list of known hosts.
Permission denied (publickey).
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 717, in main_cli_wrapper
    main(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 712, in main
    args.func(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 645, in main_wait
    main_wait_remote(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 613, in main_wait_remote
    private_key_file=args.ssh_private_key_file,
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 497, in ssh
    ssh_call, preexec_fn=subprocess_setup, close_fds=True, stdin=stdin
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'ssh', u'-o', u'UserKnownHostsFile=/dev/null', u'-o', u'StrictHostKeyChecking=no', u'-o', u'CheckHostIP=no', u'-l', u'ubuntu', u'192.168.122.182', u'env', u'UVTOOL_WAIT_INTERVAL=8.0', u'UVTOOL_WAIT_TIMEOUT=120.0', u'sh', u'-']' returned non-zero exit status 255

Repeatable, a few seconds later:

sarnold@wopr:~$ uvt-kvm wait jj --insecure
Warning: Permanently added '192.168.122.182' (ECDSA) to the list of known hosts.
Permission denied (publickey).
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 717, in main_cli_wrapper
    main(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 712, in main
    args.func(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 645, in main_wait
    main_wait_remote(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 613, in main_wait_remote
    private_key_file=args.ssh_private_key_file,
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 497, in ssh
    ssh_call, preexec_fn=subprocess_setup, close_fds=True, stdin=stdin
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'ssh', u'-o', u'UserKnownHostsFile=/dev/null', u'-o', u'StrictHostKeyChecking=no', u'-o', u'CheckHostIP=no', u'-l', u'ubuntu', u'192.168.122.182', u'env', u'UVTOOL_WAIT_INTERVAL=8.0', u'UVTOOL_WAIT_TIMEOUT=120.0', u'sh', u'-']' returned non-zero exit status 255

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: uvtool-libvirt 0~bzr99-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Wed Jul 6 18:22:57 2016
InstallationDate: Installed on 2016-04-04 (93 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Beta amd64 (20160325)
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: uvtool
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Probably related to:

sarnold@wopr:~$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=no -l ubuntu 192.168.122.182 env UVTOOL_WAIT_INTERVAL=8.0 UVTOOL_WAIT_TIMEOUT=120.0 sh -
Warning: Permanently added '192.168.122.182' (ECDSA) to the list of known hosts.
Permission denied (publickey).

I suspect that means I screwed up the keys when creating the image.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Seth,
looking back do you still bother to keep the report open or should we stick with "I suspect that means I screwed up the keys" and set it to be invalid?

Well lets make that an opt-in, I set invalid now and you can reset if you want.
Greetings cpaelzer

Changed in uvtool (Ubuntu):
status: New → Invalid
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hi Christian,

Well, a stack trace is a poor way to communicate an error as likely as "seeded the wrong key into the image" but there's only a finite amount of time and if this is a low priority (as it looks :) then perhaps 'invalid' is fine.

Thanks

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.