13.3. Create the File Share Service Identity Records

After installing the necessary packages, create the Identity records required for the File Share Service. Perform the following procedure on the Identity service host, or on any machine onto which you have copied the keystonerc_admin file.

Note

For more details about the keystonerc_admin file, see Section 3.5, “Create an Administrator Account”.

Procedure 13.1. Creating Identity Records for the File Share Service

  1. Set up the shell to access the Identity service as an administrative user.
    # source ~/keystonerc_admin
  2. Create the manila service user:
    [(keystone_admin)]# keystone user-create --name manila --pass MANILAPASS --enabled true --email manila@localhost
    Replace MANILAPASS with a password that will be used by the File Share Service when authenticating with the Identity service.
  3. Add the admin role to the manila user.
    [(keystone_admin)]# keystone user-role-add --user manila --tenant services --role admin
  4. Create the manila service entities:
    [(keystone_admin)]# keystone service-create --name manila --type share --description "OpenStack Shared Filesystems"
  5. Create the manila endpoint entry:
    [(keystone_admin)]# keystone endpoint-create \
    --service manila \
    --publicurl 'http://MANILAIP:8786/v1/%(tenant_id)s' \
    --internalurl 'http://MANILAIP:8786/v1/%(tenant_id)s' \
    --adminurl 'http://MANILAIP:8786/v1/%(tenant_id)s' \
    --region 'RegionOne'
    Replace MANILAIP with the IP of the Controller node.