Using object storage on an instance
Now that we have seen how to get files in and out of Swift, let's look at installing the necessary client libraries on an instance to be able to interact with object storage on the instance. We will need to have the Swift client installed so that the same Swift commands that were run on the control node's command line can be executed on an instance. In this cluster, Swift is using Keystone for authentication. Swift can also use other authentication. It has a built-in authentication system and can also be used with other common authentication systems. Since Swift is configured to use Keystone for authentication, the Keystone client will also need to be installed. Let's install those clients now:
instance# yum install -y openstack-swiftclient openstack-keystoneclient
Once those are installed, you will need to create a keystonerc
file to source. Here's how we go about this:
instance# cat > ~/keystonerc_danradez << EOF export OS_USERNAME=danradez...