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

安装mistral的更多相关文章

  1. 手动安装OpenStack Mistral

    Prepare packages: $ sudo apt-get install python-dev python-setuptools python-pip libffi-dev libxslt1 ...

  2. 安装tacker

    安全服务链编排系统安装部署文档 本系统基于OpenStack Pike版本安装,在安装tacker之前,请确保以下模块都已正确安装部署:keystone,mistral,barbican,horizo ...

  3. docker——容器安装tomcat

    写在前面: 继续docker的学习,学习了docker的基本常用命令之后,我在docker上安装jdk,tomcat两个基本的java web工具,这里对操作流程记录一下. 软件准备: 1.jdk-7 ...

  4. 网络原因导致 npm 软件包 node-sass / gulp-sass 安装失败的处理办法

    如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件.本文主要讨论在不变更 ...

  5. Sublime Text3安装JsHint

    介绍 Sublime Text3使用jshint依赖Nodejs,SublimeLinter和Sublimelinter-jshint. NodeJs的安装省略. 安装SublimeLinter Su ...

  6. Fabio 安装和简单使用

    Fabio(Go 语言):https://github.com/eBay/fabio Fabio 是一个快速.现代.zero-conf 负载均衡 HTTP(S) 路由器,用于部署 Consul 管理的 ...

  7. gentoo 安装

    加载完光驱后 1进行ping命令查看网络是否通畅 2设置硬盘的标识为GPT(主要用于64位且启动模式为UEFI,还有一个是MBR,主要用于32位且启动模式为bois) parted -a optima ...

  8. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part3:db安装和升级 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 5.安装Database软件 5. ...

  9. Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作

    Linux平台 Oracle 10gR2(10.2.0.5)RAC安装 Part1:准备工作 环境:OEL 5.7 + Oracle 10.2.0.5 RAC 1.实施前准备工作 1.1 服务器安装操 ...

随机推荐

  1. MySQL主从同步、读写分离配置步骤、问题解决笔记

    MySQL主从同步.读写分离配置步骤.问题解决笔记 根据要求配置MySQL主从备份.读写分离,结合网上的文档,对搭建的步骤和出现的问题以及解决的过程做了如下笔记:       现在使用的两台服务器已经 ...

  2. C# ado.net oledb方式连接(三)

    oledb 方式连接 class Program { private static string constr = "server=.;database=northwnd;integrate ...

  3. @GetMapping、@PostMapping、@PutMapping、@DeleteMapping、@PatchMapping、@RequestMapping详解

    最近写项目中突然发现有人再controller层写@PostMapping,这对于经常用@RequestMapping的我来说,感到跟奇怪,网上搜寻了一些资料,特在此整合一下: Spring4.3中引 ...

  4. Codeforces Round #455 (Div. 2) 909D. Colorful Points

    题 OvO http://codeforces.com/contest/909/problem/D CF 455 div2 D CF 909D 解 算出模拟的复杂度之后就是一个很水的模拟题 把字符串按 ...

  5. 清除文本中Html的标签

    /// <summary> /// 清除文本中Html的标签 /// </summary> /// <param name="Content"> ...

  6. Android App常用控件

  7. Laravel 多态关联中利用关联表相关字段进行排序的问题

    1 目标 1.1 在 Laravel 项目的开发中,多态的需求很常见,按多态关联进行排序的需求也是必须的. 1.2 请想像,我们有一个需求,荣誉栏目多态关联一个档案模型,要求在荣誉中按档案的推荐时间进 ...

  8. 微信小程序填坑之旅(1)-app.js中用云开发获取openid,在其他页上用app.globaldata.openid获取为空

    参考:小程序如何在其他页面监听globalData中值的变化?https://www.jianshu.com/p/8d1c4626f9a3 原因就是:app.js没执行完时,其他页已经onload了, ...

  9. SpringMVC——参数传递

    一.接收零散参数 1.装配原则为传递参数名和方法接收参数名一致 2.手动装配@RequestParam  name代表页面发送的参数名字  required代表参数是否必须传递  false代表可以不 ...

  10. 二、编译安装LAMP之httpd-2.4.4

    回顾 PHP:脚本编程语言,php解释器 Webapp:面向对象的特性 Zend: 第一段:词法分析.句法分析.编译为Opcode: opcode放置于内存中 第二段:执行opcode: opcode ...