puppetlabs/puppetlabs-keystone — pull request #34 by jtopjian (2012-04-27 22:25:17+00:00)
Title: Rename "openstack" tenant to "admin" tenant

Keystone expects an "admin" tenant that the "admin" user is part of. Without this tenant, the service catalog is not properly retrieved when OpenStack services use Keystone for authentication.

For example, when the current Keystone Puppet module creates a tenant called "openstack" which it labels as the admin tenant. With this tenant, the following will happen when trying to run "glance index":

Failed to show index. Got error:
Response from Keystone does not contain a Glance endpoint.

If you would like to reproduce, here are my environment settings:

export SERVICE_TOKEN=12345
export SERVICE_PASSWORD=password
export SERVICE_ENDPOINT=http://localhost:35357/v2.0
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://localhost:35357/v2.0
export OS_TENANT_NAME=admin

Creating an "admin" tenant also more closely follows devstack as well as the sample data bundled with the Keystone package.