nova-compute: inconsistent qemu packages installed

Bug #1662865 reported by Pas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Undecided
Unassigned

Bug Description

Using stable/newton and Ubuntu 16.04 (xenial) the compute hosts ended up with qemu-block-extra and qemu-system-x86 from different repos (xenial-updates and xenial-security).

Here's the error from nova-compute.log:

RescheduledException: Build of instance f4a25269-fe4a-4eed-88f5-eec46747c2eb was re-scheduled: internal error: process exited while connecting to monitor: Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-iscsi.so\nNote: only modules from the same build can be loaded.\nFailed
to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-curl.so\nNote: only modules from the same build can be loaded.\nFailed to initialize module: /usr/lib/x86_64-linu
x-gnu/qemu/block-rbd.so\nNote: only modules from the same build can be loaded.\nFailed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-dmg.so\nNote: only modules
 from the same build can be loaded.\n2017-02-08T09:24:15.423558Z qemu-system-x86_64: -drive file=rbd:volumes_hdd/volume-74aa7ef7-1f29-4460-8be0-849e1cbc9af2:id=cinder:key=...:auth_supported=cephx\\;none:mon_host=172.29.248.26\\:6789\\;172.29.248.28\\:6789\\;172.29.248.29\\:6789,format=raw,if=none,id=drive-
virtio-disk0,serial=74aa7ef7-1f29-4460-8be0-849e1cbc9af2,cache=writeback: Unknown protocol 'rbd'

So it might be necessary to do something like:

(dpkg-query -W qemu qemu-system-x86 qemu-block-extra | awk '{ print $2 }' | sort -u | wc -l) === 1

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Could you tell us which version of newton you are using?

We have patches under way that could impact this.

Revision history for this message
Pas (pasthelod) wrote :

Sure, the local working directory is currently at: 01ff4c8901a35560cf49e19acafd629ec029c62c (Thu Feb 2 11:09:59 2017 +0000, Merge "Adjust compute host removal docs" into stable/newton)

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

You should update to a more recent stable/newton. Many chances that this is fixed.

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
Revision history for this message
Kevin Tower (ktower) wrote :

I ran into this during a recent execution of the os_nova.yml playbook. An update to the latest stable/newton release did not fix the problem, as suggested earlier. It may in fact prevent the problem from occurring if you upgrade before getting into this state, but it did not do anything to get me out of the state once I got there.

My eventual solution was to manually apt-get install the older qemu packages to bring them up to the same version of those that the playbook had installed/updated.

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.