stub account response output missing policy information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Low
|
Praveen N |
Bug Description
The standard stub response from a not-yet-vivified account response looks like this:
ubuntu@saio:~$ curl -H 'x-auth-token: AUTH_tkb60a7daa
HTTP/1.1 204 No Content
Content-Type: text/plain; charset=utf-8
X-Account-
X-Timestamp: 1476148431.41888
X-Account-
X-Account-
X-Put-
Content-Length: 0
X-Trans-Id: tx90aebc67fe2e4
Date: Tue, 11 Oct 2016 01:13:51 GMT
all of the container/object count/bytes are filled in with default zeros
it stays this way even after you add metadata:
ubuntu@saio:~$ curl -H 'x-auth-token: AUTH_tkb60a7daa
HTTP/1.1 204 No Content
Content-Length: 0
X-Account-
X-Account-
X-Timestamp: 1476148443.33746
X-Account-
X-Account-
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
X-Trans-Id: tx607b229846a44
Date: Tue, 11 Oct 2016 01:14:05 GMT
But once you create a container in a storage policy you start to see additional stats show up for those policies:
ubuntu@saio:~$ curl -H 'x-auth-token: AUTH_tkb60a7daa
HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Account-
X-Account-
X-Account-
X-Account-
X-Timestamp: 1476148443.34108
X-Account-
X-Account-
Content-Type: text/plain; charset=utf-8
X-Account-
X-Trans-Id: tx62a71784ec5b4
Date: Tue, 11 Oct 2016 01:16:38 GMT
... and they stay there even if you delete the container:
ubuntu@saio:~$ curl -H 'x-auth-token: AUTH_tkb60a7daa
HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Account-
X-Account-
X-Account-
X-Account-
X-Timestamp: 1476148443.33131
X-Account-
X-Account-
Content-Type: text/plain; charset=utf-8
X-Account-
X-Trans-Id: txe3bac046f7924
Date: Tue, 11 Oct 2016 01:16:54 GMT
This dynamism makes it a little hard to set expectations for new clients (e.g. lp bug #1622138)
Changed in swift: | |
assignee: | nobody → Praveen N (praveenn) |
Hi Clay,
As we have analyzed this issue, if we want to fix this issue then it can be accomplished when all the container would be deleted from that account, then account stat can be reverted to the initial stage.
Please confirm.