diff options
author | Balazs Gibizer <gibi@redhat.com> | 2022-07-20 10:54:16 +0200 |
---|---|---|
committer | Balazs Gibizer <gibi@redhat.com> | 2022-08-27 12:41:20 +0200 |
commit | 06389f8d849c6380a5f3763f03e84f804c4d29f2 (patch) | |
tree | c57a3bf61f739ca0bfd9cb11f2a9f866094bd234 /nova/conf | |
parent | 9268bc36a3671f946eeb1021bb101de8fab7a438 (diff) | |
download | nova-06389f8d849c6380a5f3763f03e84f804c4d29f2.tar.gz |
Allow enabling PCI tracking in Placement
This patch introduces the [pci]report_in_placement config option that is
False by default but if set to True will enable reporting of the PCI
passthrough inventories to Placement.
blueprint: pci-device-tracking-in-placement
Change-Id: I49a3dbf4c5708d2d92dedd29a9dc3ef25b6cd66c
Diffstat (limited to 'nova/conf')
-rw-r--r-- | nova/conf/pci.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nova/conf/pci.py b/nova/conf/pci.py index 278fe4c0c0..673185391b 100644 --- a/nova/conf/pci.py +++ b/nova/conf/pci.py @@ -225,7 +225,21 @@ Possible values: device_spec = [{"product_id":"0001", "vendor_id":"8086"}, {"product_id":"0002", "vendor_id":"8086"}] -""") +"""), + cfg.BoolOpt('report_in_placement', + default=False, + help=""" +Enable PCI resource inventory reporting to Placement. If it is enabled then the +nova-compute service will report PCI resource inventories to Placement +according to the [pci]device_spec configuration and the PCI devices reported +by the hypervisor. Once it is enabled it cannot be disabled any more. In a +future release the default of this config will be change to True. + +Related options: + +* [pci]device_spec: to define which PCI devices nova are allowed to track and + assign to guests. +"""), ] |