Public bug reported: Description =========== the follows assumption scenario。 1. The compute resources are enough. 2. Booting instances in concurrent scenario. 3. The number of instance is more than the instances'。 4. The instances booting with the same anti-affinity. 5. more than one controller node。
In the above scenario, the number of instances booting failed are more than expected。In concurrent scenario, one more instances will be scheduled to the same compute nodes even specifying anti-affinity, so after 'instance_claim', compute will check the anti-affinity without lock, perhaps two or more instances will be checked together and failed because of affecting each other。so these instances will be rescheduled. In the next scheduling, the previous compute node will be ignored. Steps to reproduce ================== 1. Assumpt 3 compute nodes and 2 or more controller nodes. 2. Create a anti-affinity server group. 3. Construct a bash script for booting instances with anti-affinity group in concurrent scenario. nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test01 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test02 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test03 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test04 4. execute the bash script. Expected result =============== 3 instances were booting successfully. Actual result ============= 2 instances were booting succssfully. ** Affects: nova Importance: Undecided Assignee: Tao Li (eric-litao) Status: New ** Changed in: nova Assignee: (unassigned) => Tao Li (eric-litao) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1647584 Title: Instance with anti-affinity server group booted failed in concurrent scenario Status in OpenStack Compute (nova): New Bug description: Description =========== the follows assumption scenario。 1. The compute resources are enough. 2. Booting instances in concurrent scenario. 3. The number of instance is more than the instances'。 4. The instances booting with the same anti-affinity. 5. more than one controller node。 In the above scenario, the number of instances booting failed are more than expected。In concurrent scenario, one more instances will be scheduled to the same compute nodes even specifying anti-affinity, so after 'instance_claim', compute will check the anti-affinity without lock, perhaps two or more instances will be checked together and failed because of affecting each other。so these instances will be rescheduled. In the next scheduling, the previous compute node will be ignored. Steps to reproduce ================== 1. Assumpt 3 compute nodes and 2 or more controller nodes. 2. Create a anti-affinity server group. 3. Construct a bash script for booting instances with anti-affinity group in concurrent scenario. nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test01 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test02 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test03 & nova boot --flavor 1 --image cirros --nic net-id=b0406792-26a8-4f26-843e-3b2231dbd4da --hint group=eaa8694e-8c83-47f2-8c02-93657c08d2bd lt_test04 4. execute the bash script. Expected result =============== 3 instances were booting successfully. Actual result ============= 2 instances were booting succssfully. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1647584/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp