Comment 1 for bug 984762

Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Disassociating Floating IP without passing Floating is also yielding 500, instead of Raising NotFound exception

The following is the nosetest log:

Negative Test:DISASSOCIATE floating ip without passing ... ERROR

======================================================================
ERROR: Negative Test:DISASSOCIATE floating ip without passing
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/muralik/tempest_harika/5thJune/tempest/tempest/tests/test_floating_ips_actions.py", line 299, in test_dissociate_without_passing_floatingip
    self.client.disassociate_floating_ip_from_server('', self.server_id)
  File "/home/muralik/tempest_harika/5thJune/tempest/tempest/services/nova/json/floating_ips_client.py", line 72, in disassociate_floating_ip_from_server
    resp, body = self.post(url, post_body, self.headers)
  File "/home/muralik/tempest_harika/5thJune/tempest/tempest/common/rest_client.py", line 152, in post
    return self.request('POST', url, headers, body)
  File "/home/muralik/tempest_harika/5thJune/tempest/tempest/common/rest_client.py", line 225, 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.config: INFO: Using tempest config file /home/muralik/tempest_harika/5thJune/tempest/etc/tempest.conf
tempest.common.rest_client: ERROR: Request URL: http://10.233.52.27:8774/v2/b0f9c09937de4a15864cd15ea0c28810/images/f0a26cd1-0735-4347-8cdc-c70c829e9f87
tempest.common.rest_client: ERROR: Request Body: None
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Wed, 06 Jun 2012 14:03:44 GMT', 'status': '404', 'content-length': '62', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-bffa816d-1575-4a63-bd84-766412e76e2e'}
tempest.common.rest_client: ERROR: Response Body: {"itemNotFound": {"message": "Image not found.", "code": 404}}
tempest.common.rest_client: ERROR: Request URL: http://10.233.52.27:8774/v2/b0f9c09937de4a15864cd15ea0c28810/servers/f8f2dd2f-a5f6-43a1-9796-6f3279a4d595/action
tempest.common.rest_client: ERROR: Request Body: {"removeFloatingIp": {"address": ""}}
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Wed, 06 Jun 2012 14:04:06 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-3a6321ca-3dfa-447d-b809-f8c245d2ec22'}
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 << ---------------------

----------------------------------------------------------------------
Ran 1 test in 21.563s

FAILED (errors=1)