31f384e626
Don't use the keystone admin token to authenticate, but a real user instead (using the openrc.sh config file). This simplifies the swift commands, and makes the verification more consistent with the verification of other services. Change-Id: I6a2512cb6cbb2942c9e8673f3f7d960f2f740e8e backport: none
43 lines
2.0 KiB
XML
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>openrc.sh</filename> file and source it:</para>
|
|
<screen><prompt>$</prompt> <userinput>source 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>
|