[Bug 1720397] Re: qemu-kvm doesnt restart after node reboot

ChristianEhrhardt 1720397 at bugs.launchpad.net
Tue Oct 17 10:49:45 UTC 2017


Prep done, tested from ppa working as intended on Zesty as well.

# systemctl status qemu-kvm
● qemu-kvm.service - QEMU KVM preparation - module, ksm, hugepages
   Loaded: loaded (/lib/systemd/system/qemu-kvm.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
root at zesty-test:~# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  qemu-block-extra qemu-kvm qemu-system-common qemu-system-x86 qemu-utils
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 6208 kB of archives.
After this operation, 2048 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/ci-train-ppa-service/2992/ubuntu zesty/main amd64 qemu-system-common amd64 1:2.8+dfsg-3ubuntu2.6 [450 kB]
Get:2 http://ppa.launchpad.net/ci-train-ppa-service/2992/ubuntu zesty/main amd64 qemu-utils amd64 1:2.8+dfsg-3ubuntu2.6 [934 kB]
Get:3 http://ppa.launchpad.net/ci-train-ppa-service/2992/ubuntu zesty/main amd64 qemu-block-extra amd64 1:2.8+dfsg-3ubuntu2.6 [38.7 kB]
Get:4 http://ppa.launchpad.net/ci-train-ppa-service/2992/ubuntu zesty/main amd64 qemu-kvm amd64 1:2.8+dfsg-3ubuntu2.6 [13.2 kB]
Get:5 http://ppa.launchpad.net/ci-train-ppa-service/2992/ubuntu zesty/main amd64 qemu-system-x86 amd64 1:2.8+dfsg-3ubuntu2.6 [4772 kB]
Fetched 6208 kB in 1s (3280 kB/s)          
(Reading database ... 46724 files and directories currently installed.)
Preparing to unpack .../qemu-system-common_1%3a2.8+dfsg-3ubuntu2.6_amd64.deb ...
Unpacking qemu-system-common (1:2.8+dfsg-3ubuntu2.6) over (1:2.8+dfsg-3ubuntu2.5) ...
Preparing to unpack .../qemu-utils_1%3a2.8+dfsg-3ubuntu2.6_amd64.deb ...
Unpacking qemu-utils (1:2.8+dfsg-3ubuntu2.6) over (1:2.8+dfsg-3ubuntu2.5) ...
Preparing to unpack .../qemu-block-extra_1%3a2.8+dfsg-3ubuntu2.6_amd64.deb ...
Unpacking qemu-block-extra:amd64 (1:2.8+dfsg-3ubuntu2.6) over (1:2.8+dfsg-3ubuntu2.5) ...
Preparing to unpack .../qemu-kvm_1%3a2.8+dfsg-3ubuntu2.6_amd64.deb ...
Unpacking qemu-kvm (1:2.8+dfsg-3ubuntu2.6) over (1:2.8+dfsg-3ubuntu2.5) ...
Preparing to unpack .../qemu-system-x86_1%3a2.8+dfsg-3ubuntu2.6_amd64.deb ...
Unpacking qemu-system-x86 (1:2.8+dfsg-3ubuntu2.6) over (1:2.8+dfsg-3ubuntu2.5) ...
Setting up qemu-block-extra:amd64 (1:2.8+dfsg-3ubuntu2.6) ...
Setting up qemu-utils (1:2.8+dfsg-3ubuntu2.6) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up qemu-system-common (1:2.8+dfsg-3ubuntu2.6) ...
Created symlink /etc/systemd/system/multi-user.target.wants/qemu-kvm.service → /lib/systemd/system/qemu-kvm.service.
Setting up qemu-system-x86 (1:2.8+dfsg-3ubuntu2.6) ...
Setting up qemu-kvm (1:2.8+dfsg-3ubuntu2.6) ...
root at zesty-test:~# systemctl status qemu-kvm
● qemu-kvm.service - QEMU KVM preparation - module, ksm, hugepages
   Loaded: loaded (/lib/systemd/system/qemu-kvm.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2017-10-17 10:48:15 UTC; 5s ago
  Process: 12329 ExecStart=/usr/share/qemu/init/qemu-kvm-init start (code=exited, status=0/SUCCESS)
 Main PID: 12329 (code=exited, status=0/SUCCESS)
      CPU: 18ms

Oct 17 10:48:15 zesty-test systemd[1]: Starting QEMU KVM preparation - module, ksm, hugepages...
Oct 17 10:48:15 zesty-test systemd[1]: Started QEMU KVM preparation - module, ksm, hugepages.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1720397

Title:
  qemu-kvm doesnt restart after node reboot

Status in Ubuntu Cloud Archive:
  New
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Zesty:
  In Progress
Status in qemu source package in Artful:
  Fix Released

Bug description:
  [Impact]

   * Since the Zesty Merge the qemu-kvm service fails to be active by 
     default.

   * It is a non required but rather useful helper, so it should be fixed to 
     be enabled as it was pre zesty due to systemd-generators taking it from 
     sysv scripts back then.

  [Test Case]

   * Install qemu-system-common
   * Then check
     $ systemctl status qemu-kvm
   * This should be active (exited) but is currently disabled

  [Regression Potential]

   * If this script causes any issue for someone (not known so far) and he 
     was running on zesty a while it will on the SRU update be enabled and 
     trigger these issues. Yet this is a generic argument and if that would 
     be a blocker no services would be allowed to be enabled. I verified 
     that if masked the service stays off as it should.

  [Other Info]
   
   * IMO this issue qualified for  (2) the following of the Final Freeze:
     2) Bug fixes that would be suitable for post-release SRUs, which we
     may choose to accept, reject, or shunt to -updates for 0-day SRUs
     on a case-by-base basis.

  --

  
  Upon a MAAS reboot openstack nova-compute services come up blocked with the following message in juju status:

  Services not running that should be: qemu-kvm

  services qemu-kvm status shows the services as dead
  services qemu-kvm restart fixes issue.

  ubuntu at fair-dingo:~$ service qemu-kvm status
  ● qemu-kvm.service - QEMU KVM preparation - module, ksm, hugepages
     Loaded: loaded (/lib/systemd/system/qemu-kvm.service; disabled; vendor preset: enabled)
     Active: active (exited) since Thu 2017-09-28 19:54:17 UTC; 3min 20s ago
    Process: 33714 ExecStart=/usr/share/qemu/init/qemu-kvm-init start (code=exited, status=0/SUCCESS)
   Main PID: 33714 (code=exited, status=0/SUCCESS)

  Linux MaaS 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC
  2017 x86_64 x86_64 x86_64 GNU/Linux

  Juju 2.2.4-xenial-amd64

  openstack 3.12.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1720397/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list