OpenStack Icehouse : Configure Swift#1 (Control Node)2014/06/11 |
Configure OpenStack Object Storage (Swift).
This example shows to configure like the environment below.
| +------------------+ | +-----------------+ | [ Control Node ] |10.0.0.30 | 10.0.0.70| [ Proxy Node ] | | Keystone |-----------+-----------| | +------------------+ | +-----------------+ | +---------------------------+--------------------------+ | | | |10.0.0.71 |10.0.0.72 |10.0.0.73 +-------+----------+ +--------+---------+ +--------+---------+ | [Storage Node#1] | | [Storage Node#2] | | [Storage Node#3] | | |-------| |-------| | +------------------+ +------------------+ +------------------+ |
[1] | Add Swift user or service on Keystone Server (Control Node) first. |
# add swift user root@dlp ~(keystone)# keystone user-create --tenant service --name swift --pass servicepassword --enabled true +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | | | enabled | True | | id | 84ed5aa1e88c41f890e1d2796b8be3b7 | | name | swift | | tenantId | 262c64f0637b4088bdd8c882d73d4e14 | | username | swift | +----------+----------------------------------+ # add swift user in admin role root@dlp ~(keystone)# keystone user-role-add --user swift --tenant service --role admin
# add an entry for swift service root@dlp ~(keystone)# keystone service-create --name=swift --type=object-store --description="Swift Service" +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | Swift Service | | enabled | True | | id | 13113fc4743a43abb354547c2e6e8758 | | name | swift | | type | object-store | +-------------+----------------------------------+ # define the IP address for Proxy Node root@dlp ~(keystone)# export proxy_host=10.0.0.70
# add an entry for swift endpoint root@dlp ~(keystone)# keystone endpoint-create --region RegionOne \ --service swift \ --publicurl "http://$proxy_host:8080/v1/AUTH_\$(tenant_id)s" \ --internalurl "http://$proxy_host:8080/v1/AUTH_\$(tenant_id)s" \ --adminurl "http://$proxy_host:8080/v1" +-------------+---------------------------------------------+ | Property | Value | +-------------+---------------------------------------------+ | adminurl | http://10.0.0.70:8080/v1 | | id | e25da3a961404555b1c1d33f1e9260c1 | | internalurl | http://10.0.0.70:8080/v1/AUTH_$(tenant_id)s | | publicurl | http://10.0.0.70:8080/v1/AUTH_$(tenant_id)s | | region | RegionOne | | service_id | 13113fc4743a43abb354547c2e6e8758 | +-------------+---------------------------------------------+ |
Sponsored Link |