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

最新文章

  1. 算法与数据结构(十四) 堆排序 (Swift 3.0版)
  2. 9个让人印象深刻的网站 JS 视觉效果
  3. jquery easyui datagrid字段绑定问题
  4. 1074: [SCOI2007]折纸origami - BZOJ
  5. Spring的servlet context和application context
  6. Responsive Table 利用@media
  7. C陷阱与缺陷代码分析之第1章词法陷阱
  8. DevCloud让代码检查更科学
  9. 14.什么是jsp动作
  10. 【NOIP2014提高组】解方程
  11. window10 hello 人脸识别无法启动相机的问题
  12. shell编程-输出(六)
  13. No more tricks, Mr Nanguo HDU - 3292(pell + 矩阵快速幂)
  14. 网络编程—端口分类调研和netstat命令
  15. 一些shell默认的变量
  16. 给web项目整合富文本编辑器
  17. 关于dubbo和zookeeper 注册中心
  18. 微信公众号access_token的获取与存储
  19. warning: LF will be replaced by CRLF in ***. The file will have its original line endings in your working directory.
  20. ST的MCU系列

热门文章

  1. c++ 用eclipse建立一个类,并实例化并运行
  2. 长春理工大学第十四届程序设计竞赛D Capture The Flag——哈希&&打表
  3. C# 截取屏幕方法
  4. sql server 遍历表成一棵树结构
  5. springboot的application.yml配置详解
  6. win 内网frp反弹到内网liunx
  7. BUUCTF平台-web-边刷边记录-1
  8. 简述python中的@staticmethod作用及用法
  9. Netfilter 之 iptable_filter
  10. javascript实现集合Set、字典Dictionary、HashTable