Troubleshooting with Swiftclient

2018-06-27 15:07

Swiftclient can be used to debug your swift's objects and to determine whether there are any issues with them. You can check this page how to download swiftclient and basic usage:

Check your container stats

swift --os-username YOUR_USERNAME --os-tenant-name YOUR_TENANT --os-password YOUR_PASSWORD --os-auth-url stat YOUR_CONTAINER

Container: test2
Objects: 0
Bytes: 0
Read ACL: .r:*,.rlistings               
Write ACL:
Sync To:
Sync Key:
Accept-Ranges: bytes
X-Timestamp: 1436262476.77998
Content-Type: text/plain; charset=utf-8

With this command you can check your container objects' number and size, ACL, synchronization URL etc.

Check your object's headers

swift --os-username YOUR_USERNAME --os-tenant-name YOUR_TENANT --os-password YOUR_PASSWORD --os-auth-url stat YOUR_CONTAINER FILE

Object: test.mp4
Content Type: video/mp4
Content Length: 32037854
Last Modified:
Meta Mtime: 1434002653
Accept-Ranges: bytes
X-Timestamp: 1436194451.06674

Here you can check object's content type headers which is important for streaming videos, length, last modified etc

Tags: Swiftclient, Troubleshooting