Designate - Registering Keystone

asked 2015-10-20 05:20:37 -0600

itsme gravatar image

I have followed the following Guide for Setup of designate.

Above guide is having the exact workflow what I was looking for.

I need to setup Desginate using PowerDns Backend.

But In case of Registering Designate with Keystone it lacks in Detail.

Please some one help me regarding the same.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-23 04:07:38 -0600

itsme gravatar image

I found the way for doing the same.

Here it is detailed steps attached.

Registering keystone with designate:

Kestone Setup:

apt-get install keystone

Edit /etc/keystone/keystone.conf and change the [database] section:

connection = mysql://keystone:keystone@localhost/keystone

rm /var/lib/keystone/keystone.db

$ mysql -u root -p

mysql> CREATE DATABASE keystone;

mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
  IDENTIFIED BY 'keystone';

mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
  IDENTIFIED BY 'keystone';

mysql> exit

pip install mysql-python

su -s /bin/sh -c "keystone-manage db_sync" keystone

Execute the following command note down the value:

openssl rand -hex 10

Edit /etc/keystone/keystone.conf and change the [DEFAULT] section, replacing ADMIN_TOKEN with the results of the command:

# A "shared secret" between keystone and other openstack services
admin_token = ADMIN_TOKEN

Configure the log directory. Edit the /etc/keystone/keystone.conf file and update the [DEFAULT] section:

log_dir = /var/log/keystone

service keystone restart

Users tenants service and endpoint creation:

export OS_SERVICE_TOKEN=token_value
(please edit the token value generated above)

export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0

keystone tenant-create --name service --description "Service Tenant" --enabled true

keystone service-create --type dns --name designate --description="Designate"

keystone endpoint-create --service designate --publicurl --adminurl --internalurl

keystone user-create --name dnsaas --tenant service --pass dnsaas --enabled true

keystone role-create --name=admin

keystone user-role-add --user dnsaas --tenant service --role admin

apt-get install python-designateclient

Create an openrc file:

$ vi openrc

export OS_USERNAME=dnsaas
export OS_PASSWORD=dnsaas
export OS_TENANT_NAME=service
export OS_AUTH_URL=http://localhost:5000/v2.0/
export OS_AUTH_STRATEGY=keystone
export OS_REGION_NAME=RegionOne

source an openrc file:

. openrc

Note :

Execute or restart the designate-central and designate-api services.

designate domain-list command

designate domain-list

Above command is not returing any errors means fine to go.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-10-20 05:20:37 -0600

Seen: 141 times

Last updated: Oct 23 '15