[Bug 1720397] Re: qemu-kvm doesnt restart after node reboot
ChristianEhrhardt
1720397 at bugs.launchpad.net
Tue Oct 17 12:50:37 UTC 2017
Verified on Zesty, here the console log as reference:
# apt update
Hit:1 http://archive.ubuntu.com/ubuntu zesty InRelease
Get:2 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu zesty/multiverse Sources [184 kB]
Get:6 http://archive.ubuntu.com/ubuntu zesty/main Sources [912 kB]
Get:7 http://archive.ubuntu.com/ubuntu zesty/universe Sources [8459 kB]
Get:8 http://archive.ubuntu.com/ubuntu zesty/restricted Sources [5064 B]
Get:9 http://archive.ubuntu.com/ubuntu zesty/universe amd64 Packages [8068 kB]
Get:10 http://archive.ubuntu.com/ubuntu zesty/universe Translation-en [4671 kB]
Get:11 http://archive.ubuntu.com/ubuntu zesty/multiverse amd64 Packages [154 kB]
Get:12 http://archive.ubuntu.com/ubuntu zesty/multiverse Translation-en [109 kB]
Fetched 466 kB in 7s (62.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root at zesty-test-qemukvm:~# apt install qemu-system-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libboost-iostreams1.62.0 libboost-random1.62.0 libboost-system1.62.0 libboost-thread1.62.0 libiscsi7 libnspr4 libnss3 librados2 librbd1
qemu-block-extra
The following NEW packages will be installed:
libboost-iostreams1.62.0 libboost-random1.62.0 libboost-system1.62.0 libboost-thread1.62.0 libiscsi7 libnspr4 libnss3 librados2 librbd1
qemu-block-extra qemu-system-common
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 5771 kB of archives.
After this operation, 20.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu zesty/main amd64 libiscsi7 amd64 1.17.0-1 [55.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu zesty/main amd64 libboost-iostreams1.62.0 amd64 1.62.0+dfsg-4 [27.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu zesty/main amd64 libboost-system1.62.0 amd64 1.62.0+dfsg-4 [9398 B]
Get:4 http://archive.ubuntu.com/ubuntu zesty/main amd64 libboost-random1.62.0 amd64 1.62.0+dfsg-4 [11.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu zesty/main amd64 libboost-thread1.62.0 amd64 1.62.0+dfsg-4 [46.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 libnspr4 amd64 2:4.13.1-0ubuntu0.17.04.1 [112 kB]
Get:7 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 libnss3 amd64 2:3.28.4-0ubuntu0.17.04.3 [1143 kB]
Get:8 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 librados2 amd64 10.2.7-0ubuntu0.17.04.1 [1666 kB]
Get:9 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 librbd1 amd64 10.2.7-0ubuntu0.17.04.1 [2212 kB]
Get:10 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 qemu-block-extra amd64 1:2.8+dfsg-3ubuntu2.5 [39.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 qemu-system-common amd64 1:2.8+dfsg-3ubuntu2.5 [449 kB]
Fetched 5771 kB in 2s (2531 kB/s)
Selecting previously unselected package libiscsi7:amd64.
(Reading database ... 26647 files and directories currently installed.)
Preparing to unpack .../00-libiscsi7_1.17.0-1_amd64.deb ...
Unpacking libiscsi7:amd64 (1.17.0-1) ...
Selecting previously unselected package libboost-iostreams1.62.0:amd64.
Preparing to unpack .../01-libboost-iostreams1.62.0_1.62.0+dfsg-4_amd64.deb ...
Unpacking libboost-iostreams1.62.0:amd64 (1.62.0+dfsg-4) ...
Selecting previously unselected package libboost-system1.62.0:amd64.
Preparing to unpack .../02-libboost-system1.62.0_1.62.0+dfsg-4_amd64.deb ...
Unpacking libboost-system1.62.0:amd64 (1.62.0+dfsg-4) ...
Selecting previously unselected package libboost-random1.62.0:amd64.
Preparing to unpack .../03-libboost-random1.62.0_1.62.0+dfsg-4_amd64.deb ...
Unpacking libboost-random1.62.0:amd64 (1.62.0+dfsg-4) ...
Selecting previously unselected package libboost-thread1.62.0:amd64.
Preparing to unpack .../04-libboost-thread1.62.0_1.62.0+dfsg-4_amd64.deb ...
Unpacking libboost-thread1.62.0:amd64 (1.62.0+dfsg-4) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../05-libnspr4_2%3a4.13.1-0ubuntu0.17.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.13.1-0ubuntu0.17.04.1) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../06-libnss3_2%3a3.28.4-0ubuntu0.17.04.3_amd64.deb ...
Unpacking libnss3:amd64 (2:3.28.4-0ubuntu0.17.04.3) ...
Selecting previously unselected package librados2.
Preparing to unpack .../07-librados2_10.2.7-0ubuntu0.17.04.1_amd64.deb ...
Unpacking librados2 (10.2.7-0ubuntu0.17.04.1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../08-librbd1_10.2.7-0ubuntu0.17.04.1_amd64.deb ...
Unpacking librbd1 (10.2.7-0ubuntu0.17.04.1) ...
Selecting previously unselected package qemu-block-extra:amd64.
Preparing to unpack .../09-qemu-block-extra_1%3a2.8+dfsg-3ubuntu2.5_amd64.deb ...
Unpacking qemu-block-extra:amd64 (1:2.8+dfsg-3ubuntu2.5) ...
Selecting previously unselected package qemu-system-common.
Preparing to unpack .../10-qemu-system-common_1%3a2.8+dfsg-3ubuntu2.5_amd64.deb ...
Unpacking qemu-system-common (1:2.8+dfsg-3ubuntu2.5) ...
Setting up libiscsi7:amd64 (1.17.0-1) ...
Setting up libnspr4:amd64 (2:4.13.1-0ubuntu0.17.04.1) ...
Setting up libboost-iostreams1.62.0:amd64 (1.62.0+dfsg-4) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libboost-system1.62.0:amd64 (1.62.0+dfsg-4) ...
Setting up libboost-thread1.62.0:amd64 (1.62.0+dfsg-4) ...
Setting up libboost-random1.62.0:amd64 (1.62.0+dfsg-4) ...
Setting up libnss3:amd64 (2:3.28.4-0ubuntu0.17.04.3) ...
Setting up librados2 (10.2.7-0ubuntu0.17.04.1) ...
Setting up librbd1 (10.2.7-0ubuntu0.17.04.1) ...
Setting up qemu-block-extra:amd64 (1:2.8+dfsg-3ubuntu2.5) ...
Setting up qemu-system-common (1:2.8+dfsg-3ubuntu2.5) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
root at zesty-test-qemukvm:~# 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-qemukvm:~#
root at zesty-test-qemukvm:~# vim /etc/apt/sources.list
root at zesty-test-qemukvm:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu zesty InRelease
Get:2 http://archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]
Get:4 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu zesty-proposed InRelease [240 kB]
Get:6 http://archive.ubuntu.com/ubuntu zesty-proposed/universe Sources [9924 B]
Get:7 http://archive.ubuntu.com/ubuntu zesty-proposed/main Sources [15.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 Packages [27.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu zesty-proposed/main Translation-en [14.9 kB]
Get:10 http://archive.ubuntu.com/ubuntu zesty-proposed/universe amd64 Packages [19.1 kB]
Get:11 http://archive.ubuntu.com/ubuntu zesty-proposed/universe Translation-en [12.7 kB]
Fetched 608 kB in 1s (433 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
26 packages can be upgraded. Run 'apt list --upgradable' to see them.
root at zesty-test-qemukvm:~#
root at zesty-test-qemukvm:~#
root at zesty-test-qemukvm:~# apt install qemu-system-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
qemu-block-extra
The following packages will be upgraded:
qemu-block-extra qemu-system-common
2 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Need to get 489 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://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 qemu-system-common amd64 1:2.8+dfsg-3ubuntu2.6 [451 kB]
Get:2 http://archive.ubuntu.com/ubuntu zesty-proposed/main amd64 qemu-block-extra amd64 1:2.8+dfsg-3ubuntu2.6 [38.6 kB]
Fetched 489 kB in 0s (1712 kB/s)
(Reading database ... 26815 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-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) ...
Setting up qemu-block-extra:amd64 (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.
root at zesty-test-qemukvm:~# 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 12:50:00 UTC; 8s ago
Process: 2082 ExecStart=/usr/share/qemu/init/qemu-kvm-init start (code=exited, status=0/SUCCESS)
Main PID: 2082 (code=exited, status=0/SUCCESS)
CPU: 5ms
Oct 17 12:50:00 zesty-test-qemukvm systemd[1]: Starting QEMU KVM preparation - module, ksm, hugepages...
Oct 17 12:50:00 zesty-test-qemukvm systemd[1]: Started QEMU KVM preparation - module, ksm, hugepages.
** Tags removed: verification-needed verification-needed-zesty
** Tags added: verification-done verification-done-zesty
--
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:
Fix Committed
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