Bug 2054274 - [RHOSP16.1] - VM resize fails with 'No valid host' by PciPassthroughFilter for flavor that do not have spces for pci device.
Summary: [RHOSP16.1] - VM resize fails with 'No valid host' by PciPassthroughFilter fo...
Keywords:
Status: CLOSED DUPLICATE of bug 1976707
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: OSP DFG:Compute
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-14 15:06 UTC by Shravan Kumar Tiwari
Modified: 2023-03-21 19:50 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-15 16:03:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-12654 0 None None None 2022-02-14 15:11:27 UTC

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:


Note You need to log in before you can comment on or make changes to this bug.