Comment 6 for bug 1537721

Revision history for this message
Stuart McLaren (stuart-mclaren) wrote :

> radosgw create doesn't delete 0-length chunk when glance_store generated ZeroSize exception.

Ok (I've never used radosgw) but it's possible it could have slightly different behaviour here.

With Swift, if you create a zero length PUT, but don't send any data, Swift returns "499" and doesn't create the object:

 T 10.0.0.100:54416 -> 10.0.0.100:8080 [AP]
 PUT /v1/AUTH_30514a9dd11f4ed3970e46bfeb0b47ee/glance/0480d91e-49ee-401b-aae4-2b9911a33e45 HTTP/1.1.
 Host: 10.0.0.100:8080.
 Accept-Encoding: identity.
 content-length: 0.
 x-auth-token: xxx
 x-object-manifest: glance/0480d91e-49ee-401b-aae4-2b9911a33e45-.
 etag: d41d8cd98f00b204e9800998ecf8427e.
 user-agent: python-swiftclient-2.7.0.
 content-type: .
 .

 ####
 T 10.0.0.100:8080 -> 10.0.0.100:54411 [AP]
 HTTP/1.1 499 Client Disconnect.
 Content-Length: 89.
 Content-Type: text/html; charset=UTF-8.
 X-Trans-Id: txf24cf29ae2f14b0d93155-0056a61d90.
 Date: Mon, 25 Jan 2016 13:05:20 GMT.

It should be possible to check the equivalent radosgw behaviour (without Glance).