1. floating_ips_client.py: The call to RestClient in __init__ is missing the 'nova' argument after auth_url
2. test_floating_ips_actions.py: Line 97 is missing self.floating_ip_id
3. test_floating_ips_actions.py: Line 27: The index 'private' is really the name of the private network and should come from the config
4. Even after fixing (1), there are still numerous errors (essex/devstack)
ubuntu@essex-devstack:~$ nosetests tempest/tests/test_floating_ips_actions.py
/usr/lib/pymodules/python2.7/nose/plugins/manager.py:383: RuntimeWarning: Unable to load plugin selenium = noseselenium.plugins:SeleniumPlugin: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
RuntimeWarning)
/usr/lib/pymodules/python2.7/nose/plugins/manager.py:383: RuntimeWarning: Unable to load plugin djangoliveserver = noseselenium.plugins:DjangoLiveServerPlugin: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
RuntimeWarning)
/usr/lib/pymodules/python2.7/nose/plugins/manager.py:383: RuntimeWarning: Unable to load plugin cherrypyliveserver = noseselenium.plugins:CherryPyLiveServerPlugin: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
RuntimeWarning)
/usr/lib/pymodules/python2.7/nose/plugins/manager.py:383: RuntimeWarning: Unable to load plugin selenium_fixtures = noseselenium.plugins:SeleniumFixturesPlugin: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
RuntimeWarning)
.E..EE.
======================================================================
ERROR: Positive test:Associate the provided floating IP to a specific server
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/tempest/tests/test_floating_ips_actions.py", line 93, in test_associate_floating_ip
self.fixed_ip_addr)
File "/home/ubuntu/tempest/services/nova/json/floating_ips_client.py", line 56, in associate_floating_ip_to_server
resp, body = self.client.post(url, post_body, None)
File "/home/ubuntu/tempest/common/rest_client.py", line 93, in post
return self.request('POST', url, headers, body)
File "/home/ubuntu/tempest/common/rest_client.py", line 124, in request
raise exceptions.NotFound(resp_body)
NotFound: Object not found
Details: Object not found
Details: 404 Not Found
The resource could not be found.
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://10.0.0.34:8774/v1.1/6aad1db96b0346a8871f77bd6714fd1d/os-floating-ips/1/associate
tempest.common.rest_client: ERROR: Request Body: {"associate_address": {"fixed_ip": "10.0.0.4"}}
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 09 Feb 2012 19:32:20 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'}
tempest.common.rest_client: ERROR: Response Body: 404 Not Found
The resource could not be found.
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Negative test:Deletion of a nonexistant floating IP
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/tempest/tests/test_floating_ips_actions.py", line 124, in test_delete_nonexistant_floating_ip
resp, body = self.client.delete_floating_ip(self.non_exist_id)
File "/home/ubuntu/tempest/services/nova/json/floating_ips_client.py", line 43, in delete_floating_ip
resp, body = self.client.delete(url)
File "/home/ubuntu/tempest/common/rest_client.py", line 99, in delete
return self.request('DELETE', url)
File "/home/ubuntu/tempest/common/rest_client.py", line 151, in request
raise exceptions.ComputeFault(message)
ComputeFault: Got compute fault
Details: Got compute fault
Details: The server has either erred or is incapable of performing the requested operation.
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://10.0.0.34:8774/v1.1/6aad1db96b0346a8871f77bd6714fd1d/os-floating-ips/99996594899503
tempest.common.rest_client: ERROR: Request Body: None
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 09 Feb 2012 19:32:21 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8'}
tempest.common.rest_client: ERROR: Response Body: {u'computeFault': {u'message': u'The server has either erred or is incapable of performing the requested operation.', u'code': 500}}
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Positive test:Dissociate the provided floating IP
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/tempest/tests/test_floating_ips_actions.py", line 109, in test_dissociate_floating_ip
self.fixed_ip_addr)
File "/home/ubuntu/tempest/services/nova/json/floating_ips_client.py", line 56, in associate_floating_ip_to_server
resp, body = self.client.post(url, post_body, None)
File "/home/ubuntu/tempest/common/rest_client.py", line 93, in post
return self.request('POST', url, headers, body)
File "/home/ubuntu/tempest/common/rest_client.py", line 124, in request
raise exceptions.NotFound(resp_body)
NotFound: Object not found
Details: Object not found
Details: 404 Not Found
The resource could not be found.
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://10.0.0.34:8774/v1.1/6aad1db96b0346a8871f77bd6714fd1d/os-floating-ips/1/associate
tempest.common.rest_client: ERROR: Request Body: {"associate_address": {"fixed_ip": "10.0.0.4"}}
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 09 Feb 2012 19:32:21 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'}
tempest.common.rest_client: ERROR: Response Body: 404 Not Found
The resource could not be found.
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 7 tests in 14.723s
FAILED (errors=3)
Fix proposed to branch: master /review. openstack. org/3981
Review: https:/