Setting up a Keystone HSwift service

You need to have an object store service registered with Keystone in order to integrate HCP with Keystone. To register HSwift as an endpoint, you need to identify the Keystone service ID of the object-store service. Here is the command that lists the Keystone ID of the Swift service:

keystone service-get swift

To add a new HSwift service or create an HSwift and keep your current Swift service, follow these steps:

1.To register HCP as an endpoint with Keystone use the Keystone service create command where the service-id is the object-store service id identified in the previous step. The actual values for public, internal, and admin URL may be found in the System Management Console on the Openstack page. The command is:

keystone endpoint-create \
--region=
region \
--service-id=
id_from_previous \
--publicurl=
https://api.hcp.example.com/swift/v1/AUTH_%(tenant_id)s'\
--internalurl= https://
api.hcp.example.com/swift/v1/AUTH_%(tenant_id)s'\
--adminurl=https://api.hcp.example.com:8000/

If you are setting up HCP as a secondary object-store endpoint, you need to specify a unique region for the endpoint. Setting a different region allows you to have two swift endpoints configured for your Keystone Swift service.

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.