The issue can be seen only when using Ceph RadosGW. With openstack swift endpoint store we get the output as expected.
ashish@openstack-master:~$ swift list
new_cont
ashish@openstack-master:~$ swift list --lh
5 165K 2014-07-28 11:17:09 new_cont
5 165K
But with Ceph RadosGW we have:
ashish@firefly-master:~$ swift list --lh
Traceback (most recent call last):
File "/usr/local/bin/swift", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/opt/stack/python-swiftclient/bin/swift", line 24, in <module>
sys.exit(main())
File "/opt/stack/python-swiftclient/swiftclient/shell.py", line 1600, in main
globals()['st_%s' % args[0]](parser, argv[1:], thread_manager)
File "/opt/stack/python-swiftclient/swiftclient/shell.py", line 602, in st_list
utc = gmtime(float(meta.get('x-timestamp')))
TypeError: float() argument must be a string or a number
The issue can be seen only when using Ceph RadosGW. With openstack swift endpoint store we get the output as expected.
ashish@ openstack- master: ~$ swift list openstack- master: ~$ swift list --lh
new_cont
ashish@
5 165K 2014-07-28 11:17:09 new_cont
5 165K
But with Ceph RadosGW we have:
ashish@ firefly- master: ~$ swift list --lh bin/swift" , line 6, in <module> compile( open(__ file__) .read() , __file__, 'exec')) python- swiftclient/ bin/swift" , line 24, in <module> exit(main( )) python- swiftclient/ swiftclient/ shell.py" , line 1600, in main )['st_% s' % args[0]](parser, argv[1:], thread_manager) python- swiftclient/ swiftclient/ shell.py" , line 602, in st_list float(meta. get('x- timestamp' )))
Traceback (most recent call last):
File "/usr/local/
exec(
File "/opt/stack/
sys.
File "/opt/stack/
globals(
File "/opt/stack/
utc = gmtime(
TypeError: float() argument must be a string or a number