After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 110 of 317

Installing OpenStack Storage 100 Getting ready For this section, we will log in to our swift1 host. How to do it... As OpenStack Storage is a web service, we will use curl to do some basic tests to ensure our services are running as they should. We will perform some basic authentication and connect to our web service using these details. Using curl to test OpenStack Storage 1. We first authenticate to our swift proxy server running on port 8080, on our host. curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage- Pass: testing' http://127.0.0.1:8080/auth/v1.0 2. We should see output similar to the following, where we should get a HTTP 200 OK message back when successful: * About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET /auth/v1.0 HTTP/1.1 > User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 > Host: 127.0.0.1:8080 > Accept: */* > X-Storage-User: test:tester > X-Storage-Pass: testing > < HTTP/1.1 200 OK < X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_test < X-Storage-Token: AUTH_tkea3bbcb73a524cca8b244d0f0b10b824 < X-Auth-Token: AUTH_tkea3bbcb73a524cca8b244d0f0b10b824 < Content-Length: 0 < Date: Mon, 02 Jan 2012 20:28:57 GMT < * Connection #0 to host 127.0.0.1 left intact * Closing connection #0 3. We take the X-Storage-Url and X-Auth-Token reply headers and send this back, using curl again: curl -v -H 'X-Auth-Token: AUTH_tkea3bbcb73a524cca8b244d0f0b10b824' http://127.0.0.1:8080/v1/AUTH_test www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook