)]}'
{"id":"openstack%2Fnova~839717","triplet_id":"openstack%2Fnova~stable%2Ftrain~If9ab424cc7375a1f0d41b03f01c4a823216b3eb8","project":"openstack/nova","branch":"stable/train","topic":"bug/1969496","attention_set":{},"removed_from_attention_set":{"9708":{"account":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"last_update":"2023-09-01 16:54:16.000000000","reason":"Change was abandoned"}},"hashtags":[],"change_id":"If9ab424cc7375a1f0d41b03f01c4a823216b3eb8","subject":"Remove unavailable but not reported PCI devices at startup","status":"ABANDONED","created":"2022-04-28 10:50:56.000000000","updated":"2023-09-01 16:54:16.000000000","total_comment_count":1,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"5c1c2336be6972f3525cf3e9b08ddc26615b3eaf","_number":839717,"virtual_id_number":839717,"owner":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"actions":{},"labels":{"Verified":{"disliked":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:check","value":-1,"date":"2022-05-06 11:17:32.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":-1,"default_value":0,"optional":true},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Review-Priority":{"all":[{"value":0,"permitted_voting_range":{"min":0,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{" 0":"Default Priority","+1":"Contributor Review Promise","+2":"Core Review Promise"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"CC":[{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},{"_account_id":15670,"name":"StorPool OpenStack CI","email":"openstack-ci@storpool.com","username":"storpoolci","tags":["SERVICE_USER"]}],"REVIEWER":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2022-04-28 10:51:45.000000000","updated_by":{"_account_id":15670,"name":"StorPool OpenStack CI","email":"openstack-ci@storpool.com","username":"storpoolci","tags":["SERVICE_USER"]},"reviewer":{"_account_id":15670,"name":"StorPool OpenStack CI","email":"openstack-ci@storpool.com","username":"storpoolci","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2022-04-28 10:52:21.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2022-04-28 10:52:32.000000000","updated_by":{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},"reviewer":{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},"state":"CC"}],"messages":[{"id":"67d78194be51d4adc8ae6e3b49e4b14161765f36","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2022-04-28 10:50:56.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"d598e758d6b6f2d2570448355f4b573b8498d51d","author":{"_account_id":15670,"name":"StorPool OpenStack CI","email":"openstack-ci@storpool.com","username":"storpoolci","tags":["SERVICE_USER"]},"date":"2022-04-28 10:51:45.000000000","message":"Patch Set 1:\n\nMerge Failed.\n\nThis change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.","accounts_in_message":[],"_revision_number":1},{"id":"fcb215e6ea120efb3cdf1763dddbad35b36b2c5c","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2022-04-28 10:52:21.000000000","message":"Patch Set 1: Verified-1\n\nMerge Failed.\n\nThis change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.\nWarning:\n  Error merging gerrit/openstack/nova for 839717,1","accounts_in_message":[],"_revision_number":1},{"id":"4368fb04dad3dbd600b3415db630de3c5e03ad94","author":{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},"date":"2022-04-28 10:52:32.000000000","message":"Patch Set 1:\n\nMerge Failed.\n\nThis change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.","accounts_in_message":[],"_revision_number":1},{"id":"225ba7862f88e199d0d7806294cb63c6d1a45b42","tag":"autogenerated:gerrit:abandon","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2022-04-28 11:00:39.000000000","message":"Abandoned\n\nbad push","accounts_in_message":[],"_revision_number":1},{"id":"b8aec3feb460060981c8876a1f13babf42771fe4","tag":"autogenerated:gerrit:restore","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2022-05-06 09:20:08.000000000","message":"Restored","accounts_in_message":[],"_revision_number":1},{"id":"51e3dc93a227088b6136935a09d7f14a5618546e","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2022-05-06 09:20:21.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"e8fb0192d6f54bd059453d3ae9c7b7c1b596a130","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2022-05-06 11:17:32.000000000","message":"Patch Set 2: Verified-1\n\nBuild failed (check pipeline).  For information on how to proceed, see\nhttps://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing\n\n\n- grenade-skip-level https://zuul.opendev.org/t/openstack/build/c4adafb0c5974b0b91378012527acbec : FAILURE in 12m 35s (non-voting)\n- tempest-integrated-compute https://zuul.opendev.org/t/openstack/build/c34b9758677342538cbf6dd45cb5fba5 : SUCCESS in 1h 09m 59s\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/1ead27e5dce1411abdc81fb05844177d : SUCCESS in 42m 25s\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/32586df4943e4b9bba6df49a9c1aace3 : SUCCESS in 16m 25s\n- openstack-tox-lower-constraints https://zuul.opendev.org/t/openstack/build/614f29f8061849c093285bc8f70002c6 : RETRY_LIMIT in 4m 17s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/213fdd3df5a04fb8825684a58bdb9934 : SUCCESS in 10m 31s\n- openstack-tox-py27 https://zuul.opendev.org/t/openstack/build/c108a6a3111f484b8dbf2106be715e05 : SUCCESS in 12m 59s\n- openstack-tox-py36 https://zuul.opendev.org/t/openstack/build/490c49f17f664fe4a7a98435896b7181 : SUCCESS in 12m 25s\n- openstack-tox-py37 https://zuul.opendev.org/t/openstack/build/7b1ee50a46434adcba5801bddfbdf176 : SUCCESS in 12m 52s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/2b9c18a48161463f80d4976669b87c92 : SUCCESS in 11m 24s\n- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa https://zuul.opendev.org/t/openstack/build/acc7f05b973841419ae917e6734953d5 : SUCCESS in 1h 06m 16s (non-voting)\n- devstack-plugin-ceph-tempest https://zuul.opendev.org/t/openstack/build/49cf736eb31f4c7397b4019596b1095e : FAILURE in 1h 08m 38s (non-voting)\n- neutron-grenade-multinode https://zuul.opendev.org/t/openstack/build/a9da7ca9fc4342ad82ad220b471a8233 : SUCCESS in 51m 24s\n- nova-grenade-multinode https://zuul.opendev.org/t/openstack/build/dfd8c97f1f204af494140c8feb6ac98c : SUCCESS in 1h 12m 54s\n- nova-live-migration https://zuul.opendev.org/t/openstack/build/cecfafc5d426416794df2857ce32257a : SUCCESS in 53m 38s\n- nova-multi-cell https://zuul.opendev.org/t/openstack/build/c7fdc4a2dd364219ae3c44d76dead9e1 : FAILURE in 1h 34m 18s\n- nova-next https://zuul.opendev.org/t/openstack/build/12b965df13344794b8c9edea00b701fa : SUCCESS in 1h 29m 42s\n- nova-tox-functional https://zuul.opendev.org/t/openstack/build/149954fa74b84032a96babf22e8e8283 : SUCCESS in 20m 47s\n- nova-tox-functional-py36 https://zuul.opendev.org/t/openstack/build/38c5f30b5ef4431ebad8573070611d23 : SUCCESS in 17m 19s\n- nova-tox-validate-backport https://zuul.opendev.org/t/openstack/build/7ea1c7eff014464f894ee3262dfe0f60 : FAILURE in 5m 02s (non-voting)\n- tempest-slow-py3 https://zuul.opendev.org/t/openstack/build/36b3de96cf674942b5d6e9a9bd84cd8f : FAILURE in 1h 53m 08s\n- grenade-py3 https://zuul.opendev.org/t/openstack/build/f070f3219ac94c9f89941c5191cac6cd : SUCCESS in 1h 05m 36s\n- tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/e8c672c389b64c44ba3ea4784641b02a : SUCCESS in 57m 22s","accounts_in_message":[],"_revision_number":2},{"id":"c50c74f05dd24581372002ecf9773c7036177d2e","author":{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},"date":"2022-05-06 12:40:19.000000000","message":"Patch Set 2:\n\nBuild succeeded. Test completed on IBM PowerKVM platform. For rechecking only on the IBM PowerKVM CI, add a review comment with pkvm- recheck. For contact and more information, see https://wiki.openstack.org/wiki/PowerKVM\n\n- tempest-dsvm-full-bionic-py3 https://oplab9.parqtec.unicamp.br/pub/ppc64el/openstack/nova/17/839717/2/check/tempest-dsvm-full-bionic-py3/e1d65d6/ : SUCCESS in 2h 24m 04s","accounts_in_message":[],"_revision_number":2},{"id":"a90c42d0a17bbfe6e4803c3e83c181730c21e87f","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2022-05-31 12:35:06.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"62f045bdc007f362d12c2244861e86b276f1c55c","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2022-05-31 14:46:55.000000000","message":"Patch Set 2:\n\nBuild failed (check pipeline).  For information on how to proceed, see\nhttps://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing\n\n\n- tempest-integrated-compute https://zuul.opendev.org/t/openstack/build/021080e6586d43b2948183ad08f57a20 : SUCCESS in 1h 32m 51s\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/d4dd4e76536c40aba752e36b0e7b8de0 : SUCCESS in 1h 01m 50s\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/2c07bfd4dbbd4a51b8d56483b61641f9 : SUCCESS in 17m 46s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/adcf07469e3742329830849e131df27a : SUCCESS in 11m 38s\n- openstack-tox-py27 https://zuul.opendev.org/t/openstack/build/eb2dec4891e34ad7b96c7381165eb75b : SUCCESS in 14m 44s\n- openstack-tox-py36 https://zuul.opendev.org/t/openstack/build/1a7d7790188d4cd7b953e9835a5df4e1 : SUCCESS in 12m 59s\n- openstack-tox-py37 https://zuul.opendev.org/t/openstack/build/82036a996454488c842e86706de2607e : SUCCESS in 13m 47s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/7402a8e612f44b03bebc3bc1ed6787c7 : SUCCESS in 10m 29s\n- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa https://zuul.opendev.org/t/openstack/build/6047c5f1b3e1489cae59dd2ce82a6f1a : SUCCESS in 1h 04m 40s (non-voting)\n- devstack-plugin-ceph-tempest https://zuul.opendev.org/t/openstack/build/dc6720a2d87c42509a5b411b2a6e5f0e : FAILURE in 1h 14m 12s (non-voting)\n- neutron-grenade-multinode https://zuul.opendev.org/t/openstack/build/5ea288f706ab4f319509c13d96f33ebf : SUCCESS in 54m 37s\n- nova-grenade-multinode https://zuul.opendev.org/t/openstack/build/bcfe2169e51c4289a47cae0097a2f4b9 : FAILURE in 1h 00m 33s\n- nova-live-migration https://zuul.opendev.org/t/openstack/build/4c4dae1cf9204409b7995166a9534636 : SUCCESS in 49m 25s\n- nova-multi-cell https://zuul.opendev.org/t/openstack/build/56a5c64702ff41f5a01ac3e60207c4f9 : FAILURE in 1h 32m 18s\n- nova-next https://zuul.opendev.org/t/openstack/build/b43f7c2049a9493aacb5af6a913d748b : SUCCESS in 1h 13m 27s\n- nova-tox-functional https://zuul.opendev.org/t/openstack/build/ea0d83f8fc2646559860fa79b7d58f03 : SUCCESS in 22m 31s\n- nova-tox-functional-py36 https://zuul.opendev.org/t/openstack/build/c79407ce36ed46b8875d73a2aface8b2 : SUCCESS in 19m 46s\n- nova-tox-validate-backport https://zuul.opendev.org/t/openstack/build/5b8cd6fcd8e74ec7bc57feaa11440f6c : FAILURE in 5m 14s (non-voting)\n- tempest-slow-py3 https://zuul.opendev.org/t/openstack/build/8ba95707173849159375a33f9c2b13eb : SUCCESS in 1h 58m 07s\n- grenade-py3 https://zuul.opendev.org/t/openstack/build/9f374ef939b64b66819215941caf9892 : SUCCESS in 1h 04m 05s\n- tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/be7df0fe3c4245bab24cefe995dc2226 : SUCCESS in 1h 02m 08s","accounts_in_message":[],"_revision_number":2},{"id":"4146d7b3a01d2a1fc1a6fcb56aa506c31b40886c","author":{"_account_id":10118,"name":"IBM PowerKVM CI","email":"kvmpower@linux.vnet.ibm.com","username":"powerkvm","tags":["SERVICE_USER"]},"date":"2022-05-31 14:58:35.000000000","message":"Patch Set 2:\n\nBuild succeeded. Test completed on IBM PowerKVM platform. For rechecking only on the IBM PowerKVM CI, add a review comment with pkvm- recheck. For contact and more information, see https://wiki.openstack.org/wiki/PowerKVM\n\n- tempest-dsvm-full-bionic-py3 https://oplab9.parqtec.unicamp.br/pub/ppc64el/openstack/nova/17/839717/2/check/tempest-dsvm-full-bionic-py3/96ed324/ : SUCCESS in 2h 00m 13s","accounts_in_message":[],"_revision_number":2},{"id":"5c1c2336be6972f3525cf3e9b08ddc26615b3eaf","tag":"autogenerated:gerrit:abandon","author":{"_account_id":17685,"name":"Elod Illes","email":"elod.illes@est.tech","username":"elod.illes"},"date":"2023-09-01 16:54:16.000000000","message":"Abandoned\n\nstable/train branch of nova projects\u0027 have been tagged as End of Life. All open patches have to be abandoned in order to be able to delete the branch.","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"3a73728d287d2fa4a7444fa565e4310662fc7653","revisions":{"ae29dc2b9c8db6ee4094112b17374399ea5bee81":{"kind":"REWORK","_number":1,"created":"2022-04-28 10:50:56.000000000","uploader":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"ref":"refs/changes/17/839717/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/nova","ref":"refs/changes/17/839717/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/nova refs/changes/17/839717/1"}}},"commit":{"parents":[{"commit":"5f5551448dcfcde26095963e223f973b90e6f637","subject":"Move centos stream testing to centos-9-stream","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/5f5551448dcfcde26095963e223f973b90e6f637"}]}],"author":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2022-04-19 15:50:34.000000000","tz":120},"committer":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2022-04-28 10:49:14.000000000","tz":120},"subject":"Remove unavailable but not reported PCI devices at startup","message":"Remove unavailable but not reported PCI devices at startup\n\nWe saw in the field that the pci_devices table can end up in\ninconsistent state after a compute node HW failure and re-deployment.\nThere could be dependent devices where the parent PF is in available\nstate while the children VFs are in unavailable state. (Before the HW\nfault the PF was allocated hence the VFs was marked unavailable).\n\nIn this state this PF is still schedulable but during the\nPCI claim the handling of dependent devices in the PCI tracker fill fail\nwith the error: \"Attempt to consume PCI device XXX from empty pool\".\n\nThe reason of the failure is that when the PF is claimed, all the\nchildren VFs are marked unavailable. But if the VF is already\nunavailable such step fails.\n\nOne way the deployer might try to recover from this state is to remove\nthe VFs from the hypervisor and restart the compute agent. The compute\nstartup already has a logic to delete PCI devices that are unused and\nnot reported by the hypervisor. However this logic only removed devices\nin \u0027available\u0027 state and ignored devices in \u0027unavailable\u0027 state.\n\nIf a device is unused and the hypervisor is not reporting the device any\nmore then it is safe to delete that device from the PCI tracker. So this\npatch extends the logic to allow deleting \u0027unavailable\u0027 devices. There\nis a small window when dependent PCI device is in \u0027unclaimable\u0027 state.\nFrom cleanup perspective this is an analogous state. So it is also\nadded to the cleanup logic.\n\nRelated-Bug: #1969496\n\nChange-Id: If9ab424cc7375a1f0d41b03f01c4a823216b3eb8\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/ae29dc2b9c8db6ee4094112b17374399ea5bee81"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/ae29dc2b9c8db6ee4094112b17374399ea5bee81"}]},"branch":"refs/heads/stable/train"},"3a73728d287d2fa4a7444fa565e4310662fc7653":{"kind":"REWORK","_number":2,"created":"2022-05-06 09:20:21.000000000","uploader":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"ref":"refs/changes/17/839717/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/nova","ref":"refs/changes/17/839717/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/nova refs/changes/17/839717/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/nova refs/changes/17/839717/2"}}},"commit":{"parents":[{"commit":"f893777553857f7901354333d77e21431aa80a93","subject":"Isolate PCI tracker unit tests","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/f893777553857f7901354333d77e21431aa80a93"}]}],"author":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2022-04-19 15:50:34.000000000","tz":120},"committer":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2022-05-06 09:19:49.000000000","tz":120},"subject":"Remove unavailable but not reported PCI devices at startup","message":"Remove unavailable but not reported PCI devices at startup\n\nWe saw in the field that the pci_devices table can end up in\ninconsistent state after a compute node HW failure and re-deployment.\nThere could be dependent devices where the parent PF is in available\nstate while the children VFs are in unavailable state. (Before the HW\nfault the PF was allocated hence the VFs was marked unavailable).\n\nIn this state this PF is still schedulable but during the\nPCI claim the handling of dependent devices in the PCI tracker fill fail\nwith the error: \"Attempt to consume PCI device XXX from empty pool\".\n\nThe reason of the failure is that when the PF is claimed, all the\nchildren VFs are marked unavailable. But if the VF is already\nunavailable such step fails.\n\nOne way the deployer might try to recover from this state is to remove\nthe VFs from the hypervisor and restart the compute agent. The compute\nstartup already has a logic to delete PCI devices that are unused and\nnot reported by the hypervisor. However this logic only removed devices\nin \u0027available\u0027 state and ignored devices in \u0027unavailable\u0027 state.\n\nIf a device is unused and the hypervisor is not reporting the device any\nmore then it is safe to delete that device from the PCI tracker. So this\npatch extends the logic to allow deleting \u0027unavailable\u0027 devices. There\nis a small window when dependent PCI device is in \u0027unclaimable\u0027 state.\nFrom cleanup perspective this is an analogous state. So it is also\nadded to the cleanup logic.\n\nRelated-Bug: #1969496\nChange-Id: If9ab424cc7375a1f0d41b03f01c4a823216b3eb8\n(cherry picked from commit 284ea72e96604bdf16d1c5c4db47247334841b2f)\n(cherry picked from commit d7bca631fea348fb56cc46c5680643bacd82513e)\n(cherry picked from commit 580a4b14ae367e327229482decca0cb6cdf6e9d8)\n(cherry picked from commit 59ae44754ebce106b23bc697a822d181cdda41c6)\n(cherry picked from commit fdf52a1b099683ec65f6f0488ef73c952d90e002)\n(cherry picked from commit 28c8ebc7b21a4606c7c652c185ba80eaefd5d537)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/3a73728d287d2fa4a7444fa565e4310662fc7653"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/3a73728d287d2fa4a7444fa565e4310662fc7653"}]},"branch":"refs/heads/stable/train"}},"requirements":[],"submit_records":[],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Verified\u003dMAX","label:Verified\u003dMIN"],"atom_explanations":{}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Code-Review\u003dMAX","label:Code-Review\u003dMIN"],"atom_explanations":{}}},{"name":"Review-Priority","description":"Review Priority","status":"NOT_APPLICABLE","is_legacy":false,"applicability_expression_result":{"fulfilled":false,"status":"FAIL"},"submittability_expression_result":{"expression":"is:true","fulfilled":true,"status":"NOT_EVALUATED","passing_atoms":[],"failing_atoms":[],"atom_explanations":{}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Workflow\u003dMAX","label:Workflow\u003dMIN"],"atom_explanations":{}}}]}
