ip filtering short circuits based on regex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Matt Riedemann | ||
tempest |
Fix Released
|
Undecided
|
zhufl |
Bug Description
1. Problem:
test_
Traceback (most recent call last):
File "/home/
File "/usr/lib/
File "/usr/lib/
raise mismatch_error
MismatchError: [u'tempest-
2. Reason:
We can see from nova code that filter by ip is always "regexp match",
so if server2' ip happened to be part of server1's ip, then filter by
server1's ip will also return server2.
https:/
get_all
3. Solution:
There are 3 possibles ways,
1) create servers with specified ips, such as 1.1.1.1, 1.1.1.2, 1.1.1.3
2) find the longest ip in servers, and filter it by that ip, then only
one server will be returned
3) filter using server1's ip, and using assertIn or assertNotIn according
to whether other server ip is part of server1's ip
description: | updated |
Changed in tempest: | |
assignee: | nobody → zhufl (zhu-fanglei) |
status: | New → In Progress |
no longer affects: | tempest |
summary: |
- test_list_servers_filtered_by_ip fails ccasionally + ip filtering short circuits based on regex |
Fix proposed to branch: master /review. openstack. org/439428
Review: https:/