Object Storage サービスの動作を検証します。
注釈
コントローラーノードにおいて、これらの手順を実行します。
各クライアント環境スクリプトにおいて、API バージョン 3 を使用するよう Object Storage クライアントを設定します。
$ echo "export OS_AUTH_VERSION=3" \
| tee -a admin-openrc.sh demo-openrc.sh
demo のクレデンシャルを読み込みます。
$ source demo-openrc.sh
サービスの状態を表示します。
$ swift stat
Account: AUTH_ed0b60bf607743088218b0a533d5943f
Containers: 0
Objects: 0
Bytes: 0
Containers in policy "policy-0": 0
Objects in policy "policy-0": 0
Bytes in policy "policy-0": 0
X-Account-Project-Domain-Id: default
X-Timestamp: 1444143887.71539
X-Trans-Id: tx1396aeaf17254e94beb34-0056143bde
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
テストファイルをアップロードします。
$ swift upload container1 FILE
FILE
FILE はローカルファイルの名前で置き換えます。 container1 コンテナーにアップロードします。
コンテナーを一覧表示します。
$ swift list
container1
テストファイルをダウンロードします。
$ swift download container1 FILE
FILE [auth 0.295s, headers 0.339s, total 0.339s, 0.005 MB/s]
FILE は container1 コンテナーにアップロードしたファイルの名前に置き換えます。
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.