OpenStack: Deploying the Swift Object Storage Proxy Service

From Define Wiki
Jump to navigation Jump to search
[root@server2-a ~(keystone_admin)]$ cp /etc/swift/proxy-server.conf /etc/swift/proxy-server.conf.orig
[root@server2-a ~(keystone_admin)]$ vi /etc/swift/proxy-server.conf
[root@server2-a ~(keystone_admin)]$ crudini --set /etc/swift/proxy-server.conf filter:authtoken admin_tenant_name services
[root@server2-a ~(keystone_admin)]$ crudini --set /etc/swift/proxy-server.conf filter:authtoken identity_uri http://172.25.2.10:35357
[root@server2-a ~(keystone_admin)]$ crudini --set /etc/swift/proxy-server.conf filter:authtoken admin_user swift
[root@server2-a ~(keystone_admin)]$ crudini --set /etc/swift/proxy-server.conf filter:authtoken admin_password redhat
[root@server2-a ~(keystone_admin)]$ systemctl start memcached
[root@server2-a ~(keystone_admin)]$ systemctl start openstack-swift-proxy
[root@server2-a ~(keystone_admin)]$ tail /var/log/messages 
Apr 28 13:00:36 localhost proxy-server: Starting keystone auth_token middleware
Apr 28 13:00:36 localhost proxy-server: Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
Apr 28 13:00:36 localhost proxy-server: Using /tmp/keystone-signing-swift as cache directory for signing certificate
Apr 28 13:00:36 localhost proxy-server: Adding required filter dlo to pipeline at position 0
Apr 28 13:00:36 localhost proxy-server: Adding required filter gatekeeper to pipeline at position 0
Apr 28 13:00:36 localhost proxy-server: Adding required filter catch_errors to pipeline at position 0
Apr 28 13:00:36 localhost proxy-server: Pipeline was modified. New pipeline is "catch_errors gatekeeper dlo healthcheck memcache keystoneclient.middleware.auth_token:filter_factory keystoneauth proxy".
Apr 28 13:00:36 localhost proxy-server: Starting keystone auth_token middleware
Apr 28 13:00:36 localhost proxy-server: Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
Apr 28 13:00:36 localhost proxy-server: Using /tmp/keystone-signing-swift as cache directory for signing certificate
[root@server2-a ~(keystone_admin)]$ systemctl enable memcached
ln -s '/usr/lib/systemd/system/memcached.service' '/etc/systemd/system/multi-user.target.wants/memcached.service'
[root@server2-a ~(keystone_admin)]$ systemctl enable openstack-swift-proxy
ln -s '/usr/lib/systemd/system/openstack-swift-proxy.service' '/etc/systemd/system/multi-user.target.wants/openstack-swift-proxy.service'