kvm-ok script gives syntax error when running on kvm

Bug #1557327 reported by Brad Marshall on 2016-03-15
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cpu-checker (Ubuntu)
Undecided
William Grant

Bug Description

While debugging something, I ran the kvm-ok script on a VM running on openstack, and got an interesting error:

ubuntu@juju-bradm-lcy02-machine-0:~$ sudo kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: Your CPU supports KVM extensions
/usr/sbin/kvm-ok: 120: /usr/sbin/kvm-ok: Syntax error: "else" unexpected (expecting "then")
ubuntu@juju-bradm-lcy02-machine-0:~$ echo $?
2

The code in question just needs a ; then added at the end of it.

Please let me know if you need any further information.

$ dpkg-query -W cpu-checker
cpu-checker 0.7-0ubuntu6

$ lsb_release -d
Description: Ubuntu Xenial Xerus (development branch)

William Grant (wgrant) on 2016-03-15
Changed in cpu-checker (Ubuntu):
assignee: nobody → William Grant (wgrant)
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cpu-checker - 0.7-0ubuntu7

---------------
cpu-checker (0.7-0ubuntu7) xenial; urgency=medium

  * cpu-checker-s390x.patch: Fix kvm-ok to not crash when no virt is
    available. (LP: #1557327)

 -- William Grant <email address hidden> Tue, 15 Mar 2016 18:26:37 +1100

Changed in cpu-checker (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers