Ask Your Question
0

swift3 can't put object which is bigger than 16M

asked 2016-04-13 22:05:56 -0500

Caiping gravatar image

I deployed an environment of swift with SAIO instructions, and config swift3 in order to access swift with s3 command. But when I put an object which is bigger than 16M through s3, the operation will fail. if the object is smaller than 16M, that would be OK. And if use Curl to send the request, also success.

[root@localhost testdln]# dd if=/dev/zero of=file bs=1M count=16 16+0 records in 16+0 records out 16777216 bytes (17 MB) copied, 0.0778967 s, 215 MB/s

[root@localhost testdln]# s3 -u put myfiles/file filename=file

ERROR: ErrorInternalError Message: unexpected status code 404

[root@localhost testdln]# [root@localhost testdln]# curl -X PUT -i -H 'X-Auth-Token: AUTH_tkafbd6ee7b0404bcc8dfded32906f03e4' -T file http://10.32.231.28:8080/v1/AUTH_test/myfiles/file (http://10.32.231.28:8080/v1/AUTH_test...) HTTP/1.1 100 Continue

HTTP/1.1 201 Created Last-Modified: Thu, 14 Apr 2016 02:52:46 GMT Content-Length: 0 Etag: ce4973df45de0a550edca65efe40ebbf Content-Type: text/html; charset=UTF-8 X-Trans-Id: txb5bede47295243b48ab01-00570f05fd Date: Thu, 14 Apr 2016 02:52:49 GMT

[root@localhost testdln]#

16M is a sensitive size, what's the probable cause of this problem?

thanks caiping

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-26 02:16:57 -0500

Caiping gravatar image

Now I know the problem is related with multipart upload in libs3. Since the MULTIPART_CHUNK_SIZE in libs3 is set as 15M, so 16M looks like a particular value. By setting the SLO correctly, and restart the swift server, the problem didn't appear again.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-13 22:05:56 -0500

Seen: 97 times

Last updated: Apr 26 '16