Tempest floating ips test for compute api fail with "no floating pool found" Error but pass with network api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Unassigned |
Bug Description
BACKGROUND:
i have a floating pool named "public" :
ogden-cumulus:
+--------+
| Name |
+--------+
| public |
+--------+
now running tempest floating ips test via compute api . they fail as "no floating pool found" .
=============
./run_tempest,sh tempest.
2015-07-22 23:09:03.217 19265 INFO tempest_
2015-07-22 23:09:03.217 19265 DEBUG tempest_
Body: {"pool": null}
Response - Headers: {'status': '404', 'content-length': '73', 'x-compute-
Body: {"itemNotFound": {"message": "Floating ip pool not found.", "code": 404}} _log_request_full /var/lib/
=============
in the above error, we can see the Body{pool: null} passed, because the compute floating IPs client initializes the floating ip with pool value = None.
so they fail.
MORE DETAILS:
when trying to run the tempest api compute tests for floating ips:
```````
./run_tempest.sh tempest.
=======
FAIL: setUpClass (tempest.
-------
Traceback (most recent call last):
testtools.
File "tempest/test.py", line 272, in setUpClass
six.
File "tempest/test.py", line 265, in setUpClass
cls.
File "tempest/
body = cls.client.
File "tempest/
resp, body = self.post(url, post_body)
File "/var/lib/
return self.request(
File "/var/lib/
resp, resp_body)
File "/var/lib/
raise exceptions.
tempest_
Details: {u'message': u'Floating ip pool not found.', u'code': 404}
````````````````
when running floating ip tests for neutron, they passed because i set the correct value of pool "public" in tempest.conf :
network.
network.
with that set, neutron floating ip tests pass without any issues.
But i dont see any option for compute to specify a pool, or even looking at the code, it sets the pool value to None .
the same reason, why scenario.my test_volume_
summary: |
Tempest floating ips test for compute api fail with "no floating pool - found" but pass network api + found" Error but pass with network api |
actually the issue is fixed now . floating_ pool = public" under [default] section in nova.conf , restarted nova-api and the tests are passing now.
i set "default_
Slowest 7 tests took 50.82 secs: api.compute. floating_ ips.test_ floating_ ips_actions. FloatingIPsTest JSON allocate_ floating_ ip[id-f7bfb946- 297e-41b8- 9e8c-aba8e9bb51 94,network] 9.94 associate_ already_ associated_ floating_ ip[id-6edef4b2- aaf1-4abc- bbe3-993e2561e0 fe,network] 22.37 associate_ disassociate_ floating_ ip[id-307efa27- dc6f-48a0- 8cd2-162ce3ef0b 52,network] 7.58 delete_ floating_ ip[id-de45e989- b5ca-4a9b- 916b-04a52e7bbb 8b,network] 2.93 api.compute. floating_ ips.test_ floating_ ips_actions_ negative. FloatingIPsNega tiveTestJSON allocate_ floating_ ip_from_ nonexistent_ pool[id- 6e0f059b- e4dd-48fb- 8207-06e3bba5b0 74,negative, network] 2.49 associate_ ip_to_server_ without_ passing_ floating_ ip[id-804b4fcb- bbf5-412f- 925d-896672b61e b3,negative, network] 2.91 delete_ nonexistent_ floating_ ip[id-ae1c55a8- 552b-44d4- bfb6-2a115a15d0 ba,negative, network] 2.60
tempest.
test_
test_
test_
test_
tempest.
test_
test_
test_
Ran 9 tests in 164.357s
OK