swift 401 wget

asked 2017-01-12 06:18:01 -0600

infinitydon gravatar image

updated 2017-01-24 14:29:35 -0600

rbowen gravatar image

Hello,

I am getting un-authorized error when i try to access a container in swift, though I have set the permission to reaad-only (I used Kolla all in one):

*~$ wget http://192.168.100.11:8080/v1/AUTH_df2d99038a6f48c9922054db09611e31/admin/test
--2017-01-12 13:11:42--  http://192.168.100.11:8080/v1/AUTH_df2d99038a6f48c9922054db09611e31/admin/test
Connecting to 192.168.100.11:8080... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.*

I already set the permission using the following command:

**swift post -r ".r:*" admin**

~$ swift stat admin                                                                                                                                
         Account: AUTH_df2d99038a6f48c9922054db09611e31
       Container: admin
         Objects: 1
           Bytes: 0
        Read ACL: .r:*
       Write ACL:
         Sync To:
        Sync Key:
   Accept-Ranges: bytes
      X-Trans-Id: txd71f611685ce4c9aa4d78-0058777354
X-Storage-Policy: Policy-0
   Last-Modified: Thu, 12 Jan 2017 12:15:13 GMT
     X-Timestamp: 1484220610.72603
    Content-Type: text/plain; charset=utf-8

I have checked the swift logs and keystone logs, I could not find any insights

edit retag flag offensive close merge delete