Ask Your Question
0

Why won't containers show when I run containers status command?

asked 2013-10-06 03:43:35 -0500

vladber gravatar image

updated 2014-08-19 12:43:22 -0500

briancline gravatar image

Via Horizon I created few containers and uploaded there some files .

But when I run containers status command neither of them are listed .Why ?

root@control01#  swift -V 2 -A http://10.43.16.2:5000/v2.0/ -V 2 -U services:swift -K swift_pass stat
       Account: AUTH_07a9981a8978415aa9a0bf6c4b5dbbfa
    Containers: 0
       Objects: 0
         Bytes: 0
    Accept-Ranges: bytes
    X-Timestamp: 1380714808.07563
    X-Trans-Id: txb80b53f1261a43eea757ecc56c39b5e9
    Content-Type: text/plain; charset=utf-8
edit retag flag offensive close merge delete

Comments

Are the Dashboard swift user & the one you are passing via command line are same?

koolhead17 gravatar imagekoolhead17 ( 2013-10-10 08:24:08 -0500 )edit

Yes . It's easy to check - if I change swift user password I get error .this time I have another OS setup with the same problem . root@control01:~# swift -v -V 2.0 -A http://10.63.16.238:5000/v2.0/ -U services:swift -K swift_pass1 stat Unauthorised. Check username, password and tenant name/id

vladber gravatar imagevladber ( 2013-10-10 09:10:32 -0500 )edit

As swift user in Dashboard I created a new container .then it possible to list it : # swift -v -V 2.0 -A http://10.63.16.238:5000/v2.0/ -U services:swift -K swift_pass stat Account: AUTH_a3af2b40ad73436fab6bf28b208e12a1 Containers: 1 Objects: 0 Bytes: 0 Accept-Ranges: bytes X-Timestamp: 1381235066.97772 X-Trans-Id: tx85e9b05914554dc088340e2f652d7721 Content-Type: text/plain; charset=utf-8 root@control01:~# swift -v -V 2.0 -A http://10.63.16.238:5000/v2.0/ -U services:swift -K swift_pass list swift-demo root@control01:~# swift -v -V 2.0 -A http://10.63.16.238:5000/v2.0/ -U services:swift -K swift_pass list swift-demo image So , other users can create thier containers but the are not visible in CLI .

vladber gravatar imagevladber ( 2013-10-10 09:34:52 -0500 )edit

Is via dashboard you have defined same credentials? user/tenent/roles

koolhead17 gravatar imagekoolhead17 ( 2013-11-12 21:06:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-13 12:00:17 -0500

clayg gravatar image

By default the swift command line tool will only show the containers for the tenant which is being authenticated under their own storage account.

You can use the --os-storage-url option to bypass the default storage-url and view the containers/account_info for another tenant/storage-account if you have an authorized token (i.e. .reseller_admin)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-06 03:43:35 -0500

Seen: 333 times

Last updated: Nov 13 '13