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


  • 相关阅读:
    6.Docker中上传镜像到docker hub中
    altermanager使用报错
    Grafana官方和社区提供的dashboard
    什么是 云原生?
    prometheus被OOM杀死
    新版GRANAFA K8S插件 K8S NODE 图表不显示问题解决方法
    python2和python3的不同
    一次使用Python连接数据库生成二维码并安装为windows服务的工作任务
    Python连接oracle
    numpy.ndarray的赋值操作
  • 原文地址:https://www.cnblogs.com/pinganzi/p/6555180.html
Copyright © 2011-2022 走看看