安装mistral
1.安装mistral安装包
yum -y install openstack-mistral-api.noarch openstack-mistral-engine.noarch openstack-mistral-executor.noarch openstack-mistral-ui.noarch
2.创建mistral数据库
mysql -uroot -p
CREATE DATABASE mistral;
GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'localhost' IDENTIFIED BY 'P1ssw0rd';
GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'%' IDENTIFIED BY 'P1ssw0rd';
#核实:
select * from information_schema.SCHEMATA where SCHEMA_NAME="mistral";
show grants for mistral\G
select user,host from mysql.user where user="mistral";
3.创建用户,并将用户加入到service项目中,并赋予admin权限
openstack user create --domain default --password-prompt mistral
openstack role add --project service --user mistral admin
#密码是:P@ssw0rd
4.创建 mistral 服务实体.
openstack service create --name mistral --description 'OpenStack Workflow service' workflowv2
openstack endpoint create --region RegionOne workflowv2 public http://controller:8989/v2
openstack endpoint create --region RegionOne workflowv2 internal http://controller:8989/v2
openstack endpoint create --region RegionOne workflowv2 admin http://controller:8989/v2
5.编辑mistral配置文件
openstack-config --set /etc/mistral/mistral.conf DEFAULT transport_url rabbit://openstack:openstack@controller
openstack-config --set /etc/mistral/mistral.conf DEFAULT auth_type keystone
openstack-config --set /etc/mistral/mistral.conf DEFAULT rpc_backend rabbit
openstack-config --set /etc/mistral/mistral.conf database connection mysql+pymysql://mistral:P1ssw0rd@controller/mistral
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_uri http://controller:5000
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_url http://controller:35357/v3
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken memcached_servers controller:11211
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_type password
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_version 3
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken project_domain_name Default
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken user_domain_name Default
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken project_name service
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken username mistral
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken password P@ssw0rd
openstack-config --set /etc/mistral/mistral.conf pecan auth_enable false
或者下面这样,参考:https://blog.csdn.net/timego/article/details/92796561
openstack-config --set /etc/mistral/mistral.conf DEFAULT transport_url rabbit://openstack:openstack@controller
openstack-config --set /etc/mistral/mistral.conf database connection mysql+pymysql://mistral:P1ssw0rd@controller/mistral
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_uri http://controller:5000/v3
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_url http://controller:35357
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken memcached_servers controller:11211
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken auth_version v3
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken admin_tenant_name service
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken admin_user admin
openstack-config --set /etc/mistral/mistral.conf keystone_authtoken admin_password P@ssw0rd
openstack-config --set /etc/mistral/mistral.conf pecan auth_enable false
6.初始化mistral的数据库
mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
#添加缺省的mistral actions (报错请无视)
mistral-db-manage --config-file /etc/mistral/mistral.conf populate
7.启动服务
systemctl enable openstack-mistral-api.service openstack-mistral-engine.service openstack-mistral-executor.service
systemctl start openstack-mistral-api.service openstack-mistral-engine.service openstack-mistral-executor.service
systemctl status openstack-mistral-api.service openstack-mistral-engine.service openstack-mistral-executor.service
8.测试
mistral workbook-list
mistral action-list
mistral task-list
最新文章
- 算法与数据结构(十四) 堆排序 (Swift 3.0版)
- 9个让人印象深刻的网站 JS 视觉效果
- jquery easyui datagrid字段绑定问题
- 1074: [SCOI2007]折纸origami - BZOJ
- Spring的servlet context和application context
- Responsive Table 利用@media
- C陷阱与缺陷代码分析之第1章词法陷阱
- DevCloud让代码检查更科学
- 14.什么是jsp动作
- 【NOIP2014提高组】解方程
- window10 hello 人脸识别无法启动相机的问题
- shell编程-输出(六)
- No more tricks, Mr Nanguo HDU - 3292(pell + 矩阵快速幂)
- 网络编程—端口分类调研和netstat命令
- 一些shell默认的变量
- 给web项目整合富文本编辑器
- 关于dubbo和zookeeper 注册中心
- 微信公众号access_token的获取与存储
- warning: LF will be replaced by CRLF in ***. The file will have its original line endings in your working directory.
- ST的MCU系列
热门文章
- c++ 用eclipse建立一个类,并实例化并运行
- 长春理工大学第十四届程序设计竞赛D Capture The Flag——哈希&;&;打表
- C# 截取屏幕方法
- sql server 遍历表成一棵树结构
- springboot的application.yml配置详解
- win 内网frp反弹到内网liunx
- BUUCTF平台-web-边刷边记录-1
- 简述python中的@staticmethod作用及用法
- Netfilter 之 iptable_filter
- javascript实现集合Set、字典Dictionary、HashTable