libvirt: _compare_cpu doesn't consider NotSupportedError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Markus Zoeller (markus_z) | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Issue
=====
The libvirt driver method "_compare_cpu" doesn't consider that the
underlying libvirt function could throw a NotSupportedError (like
baselineCPU call in "host.py" module [1])
Steps to reproduce
==================
* Create setup with at least 2 compute nodes
* Create cinder volume with bootable image
* Launch instance from that volume
* Start live migration of instance to another host
Expected behavior
=================
If the target host has the same CPU architecture like the source host,
the live migration should be triggered.
Actual behavior
===============
The live migration gets aborted and rolled back because all libvirt
errors gets treated equally.
Logs & Env.
===========
section "libvirt" in "/etc/nova/
[libvirt]
live_
disk_cachemodes = block=none
vif_driver = nova.virt.
inject_
live_
use_usb_tablet = False
cpu_mode = none
virt_type = kvm
Nova version
------------
/opt/stack/nova$ git log --oneline -n5
90ee915 Merge "Add api microvesion unit test case for wsgi.action"
7885b74 Merge "Remove db layer hard-code permission checks for flavor-manager"
416f310 Merge "Remove db layer hard-code permission checks for migrations_get*"
ecb306b Merge "Remove db layer hard-code permission checks for migration_
6efc8ad Merge "libvirt: don't allow to resize down the default ephemeral disk"
References
==========
[1] baselineCPU call to libvirt catches NotSupportedError;
https:/
Changed in nova: | |
importance: | Undecided → Low |
tags: | added: kilo-backport-potential |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/166130
Review: https:/