IP tests fail with "Got compute fault"

Bug #1182164 reported by Avishay Traeger
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned
tempest
In Progress
Undecided
Unassigned

Bug Description

See here:
http://logs.openstack.org/29638/1/gate/gate-tempest-devstack-vm-postgres-full/16657/

For example:
2013-05-20 17:11:00.552 | ERROR: tempest.tests.compute.admin.test_fixed_ips.FixedIPsTestJson.test_set_reserve_with_invalid_ip[negative]
2013-05-20 17:11:00.552 | ----------------------------------------------------------------------
2013-05-20 17:11:00.552 | _StringException: Traceback (most recent call last):
2013-05-20 17:11:00.553 | File "/opt/stack/new/tempest/tempest/tests/compute/admin/test_fixed_ips.py", line 97, in test_set_reserve_with_invalid_ip
2013-05-20 17:11:00.553 | "my.invalid.ip", body)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 394, in assertRaises
2013-05-20 17:11:00.553 | self.assertThat(our_callable, matcher)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
2013-05-20 17:11:00.553 | mismatch = matcher.match(matchee)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 99, in match
2013-05-20 17:11:00.553 | mismatch = self.exception_matcher.match(exc_info)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_higherorder.py", line 61, in match
2013-05-20 17:11:00.553 | mismatch = matcher.match(matchee)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 386, in match
2013-05-20 17:11:00.553 | reraise(*matchee)
2013-05-20 17:11:00.553 | File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 92, in match
2013-05-20 17:11:00.553 | result = matchee()
2013-05-20 17:11:00.554 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 867, in __call__
2013-05-20 17:11:00.554 | return self._callable_object(*self._args, **self._kwargs)
2013-05-20 17:11:00.554 | File "/opt/stack/new/tempest/tempest/services/compute/json/fixed_ips_client.py", line 39, in reserve_fixed_ip
2013-05-20 17:11:00.554 | resp, body = self.post(url, json.dumps(body), self.headers)
2013-05-20 17:11:00.554 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 174, in post
2013-05-20 17:11:00.554 | return self.request('POST', url, headers, body)
2013-05-20 17:11:00.554 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 302, in request
2013-05-20 17:11:00.554 | resp, resp_body)
2013-05-20 17:11:00.554 | File "/opt/stack/new/tempest/tempest/common/rest_client.py", line 388, in _error_checker
2013-05-20 17:11:00.554 | raise exceptions.ComputeFault(message)
2013-05-20 17:11:00.554 | ComputeFault: Got compute fault
2013-05-20 17:11:00.554 | Details: The server has either erred or is incapable of performing the requested operation.

Tags: network
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

The test suite fails only with Quantum enabled.

Though in my devstack environment it fails with a different stack trace :
Details: {"itemNotFound": {"message": "Fixed IP 10.0.0.4 not found", "code": 404}}

Changed in tempest:
assignee: nobody → Satyanarayana Patibandla (satya-patibandla)
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

These tests make use of nova/api/openstack/compute/contrib/fixed_ips.py. But this file is not "Quantum aware" at all. Moreover the method get_fixed_ip from nova/network/quantumv2/api.py that might be called for these tests is flagged as "NotImplemented".

A possible fix would be to use network.API().get_fixed_ip_by_address() with Quantum and network.API().get_fixed_ip() without Quantum. But that's not elegant at all.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/31755

Changed in tempest:
assignee: Satyanarayana Patibandla (satya-patibandla) → Jordan Pittier (jordan-pittier)
status: New → In Progress
tags: added: network
Revision history for this message
Mauro S M Rodrigues (maurorodrigues) wrote :

Guys I'm not sure this has something to do with Quantum.
In fact I don't know if quantum implements those functionalities, but the problem pointed in the review link is related to postgresql and fixed by this patch I've made https://review.openstack.org/#/c/30057/

You can check this looking into n-api logs of the pointed run
http://logs.openstack.org/29638/1/gate/gate-tempest-devstack-vm-postgres-full/16657/logs/screen-n-api.txt.gz
Look for:
2013-05-20 16:36:06.461 9540 TRACE nova.api.openstack DataError: (DataError) invalid input syntax for type inet: "my.invalid.ip"

Revision history for this message
Mauro S M Rodrigues (maurorodrigues) wrote :

If I'm right this is a duplicate of bug #1182754

Changed in tempest:
assignee: Jordan Pittier (jordan-pittier) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.