2016-03-25 8 views
0

Ubuntu 12.04 VMで 'Swift All In One'システムをリンク:http://docs.openstack.org/developer/swift/development_saio.htmlで設定しようとしています。
Win7 64bitシステムでVMware WorkStation 12 Proを使用し、「ホストオンリー」ネットワークモードを使用します.VM IPアドレスは「192.168.137.200」です。
私はVMにコマンドを実行すると:それはうまく機能curl:(6)ホストを解決できませんでした。401 Openstack Swift(SAIO)の権限がありません。

curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://192.168.137.200/auth/v1.0 


しかし、私は、ホストマシン(Win7のプラットフォーム)上でコマンドを実行すると、それは失敗し、リターン:

* Could not resolve host: test:tester'; Host not found 
 
* Closing connection #0 
 
curl: (6) Could not resolve host: test:tester'; Host not found 
 
* Could not resolve host: testing'; Host not found 
 
* Closing connection #0 
 
curl: (6) Could not resolve host: testing'; Host not found 
 
* About to connect() to 192.168.137.200 port 80 (#0) 
 
* Trying 192.168.137.200... connected 
 
* Connected to 192.168.137.200 (192.168.137.200) port 80 (#0) 
 
> GET /auth/v1.0 HTTP/1.1 
 
> User-Agent: curl/7.20.1 (amd64-pc-win32) libcurl/7.20.1 OpenSSL/0.9.8n zlib/1. 
 
2.3 
 
> Host: 192.168.137.200 
 
> Accept: */* 
 
> 
 
< HTTP/1.1 401 Unauthorized 
 
< Date: Fri, 25 Mar 2016 05:57:24 GMT 
 
< Content-Length: 131 
 
< Content-Type: text/html; charset=UTF-8 
 
< Www-Authenticate: Swift realm="unknown" 
 
< X-Trans-Id: tx081d67bec35b457bb4cb8-0056f4d343 
 
< Vary: Accept-Encoding 
 
< 
 
<html><h1>Unauthorized</h1><p>This server could not verify that you are authoriz 
 
ed to access the document you requested.</p></html>* Connection #0 to host 192.1 
 
68.137.200 left intact 
 
* Closing connection #0

その後、私は別のUbuntu 12.04 VMを作成し、上記のコマンドを実行してみてください2番目のVM、それはうまく動作します。

答えて

関連する問題