我發現做同樣的方式。
這裏是詳細的附加步驟。
註冊梯形與候:
Kestone設置:
apt-get install keystone
編輯/etc/keystone/keystone.conf和更改[數據庫]部分:
connection = mysql://keystone:[email protected]/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
執行以下命令記下數值:
openssl rand -hex 10
編輯/etc/keystone/keystone.conf和更改[默認]部分,與所述命令的結果替換ADMIN_TOKEN:
[DEFAULT]
# A "shared secret" between keystone and other openstack services
admin_token = ADMIN_TOKEN
配置日誌目錄。編輯/etc/keystone/keystone.conf文件並更新[DEFAULT]部分:
[DEFAULT]
...
log_dir = /var/log/keystone
service keystone restart
用戶租戶服務和端點創建:
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 http://127.0.0.1:9001/v1 --adminurl http://127.0.0.1:9001/v1 --internalurl http://127.0.0.1:9001/v1
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
創建OpenRC的文件:
$ 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
源碼openrc文件:
. openrc
注意:
執行或重新啓動指定中央和指定api服務。
候域-list命令
designate domain-list
上述命令並不returing任何錯誤指晴朗去。