Ich versuche, ein 'Swift All In One'-System auf einer Ubuntu 12.04 VM unter dem folgenden Link einzurichten: http://docs.openstack.org/developer/swift/development_saio.html.
Ich benutze VMware WorkStation 12 Pro auf Win7 64-Bit-System und verwenden 'Host-only' Netzwerk-Modus. Die VM-IP-Adresse ist "192.168.137.200".
Wenn ich den Befehl auf dem VM:curl: (6) Host konnte nicht aufgelöst werden, 401 Nicht autorisiert auf Openstack Swift (SAIO)
curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://192.168.137.200/auth/v1.0
es gut funktioniert.
Aber wenn ich den Befehl auf dem Host-Rechner (Win7-Plattform) laufen, es schlägt fehl und kehrt:
* 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
Dann mache ich einen anderen Ubuntu 12.04 VM und versuchen, den Befehl über auf denen sie laufen die zweite VM, es funktioniert gut.