)]}'
{"id":"openstack%2Fnova~930326","triplet_id":"openstack%2Fnova~master~I61a740be2ee7018016bb34e559e66865ab700f9e","project":"openstack/nova","branch":"master","topic":"bug/2081853","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":"2024-09-25 13:07:46.000000000","reason":"\u003cGERRIT_ACCOUNT_9708\u003e replied on the change","reason_account":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"}}},"hashtags":[],"change_id":"I61a740be2ee7018016bb34e559e66865ab700f9e","subject":"Reproduce anti-affinity race condition","status":"NEW","created":"2024-09-24 13:33:19.000000000","updated":"2024-09-30 16:11:12.000000000","submit_type":"MERGE_IF_NECESSARY","mergeable":true,"submittable":false,"total_comment_count":2,"unresolved_comment_count":1,"has_review_started":true,"meta_rev_id":"e76fdeff29e909de4433d2d06fc5ea1f5112af52","_number":930326,"virtual_id_number":930326,"owner":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:check","value":1,"date":"2024-09-25 13:46:51.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":{"REVIEWER":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"CC":[{"_account_id":36571,"name":"vmwareapi CI run by SAP","display_name":"vmwareapi CI run by SAP","email":"openstack-ci@sap.com","username":"sap-openstack-ci","status":"CI account for integration tests of the Nova vmwareapi driver","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2024-09-24 14:38:27.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":"CC"},{"updated":"2024-09-24 17:52:16.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":"2024-09-30 16:11:12.000000000","updated_by":{"_account_id":36571,"name":"vmwareapi CI run by SAP","display_name":"vmwareapi CI run by SAP","email":"openstack-ci@sap.com","username":"sap-openstack-ci","status":"CI account for integration tests of the Nova vmwareapi driver","tags":["SERVICE_USER"]},"reviewer":{"_account_id":36571,"name":"vmwareapi CI run by SAP","display_name":"vmwareapi CI run by SAP","email":"openstack-ci@sap.com","username":"sap-openstack-ci","status":"CI account for integration tests of the Nova vmwareapi driver","tags":["SERVICE_USER"]},"state":"CC"}],"messages":[{"id":"99b3a906b62ddc78b3261b24154fbead94d86428","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2024-09-24 13:33:19.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"d40b982a1b0d1308296bc6c3116d024fbea17e7e","tag":"autogenerated:zuul:check-arm64","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2024-09-24 14:38:27.000000000","message":"Patch Set 1:\n\nBuild succeeded (ARM64 pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/815de757d0a949f699f4996b9b695ea8\n\n- openstack-tox-py39-arm64 https://zuul.opendev.org/t/openstack/build/db460e227021453685fc5629a17760ad : SUCCESS in 32m 17s (non-voting)\n- openstack-tox-py311-arm64 https://zuul.opendev.org/t/openstack/build/a3ca9b4cabea4cfab0f5d66078f79416 : SUCCESS in 17m 54s (non-voting)","accounts_in_message":[],"_revision_number":1},{"id":"bbf2e3a60ee6ca16481434ca6d90fe32b37081d7","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2024-09-24 15:44:06.000000000","message":"Uploaded patch set 2: Commit message was updated.","accounts_in_message":[],"_revision_number":2},{"id":"2e9695a7b46eaa7994ff67c48b1ea35f65cfaf1c","tag":"autogenerated:zuul:check-arm64","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2024-09-24 16:29:56.000000000","message":"Patch Set 2:\n\nBuild succeeded (ARM64 pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/7ee4d84304b54628840ce70f64442be3\n\n- openstack-tox-py39-arm64 https://zuul.opendev.org/t/openstack/build/4e6e386c87274f7780327eec2d1e3e95 : SUCCESS in 44m 15s (non-voting)\n- openstack-tox-py311-arm64 https://zuul.opendev.org/t/openstack/build/ca82cdd637264041b57ceede705042db : SUCCESS in 19m 35s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"6d450ab574e72e3dff9d18e37f513be8dd9f0c85","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2024-09-24 17:52:16.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\nand https://docs.openstack.org/project-team-guide/testing.html#how-to-handle-test-failures\n\nhttps://zuul.opendev.org/t/openstack/buildset/6558df8224f44e64b12a1f69df3da68d\n\n- grenade-skip-level-always https://zuul.opendev.org/t/openstack/build/90b6294584774d66b87de7667856c36a : SUCCESS in 59m 46s\n- tempest-integrated-compute https://zuul.opendev.org/t/openstack/build/a82e76a2d0444381b562e3a914279c5b : SUCCESS in 1h 49m 35s\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/737ed88d030441d6bc6323923e00275d : SUCCESS in 28m 14s\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/e241cb31f6ea4aa4996b3d99885d10ad : SUCCESS in 19m 38s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/e9d2a3ff5b11410a8fff2464c8f1b830 : SUCCESS in 6m 34s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/bb9bbc8e3da241838a6ce68b8de284cd : SUCCESS in 13m 35s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/cb5b5c5319974b3ba141ed5d2a78242e : SUCCESS in 10m 51s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/aab39dcd8fa34919ba578cfbb49e54a2 : SUCCESS in 15m 04s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/a4b5171a906d4740855a02482e460091 : SUCCESS in 10m 00s\n- ironic-tempest-ipa-wholedisk-bios-agent_ipmitool-tinyipa https://zuul.opendev.org/t/openstack/build/c8a37194128d43d8aa9e3102a1c3318a : SUCCESS in 52m 04s (non-voting)\n- nova-ceph-multistore https://zuul.opendev.org/t/openstack/build/e77d6cd9a92f48769c71c2c67a3fb2f5 : SUCCESS in 1h 38m 18s\n- nova-live-migration https://zuul.opendev.org/t/openstack/build/f5f854578cba4c07b8d4655aec2ffa6d : SUCCESS in 42m 01s\n- nova-live-migration-ceph https://zuul.opendev.org/t/openstack/build/3707342d69b3429dafe6794c9504d6a6 : SUCCESS in 48m 15s\n- nova-multi-cell https://zuul.opendev.org/t/openstack/build/f991596eeddb48d399145f9aae118473 : SUCCESS in 1h 59m 22s\n- nova-next https://zuul.opendev.org/t/openstack/build/f1a70a55a01e44c7b68b929d8edb94dc : SUCCESS in 2h 05m 26s\n- nova-ovs-hybrid-plug https://zuul.opendev.org/t/openstack/build/20d82f493a784e549c223a2a4e5962e4 : SUCCESS in 44m 48s\n- nova-tox-validate-backport https://zuul.opendev.org/t/openstack/build/94759abbbda84242ae376dcdde6dd725 : SUCCESS in 4m 50s (non-voting)\n- nova-tox-functional-py39 https://zuul.opendev.org/t/openstack/build/3e16d86af9cc4f90b6a7a26352ca63db : FAILURE in 24m 56s\n- nova-tox-functional-py310 https://zuul.opendev.org/t/openstack/build/5a78b713882c4e718a75c641d170ebec : FAILURE in 34m 03s\n- nova-tox-functional-py312 https://zuul.opendev.org/t/openstack/build/df19b2906b834cd490ec72db46cb5ea6 : FAILURE in 32m 38s\n- tempest-integrated-compute-enforce-scope-new-defaults https://zuul.opendev.org/t/openstack/build/d9757c34c56e419b80a0ab608c18a5f4 : SUCCESS in 1h 53m 20s\n- tempest-integrated-compute-rbac-old-defaults https://zuul.opendev.org/t/openstack/build/a3314a99ec3741558bb65cbca11ebdc0 : SUCCESS in 1h 44m 21s\n- nova-grenade-multinode https://zuul.opendev.org/t/openstack/build/a0e891332de84874a4fe1de786e3eaeb : SUCCESS in 1h 17m 05s\n- tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/621ab074f8a74167ad87c811358e8837 : SUCCESS in 53m 41s\n- cyborg-tempest https://zuul.opendev.org/t/openstack/build/00f0a7f49a5b4d098a8a221fc69a59a7 : SUCCESS in 30m 30s (non-voting)\n- barbican-tempest-plugin-simple-crypto https://zuul.opendev.org/t/openstack/build/72e346675985461db3cbeb77e8d41b6e : SUCCESS in 30m 58s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"f3ba4f5c7c633cf61f28c9200326e47b2daa7725","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2024-09-25 13:07:46.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"ddd8b047f4219fbe6fcf1b6b697c126d46967704","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2024-09-25 13:09:58.000000000","message":"Uploaded patch set 3.\n\nOutdated Votes:\n* Verified-1\n","accounts_in_message":[],"_revision_number":3},{"id":"0d6d0357f534e2a7900e56d723fca3dec2e80a0a","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2024-09-25 13:46:51.000000000","message":"Patch Set 3: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/856773d291fb45f094b99b630e43fad7\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/a0d7220e93b641838c3b42d68494fc87 : SUCCESS in 16m 58s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/bfc3f18a0ba64cc58b760c75d8917c7d : SUCCESS in 6m 59s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/fe1e17a9ee7d41bb9ccb75a6fb58b716 : SUCCESS in 13m 21s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/89568c7d571544ac8094c767bd2dbd03 : SUCCESS in 14m 06s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/7e939dd9a7e849659c80ff3a63acd051 : SUCCESS in 12m 19s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/936dece54e6f42f49c91a7e6ca74e379 : SUCCESS in 11m 40s\n- nova-tox-validate-backport https://zuul.opendev.org/t/openstack/build/33ea44a57b4347488b910232f8d9ef8c : SUCCESS in 4m 49s (non-voting)\n- nova-tox-functional-py39 https://zuul.opendev.org/t/openstack/build/a54d5cab73b44c9b973617c68491b7d1 : SUCCESS in 28m 05s\n- nova-tox-functional-py310 https://zuul.opendev.org/t/openstack/build/9dcacae05e27430e930a5f8155493670 : SUCCESS in 31m 28s\n- nova-tox-functional-py312 https://zuul.opendev.org/t/openstack/build/8c1df4f5ca9d4c3eb5cbddc6b6bd3af6 : SUCCESS in 31m 43s","accounts_in_message":[],"_revision_number":3},{"id":"c27286809ab1280ee38b4f565388940d31dca5ce","tag":"autogenerated:zuul:check-arm64","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2024-09-25 14:01:54.000000000","message":"Patch Set 3:\n\nBuild succeeded (ARM64 pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/cc7958cb722a43ada4330a6794425344\n\n- openstack-tox-py39-arm64 https://zuul.opendev.org/t/openstack/build/77f4d92ac62746a1b45f9bcb86d89286 : SUCCESS in 26m 45s (non-voting)\n- openstack-tox-py311-arm64 https://zuul.opendev.org/t/openstack/build/60076cd098e7465ab6d4b158c9377929 : SUCCESS in 18m 30s (non-voting)","accounts_in_message":[],"_revision_number":3},{"id":"4182e2917c6051bc09b840579d8e15da7ab80d71","author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"date":"2024-09-25 15:57:33.000000000","message":"Patch Set 3:\n\n(1 comment)","accounts_in_message":[],"_revision_number":3},{"id":"98dfd496a175a2f9675f2b4c186f66b393d3ad13","tag":"autogenerated:sap-openstack-ci~result","author":{"_account_id":36571,"name":"vmwareapi CI run by SAP","display_name":"vmwareapi CI run by SAP","email":"openstack-ci@sap.com","username":"sap-openstack-ci","status":"CI account for integration tests of the Nova vmwareapi driver","tags":["SERVICE_USER"]},"date":"2024-09-30 16:11:12.000000000","message":"Patch Set 2:\n\nIgnore for now: Test failed. Logs on \u003chttp://openstack-ci-logs.global.cloud.sap/openstack-nova-930326-knqmz/index.html\u003e","accounts_in_message":[],"_revision_number":2}],"current_revision_number":3,"current_revision":"4259ecf0731abdf9b2521b2b34cccf64660acb36","revisions":{"19912e7d736731671e2d15d2ffc07fe01e0025ab":{"kind":"REWORK","_number":1,"created":"2024-09-24 13:33:19.000000000","uploader":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"ref":"refs/changes/26/930326/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/nova","ref":"refs/changes/26/930326/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/nova refs/changes/26/930326/1"}}},"commit":{"parents":[{"commit":"6fb1997def0757d42363ed8c8cc058d0703c4ad6","subject":"Update master for stable/2024.2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/6fb1997def0757d42363ed8c8cc058d0703c4ad6"}]}],"author":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-24 13:28:08.000000000","tz":120},"committer":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-24 13:28:08.000000000","tz":120},"subject":"Reproduce anti-affinity race condition","message":"Reproduce anti-affinity race condition\n\nThere is an anti-affinity policy check in the compute manager to ensure\nthat if parallel scheduling selected the same host for two VMs that are\nin anti-affinity group then the compute manager can catch the race to\navoid violating the anti-affinity policy.\n\nHowever this check is too eager to reject the boot requests. If both\nboot request reaches the _validate_instance_group_policy at the same\ntime then both each request will be rejected due to the other request.\nSo we end up in a situation where two instance was booted, one could fit\nto the host, but both request is rejected.\n\nThe root of the problem is that instance.host is set after the resource\nclaim succeeds on the compute, and the policy only checked after this.\nSo it can happen that both instances succeeds to claim, has their\ninstance.host set, and then both calls validate and sees the other\ninstance on the host so fail.\n\nChange-Id: I61a740be2ee7018016bb34e559e66865ab700f9e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/19912e7d736731671e2d15d2ffc07fe01e0025ab"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/19912e7d736731671e2d15d2ffc07fe01e0025ab"}]},"branch":"refs/heads/master"},"3923ffa43abe7c35c59fd25975a62a558e398813":{"kind":"NO_CODE_CHANGE","_number":2,"created":"2024-09-24 15:44:06.000000000","uploader":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"ref":"refs/changes/26/930326/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/nova","ref":"refs/changes/26/930326/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/nova refs/changes/26/930326/2"}}},"commit":{"parents":[{"commit":"6fb1997def0757d42363ed8c8cc058d0703c4ad6","subject":"Update master for stable/2024.2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/6fb1997def0757d42363ed8c8cc058d0703c4ad6"}]}],"author":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-24 13:28:08.000000000","tz":120},"committer":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-24 15:43:04.000000000","tz":120},"subject":"Reproduce anti-affinity race condition","message":"Reproduce anti-affinity race condition\n\nThere is an anti-affinity policy check in the compute manager to ensure\nthat if parallel scheduling selected the same host for two VMs that are\nin anti-affinity group then the compute manager can catch the race to\navoid violating the anti-affinity policy.\n\nHowever this check is too eager to reject the boot requests. If both\nboot request reaches the _validate_instance_group_policy at the same\ntime then both each request will be rejected due to the other request.\nSo we end up in a situation where two instance was booted, one could fit\nto the host, but both request is rejected.\n\nThe root of the problem is that instance.host is set after the resource\nclaim succeeds on the compute, and the policy only checked after this.\nSo it can happen that both instances succeeds to claim, has their\ninstance.host set, and then both calls validate and sees the other\ninstance on the host so fail.\n\nRelated-Bug: #2081853\nChange-Id: I61a740be2ee7018016bb34e559e66865ab700f9e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/3923ffa43abe7c35c59fd25975a62a558e398813"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/3923ffa43abe7c35c59fd25975a62a558e398813"}]},"branch":"refs/heads/master"},"4259ecf0731abdf9b2521b2b34cccf64660acb36":{"kind":"REWORK","_number":3,"created":"2024-09-25 13:09:58.000000000","uploader":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"ref":"refs/changes/26/930326/3","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/nova","ref":"refs/changes/26/930326/3","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/nova refs/changes/26/930326/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/nova refs/changes/26/930326/3"}}},"commit":{"parents":[{"commit":"6fb1997def0757d42363ed8c8cc058d0703c4ad6","subject":"Update master for stable/2024.2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/6fb1997def0757d42363ed8c8cc058d0703c4ad6"}]}],"author":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-24 13:28:08.000000000","tz":120},"committer":{"name":"Balazs Gibizer","email":"gibi@redhat.com","date":"2024-09-25 13:09:42.000000000","tz":120},"subject":"Reproduce anti-affinity race condition","message":"Reproduce anti-affinity race condition\n\nThere is an anti-affinity policy check in the compute manager to ensure\nthat if parallel scheduling selected the same host for two VMs that are\nin anti-affinity group then the compute manager can catch the race to\navoid violating the anti-affinity policy.\n\nHowever this check is too eager to reject the boot requests. If both\nboot request reaches the _validate_instance_group_policy at the same\ntime then both each request will be rejected due to the other request.\nSo we end up in a situation where two instance was booted, one could fit\nto the host, but both request is rejected.\n\nThe root of the problem is that instance.host is set after the resource\nclaim succeeds on the compute, and the policy only checked after this.\nSo it can happen that both instances succeeds to claim, has their\ninstance.host set, and then both calls validate and sees the other\ninstance on the host so fail.\n\nRelated-Bug: #2081853\nChange-Id: I61a740be2ee7018016bb34e559e66865ab700f9e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/4259ecf0731abdf9b2521b2b34cccf64660acb36"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/nova/commit/4259ecf0731abdf9b2521b2b34cccf64660acb36"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"OK","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY"},{"label":"Workflow","status":"MAY"},{"label":"Review-Priority","status":"MAY"}]}],"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":{"label:Verified\u003dMAX":"","label:Verified\u003dMIN":""}}},{"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":{"label:Code-Review\u003dMAX":"","label:Code-Review\u003dMIN":""}}},{"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":{"label:Workflow\u003dMAX":"","label:Workflow\u003dMIN":""}}}]}
