File "/home/stack/tempest/tempest/api/compute/servers/test_list_server_filters.py", line 312, in test_list_servers_filtered_by_ip_regex
(self.s2_name, servers, all_servers))
File "/home/stack/tempest/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 421, in assertIn
self.assertThat(haystack, Contains(needle), message)
File "/home/stack/tempest/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
raise mismatch_error
You're right Dr. Jens Harbott, thank you. I set the network values as you suggested and I was able reproduce the issue on the second run.
{0} tempest. api.compute. servers. test_list_ server_ filters. ListServerFilte rsTestJSON. test_list_ servers_ filtered_ by_ip_regex [0.712201s] ... FAILED
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/ stack/tempest/ tempest/ api/compute/ servers/ test_list_ server_ filters. py", line 312, in test_list_ servers_ filtered_ by_ip_regex
(self.s2_name, servers, all_servers))
File "/home/ stack/tempest/ .tox/py36/ lib/python3. 6/site- packages/ testtools/ testcase. py", line 421, in assertIn assertThat( haystack, Contains(needle), message)
self.
File "/home/ stack/tempest/ .tox/py36/ lib/python3. 6/site- packages/ testtools/ testcase. py", line 502, in assertThat
raise mismatch_error
testtools. matchers. _impl.MismatchE rror: 'tempest- ListServerFilte rsTestJSON- instance- 1400666750' not in <map object at 0x7f98f7c19cf8>: tempest- ListServerFilte rsTestJSON- instance- 1400666750 not found in [{'id': '9159497a- 50e9-4006- a854-1dd97cd76b 1f', 'name': 'tempest- ListServerFilte rsTestJSON- instance- 348922714' , 'links': [{'rel': 'self', 'href': 'http:// 10.0.0. 145:8774/ v2.1/servers/ 9159497a- 50e9-4006- a854-1dd97cd76b 1f'}, {'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ servers/ 9159497a- 50e9-4006- a854-1dd97cd76b 1f'}]}], all servers response: {'date': 'Tue, 23 Jun 2020 08:11:20 GMT', 'server': 'Apache', 'content-length': '4652', 'openstack- api-version' : 'compute 2.1', 'x-openstack- nova-api- version' : '2.1', 'vary': 'OpenStack- API-Version, X-OpenStack- Nova-API- Version, Accept- Encoding' , 'x-openstack- request- id': 'req-e04652e6- b382-48a0- a154-801a68d6c6 a7', 'x-compute- request- id': 'req-e04652e6- b382-48a0- a154-801a68d6c6 a7', 'connection': 'close', 'content-type': 'application/json', 'status': '200', 'content-location': 'http:// 10.0.0. 145:8774/ v2.1/servers/ detail'} 2d21-45c1- bc04-c6ff72fbfe 5c', 'name': 'tempest- ListServerFilte rsTestJSON- instance- 1739922658' , 'status': 'ACTIVE', 'tenant_id': 'eb9df7d40dd349 8badc2f5f41b0b3 414', 'user_id': 'e4c92733343340 7d96feaa401ec8d fef', 'metadata': {}, 'hostId': 'fc3705f3c79aee 895d127ecdbeb0e 81af6429ad642c1 6961e6f60a67' , 'image': {'id': 'cbc5f817- eea2-43de- b3be-b350b71010 38', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ images/ cbc5f817- eea2-43de- b3be-b350b71010 38'}]}, 'flavor': {'id': '62825840- ccf1-41b6- 9887-8b91602f9f 4b', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ flavors/ 62825840- ccf1-41b6- 9887-8b91602f9f 4b'}]}, 'created': '2020-06- 23T08:11: 10Z', 'updated': '2020-06- 23T08:11: 19Z', 'addresses': {'tempest- ListServerFilte rsTestJSON- 742853868- network' : [{'version': 4, 'addr': '10.0.2.208', 'OS-EXT-IPS:type': 'fixed', 'OS-EXT- IPS-MAC: mac_addr' : 'fa:16: 3e:76:36: 30'}]}, 'accessIPv4': '', 'accessIPv6': '', 'links': [{'rel': 'self', 'href': 'http:// 10.0.0. 145:8774/ v2.1/servers/ 6f7a59cb- 2d21-45c1- bc04-c6ff72fbfe 5c'}, {'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ servers/ 6f7a59cb- 2d21-45c1- bc04-c6ff72fbfe 5c'}], 'OS-DCF: diskConfig' : 'MANUAL', 'progress': 0, 'OS-EXT- AZ:availability _zone': 'nova', 'config_drive': '', 'key_name': None, 'OS-SRV- USG:launched_ at': '2020-06- 23T08:11: 18.000000' , 'OS-SRV- USG:terminated_ at': None, 'OS-EXT- STS:task_ state': None, 'OS-EXT- STS:vm_ state': 'active', 'OS-EXT- STS:power_ state': 1, 'os-extended- volumes: volumes_ attached' : [], 'security_groups': [{'name': 'default'}]}, {'id': '5c591bc2- 5f0c-40dc- a835-b0961ebcb7 c5', 'name': 'tempest- ListServerFilte rsTestJSON- instance- 1400666750' , 'status': 'ACTIVE', 'tenant_id': 'eb9df7d40dd349 8badc2f5f41b0b3 414', 'user_id': 'e4c92733343340 7d96feaa401ec8d fef', 'metadata': {}, 'hostId': 'c5584e4f9565a0 9a9508688321972 a46079253e018b8 68fc0c092e7a' , 'image': {'id': 'db486d3f- a0e6-42f0- b792-82e85fc950 01', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ images/ db486d3f- a0e6-42f0- b792-82e85fc950 01'}]}, 'flavor': {'id': '294c7f6f- a123-44f4- 86fa-6e8ebc5b4d 9c', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ flavors/ 294c7f6f- a123-44f4- 86fa-6e8ebc5b4d 9c'}]}, 'created': '2020-06- 23T08:11: 09Z', 'updated': '2020-06- 23T08:11: 16Z', 'addresses': {'tempest- ListServerFilte rsTestJSON- 742853868- network' : [{'version': 4, 'addr': '10.0.3.71', 'OS-EXT-IPS:type': 'fixed', 'OS-EXT- IPS-MAC: mac_addr' : 'fa:16: 3e:d0:ba: d4'}]}, 'accessIPv4': '', 'accessIPv6': '', 'links': [{'rel': 'self', 'href': 'http:// 10.0.0. 145:8774/ v2.1/servers/ 5c591bc2- 5f0c-40dc- a835-b0961ebcb7 c5'}, {'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ servers/ 5c591bc2- 5f0c-40dc- a835-b0961ebcb7 c5'}], 'OS-DCF: diskConfig' : 'MANUAL', 'progress': 0, 'OS-EXT- AZ:availability _zone': 'nova', 'config_drive': '', 'key_name': None, 'OS-SRV- USG:launched_ at': '2020-06- 23T08:11: 16.000000' , 'OS-SRV- USG:terminated_ at': None, 'OS-EXT- STS:task_ state': None, 'OS-EXT- STS:vm_ state': 'active', 'OS-EXT- STS:power_ state': 1, 'os-extended- volumes: volumes_ attached' : [], 'security_groups': [{'name': 'default'}]}, {'id': '9159497a- 50e9-4006- a854-1dd97cd76b 1f', 'name': 'tempest- ListServerFilte rsTestJSON- instance- 348922714' , 'status': 'ACTIVE', 'tenant_id': 'eb9df7d40dd349 8badc2f5f41b0b3 414', 'user_id': 'e4c92733343340 7d96feaa401ec8d fef', 'metadata': {}, 'hostId': 'fc3705f3c79aee 895d127ecdbeb0e 81af6429ad642c1 6961e6f60a67' , 'image': {'id': 'cbc5f817- eea2-43de- b3be-b350b71010 38', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ images/ cbc5f817- eea2-43de- b3be-b350b71010 38'}]}, 'flavor': {'id': '294c7f6f- a123-44f4- 86fa-6e8ebc5b4d 9c', 'links': [{'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ flavors/ 294c7f6f- a123-44f4- 86fa-6e8ebc5b4d 9c'}]}, 'created': '2020-06- 23T08:11: 07Z', 'updated': '2020-06- 23T08:11: 14Z', 'addresses': {'tempest- ListServerFilte rsTestJSON- 742853868- network' : [{'version': 4, 'addr': '10.0.1.247', 'OS-EXT-IPS:type': 'fixed', 'OS-EXT- IPS-MAC: mac_addr' : 'fa:16: 3e:b0:56: 98'}]}, 'accessIPv4': '', 'accessIPv6': '', 'links': [{'rel': 'self', 'href': 'http:// 10.0.0. 145:8774/ v2.1/servers/ 9159497a- 50e9-4006- a854-1dd97cd76b 1f'}, {'rel': 'bookmark', 'href': 'http:// 10.0.0. 145:8774/ servers/ 9159497a- 50e9-4006- a854-1dd97cd76b 1f'}], 'OS-DCF: diskConfig' : 'MANUAL', 'progress': 0, 'OS-EXT- AZ:availability _zone': 'nova', 'config_drive': '', 'key_name': None, 'OS-SRV- USG:launched_ at': '2020-06- 23T08:11: 14.000000' , 'OS-SRV- USG:terminated_ at': None, 'OS-EXT- STS:task_ state': None, 'OS-EXT- STS:vm_ state': 'active', 'OS-EXT- STS:power_ state': 1, 'os-extended- volumes: volumes_ attached' : [], 'security_groups': [{'name': 'default'}]}]}
Body: {'servers': [{'id': '6f7a59cb-