Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2054274

Summary: [RHOSP16.1] - VM resize fails with 'No valid host' by PciPassthroughFilter for flavor that do not have spces for pci device.
Product: Red Hat OpenStack Reporter: Shravan Kumar Tiwari <shtiwari>
Component: openstack-novaAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED DUPLICATE QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: dasmith, eglynn, jhakimra, kchamart, ltamagno, sbauza, sgordon, smooney, vromanso
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-15 16:03:00 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:

Description Shravan Kumar Tiwari 2022-02-14 15:06:42 UTC
Description of problem:

VM resize is failing with error 'No valid host found' as PciPassthroughFilter is returning '0' hosts.

 default default] Filtering removed all hosts for t      he request with instance ID 'VM-UUID shared in next comment' neFilter: (start: 40, end: 8)', 'ComputeFilter: (start: 8, end: 8)', 'ComputeCapabilitiesFilter: (start:       8, end: 8)', 'ImagePropertiesFilter: (start: 8, end: 8)', 'ServerGroupAntiAffinityFilter: (start: 8, end: 8)', 'ServerGroupAffinityFilter: (start: 8, end: 8)', 'PciPassthroughFilter: (start: 8, end: 0)']

Version-Release number of selected component (if applicable):
RHOSP16.1

How reproducible:


Steps to Reproduce:
1. VM-1 is already deployed with flavor i.e. flavor-A extra specs of "pci_passthrough:alias='cx4:1'"
2. create new flavor with no extra spec for pci device say flavor-B.
3. resize VM with Flavor-B
openstack server resize --flavor  <Flavor-B id> <VM-1 uuid>

Actual results:

- Resize is failing as PciPassthroughFilter returning 0 hosts

Expected results:

- The resize should happen as Flavor-B does not have any extra spec for pci-passthrough device and other computes in availability zone have enough resource to host this VM. So, "Scheduler should not use "PciPassthroughFilter" to filter the available host as new flavor does not demand for it.


Additional info: