Comment 3 for bug 1164028

Revision history for this message
Jeff Lane  (bladernr) wrote :

Second issue discovered after fixing the first one is that the kvm instance is never killed.

The code looks like this:
if instance is not False:
                    time.sleep(self.timeout)
                    # Check to be sure VM boot was successful
                    if "END SSH HOST KEY KEYS" \
                    in open(self.debug_file, 'r').read():
                        print("Booted successfully", file=sys.stderr)
                        status = 0
                    else:
                        print("KVM instance failed to boot", file=sys.stderr)
                    self.process.terminate()
            else:
                print("Could not find: {}".format(self.image), file=sys.stderr)

self.process.terminate() isn't actually shutting down the VM. Also, the first part of that isn't working either, so status is never set to 0 and we never discover if the boot was successful.

I'm working on debugging this now.