From 75d145a8505fbbff108ccc8f957cc40e9397181b Mon Sep 17 00:00:00 2001 From: Tone Zhang Date: Fri, 17 Nov 2017 15:43:34 +0800 Subject: [PATCH] Doc: update swift-guide in kolla-ansible In kolla-ansible "quick start" document, the python-openstackclient is recommended. It is better to validate Swift with "openstack" commands instead of "swift" commands. Change-Id: I6287b40f702de2f3c270109803fad8d93a903c01 Closes-Bug: #1732857 Signed-off-by: Tone Zhang --- doc/source/reference/swift-guide.rst | 49 +++++++++++++++++----------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/doc/source/reference/swift-guide.rst b/doc/source/reference/swift-guide.rst index f4339cc72b..5d5a92d27d 100644 --- a/doc/source/reference/swift-guide.rst +++ b/doc/source/reference/swift-guide.rst @@ -168,25 +168,36 @@ A very basic smoke test: :: - $ swift stat - Account: AUTH_4c19d363b9cf432a80e34f06b1fa5749 - Containers: 1 - Objects: 0 - Bytes: 0 - Containers in policy "policy-0": 1 - Objects in policy "policy-0": 0 - Bytes in policy "policy-0": 0 - X-Account-Project-Domain-Id: default - X-Timestamp: 1440168098.28319 - X-Trans-Id: txf5a62b7d7fc541f087703-0055d73be7 - Content-Type: text/plain; charset=utf-8 - Accept-Ranges: bytes + $ openstack container create mycontainer + +---------------------------------------+--------------+------------------------------------+ + | account | container | x-trans-id | + +---------------------------------------+--------------+------------------------------------+ + | AUTH_7b938156dba44de7891f311c751f91d8 | mycontainer | txb7f05fa81f244117ac1b7-005a0e7803 | + +---------------------------------------+--------------+------------------------------------+ - $ swift upload mycontainer README.rst - README.md + $ openstack object create mycontainer README.rst + +---------------+--------------+----------------------------------+ + | object | container | etag | + +---------------+--------------+----------------------------------+ + | README.rst | mycontainer | 2634ecee0b9a52ba403a503cc7d8e988 | + +---------------+--------------+----------------------------------+ - $ swift list - mycontainer + $ openstack container show mycontainer + +--------------+---------------------------------------+ + | Field | Value | + +--------------+---------------------------------------+ + | account | AUTH_7b938156dba44de7891f311c751f91d8 | + | bytes_used | 6684 | + | container | mycontainer | + | object_count | 1 | + +--------------+---------------------------------------+ - $ swift download mycontainer README.md - README.md [auth 0.248s, headers 0.939s, total 0.939s, 0.006 MB/s] + $ openstack object store account show + +------------+---------------------------------------+ + | Field | Value | + +------------+---------------------------------------+ + | Account | AUTH_7b938156dba44de7891f311c751f91d8 | + | Bytes | 6684 | + | Containers | 1 | + | Objects | 1 | + +------------+---------------------------------------+