openstack-manuals/doc/install-guide/object-storage/section_object-storage-verifying-install.xml
Andreas Jaeger 69afda54b5 Cleanup openrc.sh creation and usage
Consistently create and use PROJECT-openrc.sh files. This is the default
when you use the dashboard, so let's follow this everywhere. This makes
it also clearer which project is used.

Change-Id: I5e4604ed61b29e86193697171a9fc84f673fc102
Partial-Bug: #1290082
2014-04-14 21:07:33 +02:00

43 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="verify-object-storage-installation"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<title>Verify the installation</title>
<para>You can run these commands from the proxy server or any
server that has access to the Identity Service.</para>
<procedure>
<step>
<para>Make sure that your credentials are set up correctly in the
<filename>admin-openrc.sh</filename> file and source it:</para>
<screen><prompt>$</prompt> <userinput>source admin-openrc.sh</userinput></screen>
</step>
<step><para>Run the following <command>swift</command> command:</para>
<screen><prompt>$</prompt> <userinput>swift stat</userinput>
<computeroutput>Account: AUTH_11b9758b7049476d9b48f7a91ea11493
Containers: 0
Objects: 0
Bytes: 0
Content-Type: text/plain; charset=utf-8
X-Timestamp: 1381434243.83760
X-Trans-Id: txdcdd594565214fb4a2d33-0052570383
X-Put-Timestamp: 1381434243.83760</computeroutput></screen>
</step>
<step>
<para>Run the following <command>swift</command> commands to upload
files to a container. Create the <filename>test.txt</filename> and
<filename>test2.txt</filename> test files locally if needed.</para>
<screen><prompt>$</prompt> <userinput>swift upload myfiles test.txt</userinput>
<prompt>$</prompt> <userinput>swift upload myfiles test2.txt</userinput></screen>
</step>
<step>
<para>Run the following <command>swift</command> command to
download all files from the <literal>myfiles</literal>
container:</para>
<screen><prompt>$</prompt> <userinput>swift download myfiles</userinput>
<computeroutput>test2.txt [headers 0.267s, total 0.267s, 0.000s MB/s]
test.txt [headers 0.271s, total 0.271s, 0.000s MB/s]</computeroutput></screen>
</step>
</procedure>
</section>