Installing and Configuring OpenStack (Juno) in Oracle® Solaris

Exit Print View

Updated: June 2016
 
 

How to Configure an Object Storage Node

Repeat this procedure on each object Storage node you want to set up.

  1. Install the Swift packages.
    storage-node # pkg install swift swiftclient
  2. Create ZFS datasets.
    storage-node # /usr/sbin/zfs create -o mountpoint=none rpool/export/swift
    storage-node # /usr/sbin/zfs create -o mountpoint=/srv rpool/export/swift/srv
    storage-node # /usr/sbin/zfs create -p rpool/export/swift/srv/node/disk0
    storage-node # /usr/bin/chown -R swift:swift /srv
    
  3. Copy files from the proxy server node as follows:
    1. Copy the /etc/swift/swift.conf file from the proxy server node to current node's /etc/swift directory.
    2. Copy the following files from the proxy server node to the current node's /etc/swift directory.
      • account.ring.gz

      • container.ring.gz

      • object.ring.gz

  4. Enable the Swift replicator service.
    storage-node # svcadm enable swift-replicator-rsync
  5. Set the ownership of the current node's /etc/swift directory.
    storage-node # chown -R swift:swift /etc/swift
  6. Enable all the Swift services.
    storage-node # for x in `svcs -a -o SVC | fgrep swift |  \
       egrep "account|container|object" | sort` \
          do \
               echo Starting $x \
               svcadm enable $x \
          done
    
  7. On the Controller node, enable users to access and operate the Swift services.
    1. Set global shell variables for Swift.
      controller# export OS_USERNAME=swift
      controller# export OS_PASSWORD=service-password
      controller# export OS_TENANT_NAME=service
      controller# export OS_AUTH_URL=http://$CONTROLLER_ADMIN_NODE:5000/v2.0
    2. Add the Keystone swiftoperator role.
      controller# keystone role-create --name swiftoperator
    3. Assign the swiftoperator role to authorized users of the Swift services.
      controller# keystone user-role-add --user user-name \
          --role swiftoperator --tenant tenant-id

Next Steps

To enable users to use the cloud, complete the preparations described in Post Installation and Configuration Tasks.