openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04865
Solved ( was Re: Object PUT failed)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am using ext4 instead of xfs. After remounting with extended user
attributes, I was able to upload my files.
# mount -o remount,user_xattr -t ext4 /dev/sda3 /srv/node/sda3
# swift -A https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 -U system:root -K
testpass upload myfiles small.txt
small.txt
# swift -A https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 -U system:root -K
testpass stat
Account: AUTH_system
Containers: 2
Objects: 1
Bytes: 104857600
Accept-Ranges: bytes
# swift -A https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 -U system:root -K
testpass stat myfiles
Account: AUTH_system
Container: myfiles
Objects: 1
Bytes: 104857600
Read ACL:
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
Here's the relevant log:
Oct 18 10:48:16 b002 proxy-server ERROR 500 Traceback (most recent call
last):#012 File "/usr/lib/python2.6/site-packages/swift/obj/server.py",
line 715, in __call__#012 res = getattr(self, req.method)(req)#012
File "/usr/lib/python2.6/site-packages/swift/obj/server.py", line 520,
in PUT#012 file.put(fd, tmppath, metadata)#012 File
"/usr/lib64/python2.6/contextlib.py", line 34, in __exit__#012
self.gen.throw(type, value, traceback)#012 File
"/usr/lib/python2.6/site-packages/swift/obj/server.py", line 251, in
mkstemp#012 yield fd, tmppath#012 File
"/usr/lib/python2.6/site-packages/swift/obj/server.py", line 520, in
PUT#012 file.put(fd, tmppath, metadata)#012 File
"/usr/lib/python2.6/site-packages/swift/obj/server.py", line 275, in
put#012 write_metadata(fd, metadata)#012 File
"/usr/lib/python2.6/site-packages/swift/obj/server.py", line 89, in
write_metadata#012 setxattr(fd, '%s%s' % (METADATA_KEY, key or ''),
metastr[:254])#012 File
"/usr/lib64/python2.6/site-packages/xattr/__init__.py", line 200, in
setxattr#012 return xattr(f).set(attr, value, options=options)#012
File From Object Server re:
/v1/AUTH_system/builders/etc/swift/object.builder xxx.xx.xxx.xx:6000
(client_ip: xxx.xx.xxx.xx)
- --sharif
On 10/17/2011 04:24 PM, Sharif Islam wrote:
> I just finished setting up the swift nodes. I tried the following
> command from the proxy nodes:
>
> # swift -A https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 -U system:root -K
> testpass stat
> Account: AUTH_system
> Containers: 1
> Objects: 0
> Bytes: 0
> Accept-Ranges: bytes
>
>
>
> but this failed:
>
> # swift -A https://$PROXY_LOCAL_NET_IP:8080/auth/v1.0 -U system:root -K
> testpass upload myfiles test.txt
>
> I got:
> Object PUT failed:
> https://172.29.202.12:8080/v1/AUTH_system/myfiles/test.txt 503 Internal
> Server Error
>
>
> tail -n100 /var/log/messages here: http://paste.openstack.org/show/2745/
>
> And these are services running in that proxy node:
> http://paste.openstack.org/show/2746/
>
>
> Any idea what could be wrong?
>
> --sharif
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJOnZWaAAoJEACffes9SivFz9gIAInQotE1pJkaIIsKbtDpzcEe
TjOm1tGEyQMMKQi4FATnRWZMUB7levpoLCbb8KCCkL1RRlp+IGSUcPBeK86inf7+
4n2hWCzt7JJFZOpNOaKmB6kJ0be+Yh7D4cY2E1gpSQCLeAenkqQvAfost/MGHRMh
o0tGv27sDS4Wz+tG4pg//AA8EXHfDwo2IilLRpZZ5ftOGdJTDiYlKVNq3Kjkm5YW
6H4n94V8ACZEp2MqBCvgzn1MNxxtaanIcgzplybqPIIjB5kwtZxN2WPwaL3IAZEt
Ku6xgbLB4ceuEP8Jr9MSSPfJSfrGC71m3IMlS3FgqyEQRihGOLh0DnPguqBQOMI=
=tERz
-----END PGP SIGNATURE-----
References