Merge "Doc: update swift-guide in kolla-ansible"
This commit is contained in:
commit
8bb44c4310
@ -168,25 +168,36 @@ A very basic smoke test:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ swift stat
|
$ openstack container create mycontainer
|
||||||
Account: AUTH_4c19d363b9cf432a80e34f06b1fa5749
|
+---------------------------------------+--------------+------------------------------------+
|
||||||
Containers: 1
|
| account | container | x-trans-id |
|
||||||
Objects: 0
|
+---------------------------------------+--------------+------------------------------------+
|
||||||
Bytes: 0
|
| AUTH_7b938156dba44de7891f311c751f91d8 | mycontainer | txb7f05fa81f244117ac1b7-005a0e7803 |
|
||||||
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
|
|
||||||
|
|
||||||
$ swift upload mycontainer README.rst
|
$ openstack object create mycontainer README.rst
|
||||||
README.md
|
+---------------+--------------+----------------------------------+
|
||||||
|
| object | container | etag |
|
||||||
|
+---------------+--------------+----------------------------------+
|
||||||
|
| README.rst | mycontainer | 2634ecee0b9a52ba403a503cc7d8e988 |
|
||||||
|
+---------------+--------------+----------------------------------+
|
||||||
|
|
||||||
$ swift list
|
$ openstack container show mycontainer
|
||||||
mycontainer
|
+--------------+---------------------------------------+
|
||||||
|
| Field | Value |
|
||||||
|
+--------------+---------------------------------------+
|
||||||
|
| account | AUTH_7b938156dba44de7891f311c751f91d8 |
|
||||||
|
| bytes_used | 6684 |
|
||||||
|
| container | mycontainer |
|
||||||
|
| object_count | 1 |
|
||||||
|
+--------------+---------------------------------------+
|
||||||
|
|
||||||
$ swift download mycontainer README.md
|
$ openstack object store account show
|
||||||
README.md [auth 0.248s, headers 0.939s, total 0.939s, 0.006 MB/s]
|
+------------+---------------------------------------+
|
||||||
|
| Field | Value |
|
||||||
|
+------------+---------------------------------------+
|
||||||
|
| Account | AUTH_7b938156dba44de7891f311c751f91d8 |
|
||||||
|
| Bytes | 6684 |
|
||||||
|
| Containers | 1 |
|
||||||
|
| Objects | 1 |
|
||||||
|
+------------+---------------------------------------+
|
||||||
|
Loading…
Reference in New Issue
Block a user