test_associate_ip_to_server_without_passing_floating_ip failed due to invalid assertion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
test_associate_
The openstack will return code 400 bad request when execute these cases, while the cases use not found(404) to do assertion:
@attr(
def test_associate_
# Negative test:Association of empty floating IP to specific server
# should raise NotFound exception
-------
_StringException: pythonlogging:'': {{{
2013-11-28 09:11:15,651 Request: POST http://
2013-11-28 09:11:15,653 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<Token omitted>'}
2013-11-28 09:11:15,655 Request Body: {"addFloatingIp": {"address": ""}}
2013-11-28 09:11:15,778 Response Status: 400
2013-11-28 09:11:15,779 Nova request id: req-d1300fe2-
2013-11-28 09:11:15,781 Response Headers: {'content-length': '96', 'date': 'Thu, 28 Nov 2013 15:11:15 GMT', 'content-type': 'application/json; charset=UTF-8', 'connection': 'close'}
2013-11-28 09:11:15,782 Response Body: {"badRequest": {"message": "NV-676D697 No nw_info cache associated with instance", "code": 400}}
}}}
Traceback (most recent call last):
File "/tmp/tempest/
'', self.server_id)
File "/usr/lib/
self.
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/tmp/tempest/
resp, body = self.post(url, post_body, self.headers)
File "/tmp/tempest/
return self.request(
File "/tmp/tempest/
resp, resp_body)
File "/tmp/tempest/
raise exceptions.
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'NV-676D697 No nw_info cache associated with instance', u'code': 400}}
@attr(type=
def test_dissociate
# Negative test:Dissociation of a non existent floating IP should fail
# Dissociating non existent floating IP
-------
_StringException: pythonlogging:'': {{{
2013-11-28 09:11:16,037 Request: POST http://
2013-11-28 09:11:16,038 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<Token omitted>'}
2013-11-28 09:11:16,040 Request Body: {"addFloatingIp": {"address": "0.0.0.0"}}
2013-11-28 09:11:16,147 Response Status: 400
2013-11-28 09:11:16,149 Nova request id: req-96de6b94-
2013-11-28 09:11:16,151 Response Headers: {'content-length': '96', 'date': 'Thu, 28 Nov 2013 15:11:16 GMT', 'content-type': 'application/json; charset=UTF-8', 'connection': 'close'}
2013-11-28 09:11:16,152 Response Body: {"badRequest": {"message": "NV-676D697 No nw_info cache associated with instance", "code": 400}}
}}}
Traceback (most recent call last):
File "/tmp/tempest/
"0.0.0.0", self.server_id)
File "/usr/lib/
self.
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/tmp/tempest/
resp, body = self.post(url, post_body, self.headers)
File "/tmp/tempest/
return self.request(
File "/tmp/tempest/
resp, resp_body)
File "/tmp/tempest/
raise exceptions.
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'NV-676D697 No nw_info cache associated with instance', u'code': 400}}
Changed in tempest: | |
status: | Invalid → New |
affects: | tempest → nova |
This actually seems like a nova bug