If account autocreate fails, container creation returns 404
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
cheng li |
Bug Description
Consider a Swift cluster with bad permissions on its disks, such as one might have when trying to set up a new cluster.
When you make a container PUT request, if the account does not exist and account_autocreate is on, then the proxy will try to automatically create the account prior to creating the container. However, if this fails (due to the bad permissions), the proxy returns a 404 to the client.
This is confusing to the client; a GET to the account returns 2xx, but a container PUT fails with a 404.
It would be preferable to fail the container PUT with a 5xx error code so that it is clear that the storage servers are not working. The account servers are already returning 5xx to the proxy, but the proxy is not passing that on to the client.
Changed in swift: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in swift: | |
assignee: | nobody → cheng li (chenga) |
Fix proposed to branch: master /review. openstack. org/533492
Review: https:/