OpenStack Pike版本 Tacker安装

OpenStack  Pike版本  Tacker安装

# 部署环境 centos7.3 

安装tacker Server

1). 创建数据库和用户。

mysql -uroot -p
CREATE DATABASE tacker;
GRANT ALL PRIVILEGES ON tacker.* TO 'tacker'@'localhost' \
    IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON tacker.* TO 'tacker'@'%' \
    IDENTIFIED BY '';
exit;

注:TACKERDB_PASSWORD替换成密码。

2). 创建用户、角色、endpoint。

. admin-openrc.sh


openstack user create --domain default --password  tacker
openstack role add --project service --user tacker admin
openstack service create --name tacker \
    --description "Tacker Project" nfv-orchestration
openstack endpoint create --region RegionOne nfv-orchestration \
           public http://:9890/
openstack endpoint create --region RegionOne nfv-orchestration \
           internal http://:9890/
openstack endpoint create --region RegionOne nfv-orchestration \
           admin http://:9890/

3). 下载代码。(pike版本)

git clone https://github.com/openstack/tacker -b stable/pike

4). 安装依赖的包。

cd tacker
sudo pip install -r requirements.txt

5). 安装tacker Server.

sudo python setup.py install

6). 创建‘tacker’目录 ‘/var/log’ 和/etc/tacker

sudo mkdir /var/log/tacker /etc/tacker
7). 生成tacker.conf.sample 使用 tools/generate_config_file_sample.sh。 将 tacker.conf.sample 重复命名为tacker.conf
修改 tacker.conf的配置。
[DEFAULT]
auth_strategy = keystone
policy_file = /etc/tacker/policy.json
debug = True
use_syslog = False
bind_port = 9890
service_plugins = nfvo,vnfm

state_path = /var/lib/tacker
...

[nfvo]
vim_drivers = openstack

[keystone_authtoken]
memcached_servers = 11211
region_name = RegionOne
auth_type = password
project_domain_name = default
user_domain_name = default
username = admin
project_name = admin
password = 
auth_url = http://:35357
auth_uri = http://:5000
...

[agent]
root_helper = sudo /usr//bin/tacker-rootwrap /etc/tacker/rootwrap.conf
...

[database]
connection = mysql://tacker:@:3306/tacker?charset=utf8
...

[tacker]
monitor_driver = ping,http_ping

8). 复制 代码目录下 etc/tacker下所有配置文件到/etc/tacker/目录。

sudo su
cp etc/tacker/* /etc/tacker/. -rf

9). 填充数据库:

tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head

安装 Tacker client¶

1). 下载 tacker-client 代码.

cd ~/
git clone https://github.com/openstack/python-tackerclient -b stable/pike

2). 安装tacker-client.

cd python-tackerclient
sudo python setup.py install

安装Tacker horizon¶

1). 下载tacker-horizon repository.

cd ~/
git clone https://github.com/openstack/tacker-horizon -b stable/pike

2). 安装horizon .

cd tacker-horizon
sudo python setup.py install

3). 配置tacker horizon 到dashboard的面板中.

sudo cp tacker_horizon/enabled/* \
    /usr/share/openstack-dashboard/openstack_dashboard/enabled/

4). 重启 http server.

sudo service httpd restart

启动 Tacker server¶

sudo python tacker-server \
    --config-file /etc/tacker/tacker.conf \
    --log-file /var/log/tacker/tacker.log & 


# 至此  安装完成。


你可能感兴趣的:(OpenStack)