PUT /placement/traits/{trait} occasionally fails with 502 Bad Gateway
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| placement |
New
|
Undecided
|
Unassigned | ||
Bug Description
We've been seeing a failures in a test in OpenStackSDK. The test simply create a new trait, lists all traits, shows the created trait, and then deletes the created trait. The failure occurs during the create step, when Apache returns the following error message:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
<p>
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>
</body></html>
Searching for "Additionally, a 201 Created error" returns exactly one result on Google, so this is a very unusual condition. I suspect this might not be a placement issue but rather an issue with uWSGI or WebOb but I've yet to find a smoking gun. Fortunately reproduction is relatively easy: against a local DevStack deployment run the following from the openstacksdk repo:
OS_
-n openstack/
-
Note that you may need to enable this test as we're going to skip it shortly.