report extra gpu device when config one enabled_vgpu_types
Bug #1943934 reported by
Wenping Song
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Low
|
Wenping Song |
Bug Description
if there are two gpu devices virtualized on the env, and config one enabled_vgpu_types and device_addresses, Nova will report these two gpu devices to Placement. we should only report the configured device_addresses to Placement.
Changed in nova: | |
assignee: | nobody → Wenping Song (wenping1) |
To post a comment you must log in.
That's because we don't verify the sections if we only have one reported type (and then we create inventories for all the GPUs)
For fixing it, you can use a fake vgpu type and create a new section for it, like :
enabled_mdev_types = nvidia-235,fake 00.0,0000: 85:00.0
[mdev_nvidia-235]
device_addresses = 0000:84:
[mdev_fake] 00.1,0000: 00:00.1
device_addresses = 0000:00:
That said, we could fix this issue by still verifying the section even for one reported type, but just not returning an exception if there is no section.