ServersOnMultiNodesTest.test_create_server_with_scheduler_hint_group_anti_affinity failing with "Servers are on the same host"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann |
Bug Description
Started seeing this recently which looks like a regression:
2018-07-13 19:53:15.275866 | primary | {1} tempest.
2018-07-13 19:53:15.275944 | primary |
2018-07-13 19:53:15.276012 | primary | Captured traceback:
2018-07-13 19:53:15.276075 | primary | ~~~~~~~~~~~~~~~~~~~
2018-07-13 19:53:15.276171 | primary | Traceback (most recent call last):
2018-07-13 19:53:15.276452 | primary | File "tempest/
2018-07-13 19:53:15.276598 | primary | 'Servers are on the same host: %s' % hosts)
2018-07-13 19:53:15.276857 | primary | File "/opt/stack/
2018-07-13 19:53:15.276965 | primary | raise self.failureExc
2018-07-13 19:53:15.277830 | primary | AssertionError: u'ubuntu-
According to logstash, it looks like this started around July 9.
These changes merged to nova on July 9 but shouldn't impact this scheduling behavior yet:
https:/
https:/
Changed in nova: | |
status: | Confirmed → Triaged |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in nova: | |
status: | Fix Released → In Progress |
tags: | added: rocky-rc-potential |
This is where we first hit the server group anti affinity filter during scheduling for this request to create 2 servers in the same anti-affinity group:
http:// logs.openstack. org/44/ 564444/ 14/check/ neutron- tempest- multinode- full/dba40b9/ logs/screen- n-sch.txt. gz#_Jul_ 13_19_53_ 09_805696
Jul 13 19:53:09.805696 ubuntu- xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.scheduler. filters. affinity_ filter [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Group anti-affinity: check if the number of servers from group 243c3452- 1fde-41ef- bf5a-1cddf1236a 7f on host ubuntu- xenial- rax-dfw- 0000714124 is less than 1. {{(pid=5417) host_passes /opt/stack/ new/nova/ nova/scheduler/ filters/ affinity_ filter. py:122} } xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.scheduler. filters. affinity_ filter [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Group anti-affinity: check if the number of servers from group 243c3452- 1fde-41ef- bf5a-1cddf1236a 7f on host ubuntu- xenial- rax-dfw- 0000714118 is less than 1. {{(pid=5417) host_passes /opt/stack/ new/nova/ nova/scheduler/ filters/ affinity_ filter. py:122} } xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.filters [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Filter ServerGroupAnti AffinityFilter returned 2 host(s) {{(pid=5417) get_filtered_ objects /opt/stack/ new/nova/ nova/filters. py:104} }
Jul 13 19:53:09.806055 ubuntu-
Jul 13 19:53:09.808871 ubuntu-
This is where we hit the server group anti-affinity filter for the second instance:
http:// logs.openstack. org/44/ 564444/ 14/check/ neutron- tempest- multinode- full/dba40b9/ logs/screen- n-sch.txt. gz#_Jul_ 13_19_53_ 09_917947
Jul 13 19:53:09.917947 ubuntu- xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.scheduler. filters. affinity_ filter [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Group anti-affinity: check if the number of servers from group 243c3452- 1fde-41ef- bf5a-1cddf1236a 7f on host ubuntu- xenial- rax-dfw- 0000714118 is less than 1. {{(pid=5417) host_passes /opt/stack/ new/nova/ nova/scheduler/ filters/ affinity_ filter. py:122} } xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.scheduler. filters. affinity_ filter [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Group anti-affinity: check if the number of servers from group 243c3452- 1fde-41ef- bf5a-1cddf1236a 7f on host ubuntu- xenial- rax-dfw- 0000714124 is less than 1. {{(pid=5417) host_passes /opt/stack/ new/nova/ nova/scheduler/ filters/ affinity_ filter. py:122} } xenial- rax-dfw- 0000714118 nova-scheduler[ 3485]: DEBUG nova.filters [None req-8b191d5b- 4c76-47c4- a322-d9c9a5ee6d 0b tempest- ServersOnMultiN odesTest- 1141629396 tempest- ServersOnMultiN odesTest- 1141629396] Filter ServerGroupAnti AffinityFilter returned 2 host(s) {{(pid=5417) g...
Jul 13 19:53:09.918313 ubuntu-
Jul 13 19:53:09.918709 ubuntu-