openstack U版本安装 senlin

服务安装


# 初始化数据库
mysql -uroot -p123456

CREATE DATABASE senlin DEFAULT CHARACTER SET utf8;
GRANT ALL ON senlin.* TO 'senlin'@'localhost' IDENTIFIED BY '123456';
GRANT ALL ON senlin.* TO 'senlin'@'%' IDENTIFIED BY '123456';


# 创建senlin用户
openstack user create --domain default --password 123456 senlin
openstack role add --project service --user senlin admin
openstack service create --name senlin --description "Senlin Clustering Service V1" clustering


# 创建服务endpoint
openstack endpoint create --region RegionOne senlin public http://10.2.36.5:7778
openstack endpoint create --region RegionOne senlin admin http://10.2.36.5:7778
openstack endpoint create --region RegionOne senlin internal http://10.2.36.5:7778
 
# 安装服务

 

yum install openstack-senlin-engine openstack-senlin-api openstack-senlin-common python3-senlinclient openstack-senlin-conductor openstack-senlin-health-manager



# 修改配置文件 /etc/senlin/senlin.conf

[DEFAULT]
transport_url = rabbit://openstack:123456@controller
default_region_name = RegionOne

[senlin_api]
bind_host = 10.2.36.5
bind_port = 7778

[database]
connection = mysql+pymysql://senlin:123456@controller/senlin

[authentication]
auth_url = http://controller:5000/v3
service_username = senlin
service_password = 123456
service_project_name = service

[keystone_authtoken]
service_token_roles_required = True
auth_url = http://controller:5000/identity
www_authenticate_uri = http://controller:5000/identity/v3
auth_type = password
user_domain_name = Default
project_domain_name = Default
project_name = service
username = senlin
password = 123456

[oslo_messaging_notifications]
driver = messaging

 

# 同步数据库
su -s /bin/sh -c "senlin-manage db_sync" senlin

# 启动服务

systemctl enable openstack-senlin-api.service openstack-senlin-conductor.service openstack-senlin-engine.service openstack-senlin-health-manager.service
systemctl start openstack-senlin-api.service openstack-senlin-conductor.service openstack-senlin-engine.service openstack-senlin-health-manager.service


# 验证
 

# openstack cluster service list
+-----------------------+------------+---------+-------+---------------------+-----------------+
| binary                | host       | status  | state | updated_at          | disabled_reason |
+-----------------------+------------+---------+-------+---------------------+-----------------+
| senlin-conductor      | controller | enabled | up    | 2020-09-16T06:38:04 | None            |
| senlin-health-manager | controller | enabled | up    | 2020-09-16T06:38:00 | None            |
| senlin-engine         | controller | enabled | up    | 2020-09-16T06:38:00 | None            |
+-----------------------+------------+---------+-------+---------------------+-----------------+
 

开启dashboard

# 首先git clone

git clone https://opendev.org/openstack/senlin-dashboard

 

# 切换到ussuri分支

git checkout stable/ussuri

 

# 进入senlin-dashboard

cp ./senlin_dashboard/enabled/_50_senlin.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/


# pip3 安装依赖
pip3 install -r requirements.txt -e .


# 重启httpd
systemctl restart httpd
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值