test_dhcp_stateful_fixedips_duplicate and test_dhcp_stateful_fixedips works incorrect with Contrail SDN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Mykola Yakovliev |
Bug Description
Tests
test_dhcp_
test_dhcp_
relying on `random.randrange` when selecting IP from subnet `allocation_pool`.
It cause some problems with Contrail SDN. For internal usage, Contrail allocates `:1` and `:2` (as well as `.1` and `.2`), where `:1` acts as a gateway and `:2` acts as a DNS.
Since tests aren't expect anything on `:2`, when by pure random this IP got selected for test purpose - test fails.
``
Traceback (most recent call last):
File "/home/
'ip_address': ip}])
File "/home/
**kwargs)
File "/home/
return self.create_
File "/home/
resp, body = self.post(req_uri, req_post_data)
File "/home/
return self.request(
File "/home/
self.
File "/home/
raise exceptions.
tempest.
Details: {u'message': u'An unknown exception occurred.', u'type': u'Conflict', u'detail': u''}
``
The extra confusion here adds by the fact that test_dhcp_
Fix proposed to branch: master /review. openstack. org/614866
Review: https:/