
Simplify OpenRC files by removing the '.sh' suffix and using '.' instead of 'source' to load them. Change-Id: Ic553ea10ac4f3958525c97bbda02ebe7d4bac24f Implements: bp installguide-mitaka
3.4 KiB
Verify operation
Verify operation of the Object Storage service.
Note
Perform these steps on the controller node.
rdo
Warning
If one or more of these steps do not work, check the
/var/log/audit/audit.log
file for SELinux messages
indicating denial of actions for the swift
processes. If
present, change the security context of the /srv/node
directory to the lowest security level (s0) for the
swift_data_t
type, object_r
role and the
system_u
user:
# chcon -R system_u:object_r:swift_data_t:s0 /srv/node
Due to a bug, you must add a version to the
OS_AUTH_URL
variable in the environment scripts. For example:export OS_AUTH_URL=http://controller:5000/v3
Source the
demo
credentials:$ . demo-openrc
Show the service status:
$ 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
Create
container1
container:$ openstack container create container1 +---------------------------------------+------------+------------------------------------+ | account | container | x-trans-id | +---------------------------------------+------------+------------------------------------+ | AUTH_ed0b60bf607743088218b0a533d5943f | container1 | tx8c4034dc306c44dd8cd68-0056f00a4a | +---------------------------------------+------------+------------------------------------+
Upload a test file to the
container1
container:$ openstack object create container1 FILE +--------+------------+----------------------------------+ | object | container | etag | +--------+------------+----------------------------------+ | FILE | container1 | ee1eca47dc88f4879d8a229cc70a07c6 | +--------+------------+----------------------------------+
Replace
FILE
with the name of a local file to upload to thecontainer1
container.List files in the
container1
container:$ openstack object list container1 +------+ | Name | +------+ | FILE | +------+
Download a test file from the
container1
container:$ swift download container1 FILE FILE [auth 0.410s, headers 0.746s, total 1.001s, 22.494 MB/s]
Replace
FILE
with the name of the file uploaded to thecontainer1
container.Note
Due to a bug with the OpenStack client, you must use the conventional
swift
client or other compatible client to download files.