Bug 1346094

Summary: SameHostFilter should fail if no instances on host
Product: Red Hat OpenStack Reporter: Benjamin Schmaus <bschmaus>
Component: openstack-novaAssignee: Prateek Arora <parora>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: high Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: berrange, chricker, dasmith, dmaley, editucci, eglynn, ganguly, kchamart, parora, sbauza, sferdjao, sgordon, spryor, srevivo, velkumar, vromanso
Target Milestone: asyncKeywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: x86_64   
OS: Linux   
Whiteboard: hot
Fixed In Version: openstack-nova-2015.1.4-9.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1350356 (view as bug list) Environment:
Last Closed: 2016-07-13 14:49:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1350356    

Description Benjamin Schmaus 2016-06-14 00:32:02 UTC
Description of problem:

The SameHostFilter should pass only if the host is executing an instance
from the set of uuids passed in the scheduler hint 'same_host'. However,
it passes also if the host does not have any instance.

Version-Release number of selected component (if applicable):7.0/7.3


How reproducible:
100%

Steps to Reproduce:
1. See Private Comments Below
2.
3.

Actual results: Compute hosts that match hint key and hosts with 0 instances on them are used.


Expected results:  Only hosts passed as hint key should be used.


Additional info:

https://bugs.launchpad.net/nova/+bug/1500920

This commit seems to fix the issue when manually patched in:

https://github.com/openstack/nova/commit/b6198c834cd22264815efa2299fce1059ba5c085

Comment 6 Chandra Ganguly 2016-06-21 22:48:59 UTC
Need this fixed in Kilo and Liberty

Comment 10 Chris Ricker 2016-07-05 20:06:54 UTC
openstack-nova-2015.1.4-9.el7ost is Kilo

What is the fixed version for Liberty?

Comment 12 Prateek Arora 2016-07-07 09:29:47 UTC
openstack-nova-12.0.4-4.el7ost is the version for Liberty

https://bugzilla.redhat.com/show_bug.cgi?id=1350356 is the bug we are using to track the fix for Liberty

Comment 16 errata-xmlrpc 2016-07-13 14:49:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1417