zoukankan      html  css  js  c++  java
  • 手动安装OpenStack Mistral

    Prepare packages:

    $ sudo apt-get install python-dev python-setuptools python-pip libffi-dev libxslt1-dev libxml2-dev libyaml-dev libssl-dev
    
    $ cd ~
    
    $ git clone https://github.com/openstack/mistral.git
    
    $ git clone https://github.com/gryf/mistral-evacuate.git
    
    $ cd mistral
    
    $ git checkout –b stable/mitaka origin/stable/mitaka
    
    $ cp ~/mistral-evacuate/filter_vm_action.py ./
    
    $ cp ~/mistral-evacuate/evacuate_vm_action.py ./
    
    $ tox -egenconfig


    append lines in mistral/setup.cfg if you have some customed actions for mistral:

    [entry_points]
    
    mistral.actions =
    
    …
    
    custom.filter_vm = filter_vm_action:FilterVmAction
    
    custom.evacuate = evacuate_vm_action:EvacuateVmAction


    generate mistral.conf

    $ cd ~/mistral
    
    $ oslo-config-generator --config-file tools/config/config-generator.mistral.conf --output-file etc/mistral.conf

    add following lines in mistral.conf:

    [DEFAULT]
    
    logfile = /opt/stack/logs/mistral.log
    
    rpc_backend = rabbit
    
    
    [database]
    
    connection = mysql+pymysql://root:<password>@controller:3306/mistral
    
    
    [keystone_authtoken]
    
    auth_uri = http://controller:5000/v3
    
    identity_uri = http://controller:35357/
    
    auth_version = v3
    
    admin_user = admin
    
    admin_password = <password>
    
    admin_tenant_name = admin
    
    
    [oslo_messaging_rabbit]
    
    rabbit_userid = stackrabbit
    
    rabbit_password = <password>
    
    rabbit_host = controller

     

    register mistral service and endpoints on keystone:

    $ . admin-openrc
    
    $ MISTRAL_URL = “http://172.16.13.40:8989/v2”
    
    $ openstack service create workflow --name mistral --description 'OpenStack Workflow service'
    
    $ openstack endpoint create workflow --region RegionOne --publicurl $MISTRAL_URL --adminurl $MISTRAL_URL --internalurl $MISTRAL_URL

    create mysql database mistral:

    mysql -u root -p
    
    
    CREATE DATABASE mistral;
    
    USE mistral
    
    GRANT ALL ON mistral.* TO ‘root’@’%’;


    Local installation and prepare database:

    $ cd ~/mistral
    
    $ sudo pip install –e .
    
    $ mistral-db-manage --config-file etc/mistral.conf upgrade head
    
    $ mistral-db-manage --config-file etc/mistral.conf populate


    start mistral service:

    # python mistral/cmd/launch.py --server all --config-file etc/mistral.conf


  • 相关阅读:
    Cognos11第三方权限认证之OpenDJ
    Sqlserver 2008 R2安装的盘符空间不够用的解决办法
    Cognos11中通过URL访问report的设置
    Cognos11中关于CJAP第三方认证的相关配置
    Cognos11中报XQE-JDB-0004查找驱动程序类错误
    项目管理半开源工具备份和恢复
    CentOS7.4 安装rabbitmq-3.7.x
    Spring Cloud Zuul的一个坑
    题五:10行杨辉三角
    题四:一对兔子生兔子,给个月份算有几只兔子
  • 原文地址:https://www.cnblogs.com/pinganzi/p/6555180.html
Copyright © 2011-2022 走看看