Hi,
The swift middleware formpost return 503 is the HTTP_USER_AGENT header is not set.
swift version is 1.8.0, master branch seems have the problem too.
Here the associated backtrace in the swift log:
# tail -2 /var/log/swift/proxy.error.log
Jun 12 14:44:25 localhost proxy-server 'HTTP_USER_AGENT': #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/swift3/middleware.py", line 737, in __call__#012 return self.handle_request(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift3/middleware.py", line 756, in handle_request#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/keystone/middleware/s3_token.py", line 134, in __call__#012 return self.app(environ, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift/common/middleware/tempurl.py", line 239, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift/common/middleware/formpost.py", line 316, in __call__#012 env['HTTP_USER_AGENT'] += ' FormPost'#012KeyError: 'HTTP_USER_AGENT' (txn: tx4f9b597cf56344da9995a6eccea5d90d)
Jun 12 14:45:17 localhost proxy-server 'HTTP_USER_AGENT': #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/swift3/middleware.py", line 737, in __call__#012 return self.handle_request(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift3/middleware.py", line 756, in handle_request#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/keystone/middleware/s3_token.py", line 134, in __call__#012 return self.app(environ, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift/common/middleware/tempurl.py", line 239, in __call__#012 return self.app(env, start_response)#012 File "/usr/lib/python2.7/dist-packages/swift/common/middleware/formpost.py", line 316, in __call__#012 env['HTTP_USER_AGENT'] += ' FormPost'#012KeyError: 'HTTP_USER_AGENT' (txn: txc2f612b9a4d740578e2a6a1277958a0c)
Thanks in advance
This affect swift3 which is not shipped with swift probably need to be reported there.