Skip to content

06. Object Storage: Swift

AJ NOURI edited this page Apr 24, 2017 · 3 revisions

1. Create user1, user2 and user3 under tenant "swift-company"

2. Create three text files "text1.txt, text2.txt and text3.txt" and upload them to a container "container-test1"

3. Create a text file "text4.txt and upload it to a container "container-test2"

4. Make sure container "container-test1" is publically accessible, but NOT "container-test2".

5. Make "container-test2" accessible only to user3.

6. Remove both text files from the local directory.

7. Restore the deleted files from the container.

8. We do not need text3.txt anymore, delete it from the container.

9. Some clients wants to have access to text1.txt and text2.txt, provide files urls to them.

10. It was decided to make container-test1 available until the next month, after that it should be deleted.

  • example of current date in epoch format: date +%s
  • In the same epoch format, choose a month from now: date -d "Sat Oct 22 06:14:01 UTC 2016" +%s

1459405259

11. Monitor the space left for object storage