sync data to placement raise resource in use exception

Bug #2017513 reported by Wenping Song
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyborg (OpenStack)
New
Undecided
Unassigned

Bug Description

when we remove the pci device that is used from host, the cyborg-agent will raise 'resource provider in use ' exception.

2023-04-24 14:50:08.267 1 ERROR oslo_service.periodic_task [None req-3493a3b4-7275-46cb-8767-253b414eac60 - - - - -] Error during AgentManager.update_available_resource: cyborg.common.exception_Remote.ResourceProviderInUse_Remote: An unknown exception occurred.
Traceback (most recent call last):

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
    res = self.dispatcher.dispatch(message)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
    result = func(ctxt, **new_args)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/cyborg/conductor/manager.py", line 86, in report_data
    old_driver_device_list, driver_device_list)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/cyborg/conductor/manager.py", line 112, in drv_device_make_diff
    self._delete_provider_and_sub_providers(context, rp_uuid)

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/cyborg/conductor/manager.py", line 388, in _delete_provider_and_sub_providers
    self.placement_client.delete_provider(rp["uuid"])

  File "/var/lib/kolla/venv/lib/python3.6/site-packages/cyborg/common/placement_client.py", line 313, in delete_provider
    raise exception.ResourceProviderInUse()

cyborg.common.exception.ResourceProviderInUse: An unknown exception occurred.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.