HI everybody , I read the code, find in the resize workflow ,no method to update pci_requests, so I add new code_line in method of resize, in /nova/compute/api.py.
filter_properties = {'ignore_hosts': []}
if not self._allow_resize_to_same_host(same_instance_type, instance): filter_properties['ignore_hosts'].append(instance.host)
HI everybody , I read the code, find in the resize workflow ,no method to update pci_requests, so I add new code_line in method of resize, in /nova/compute/ api.py.
``` vdpa_instances( instance_ actions. RESIZE) accelerators( ) instance_ lock instance_ state(vm_ state=[ vm_states. ACTIVE, vm_states.STOPPED]) instance_ host(check_ is_up=True) True,
host_name= None, auto_disk_ config= None):
@reject_
@block_
@check_
@check_
@check_
def resize(self, context, instance, flavor_id=None, clean_shutdown=
...
if not self._allow_
# add new code instance_ type:
request_ spec.pci_ requests = pci_request. get_pci_ requests_ from_flavor( new_instance_ type)
if new_instance_type != current_
...
```
It work , at resize finished , the DB of placement will be update