Functional tests fail intermittently with 400 Bad Request from placement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
melanie witt |
Bug Description
Noticed this on a test run on an unrelated patch I uploaded, functional test failure with trace:
2017-06-28 22:16:50,659 INFO [nova.api.
2017-06-28 22:16:50,659 INFO [nova.placement
2017-06-28 22:16:50,660 WARNING [nova.scheduler
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
JSON does not validate: Additional properties are not allowed (u'project_id', u'user_id' were unexpected)
Failed validating 'additionalProp
{'additiona
'properties': {'allocations': {'items': {'additionalPro
'required': ['allocations'],
'type': 'object'}
On instance:
{u'
u'project_id': u'6f70656e73746
u'user_id': u'fake'}
</body>
</html>)
The problem is that microversion 1.0 is being requested with parameters only available in microversion >= 1.8. This is because the PlacementFixture's _fake_put() method ignores the version keyword argument and doesn't pass it along to placement.
summary: |
- Functional tests fail intermittently with Bad Request from placement + Functional tests fail intermittently with 400 Bad Request from placement |
Fix proposed to branch: master /review. openstack. org/478683
Review: https:/