您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> 云计算 >> openstack swift curl 访问不成功 获取不到token

openstack swift curl 访问不成功 获取不到token

来源:网络整理     时间:2016/6/24 13:06:08     关键词:

关于网友提出的“ openstack swift curl 访问不成功 获取不到token”问题疑问,本网通过在网上对“ openstack swift curl 访问不成功 获取不到token”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: openstack swift curl 访问不成功 获取不到token
描述:

[root@localhost ~(keystone_admin)]# swift stat -v
                     StorageURL: http://10.0.0.45:8080/v1/AUTH_4f77413ab2714777828cd175296b15f3
                     Auth Token: d55cb6362e1a4ff48c6cf58f277b24a5
                        Account: AUTH_4f77413ab2714777828cd175296b15f3
                     Containers: 6
                        Objects: 14
                          Bytes: 288852779
Containers in policy "policy-0": 6
   Objects in policy "policy-0": 14
     Bytes in policy "policy-0": 288852779
    X-Account-Project-Domain-Id: default
                    X-Timestamp: 1431406844.36179
                     X-Trans-Id: tx8db0d0ef856448919cd46-00556d29e1
                   Content-Type: text/plain; charset=utf-8
                  Accept-Ranges: bytes
curl -k -v -H 'X-Storage-User: admin' -H 'X-Storage-Pass: 8bfddf0b429d495e' http://10.0.0.45:8080/v1/AUTH_4f77413ab2714777828cd175296b15f3
* About to connect() to 10.0.0.45 port 8080 (#0)
*   Trying 10.0.0.45...
* Connected to 10.0.0.45 (10.0.0.45) port 8080 (#0)
> GET /v1/AUTH_4f77413ab2714777828cd175296b15f3 HTTP/1.1
> User-Agent: curl/7.42.1
> Host: 10.0.0.45:8080
> Accept: */*
> X-Storage-User: admin:user
> X-Storage-Pass: 8bfddf0b429d495e

< HTTP/1.1 401 Unauthorized
< Content-Length: 131
< Content-Type: text/html; charset=UTF-8
< Www-Authenticate: Swift realm="AUTH_4f77413ab2714777828cd175296b15f3"
< WWW-Authenticate: Keystone uri='http://10.0.0.45:5000'
< X-Trans-Id: tx810934c0a4a240e289a93-00556d5133
< Date: Tue, 02 Jun 2015 06:46:11 GMT

* Connection #0 to host 10.0.0.45 left intact

Unauthorized

This server could not verify that you are authorized to access the document you requested.


请问是怎么回事?难道为的URL不对吗?   我登录http://10.0.0.45/dashboard 都是可以的阿


解决方案1:

这是做什么的


以上介绍了“ openstack swift curl 访问不成功 获取不到token”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/2034660.html

相关图片

相关文章