fuel-plugin-mistral/doc/user_guide/use.rst

3.8 KiB

Considering HA

Mistral API service runs on every Controller node. Mistral API service HA is reached if multiple Controller nodes are deployed in the environment. Calls to Mistral API service instances are balanced via HAProxy.

Mistral Engine and Executor services run on Mistral nodes. Every Mistral node runs one Mistral Engine instance and one Mistral Executor instance. The services HA is reached by deploying multiple Mistral nodes.

Creating new environment with Mistral Fuel plugin

To create and configure a new environment with Mistral Fuel plugin follow the steps below:

  1. Create a new OpenStack environment in Fuel web UI.

  2. Enable the Mistral Fuel plugin in Additional services tab:

    image

  3. Add nodes and assign them roles:

    • At least 1 Controller
    • At least 1 Mistral node. The Mistral role can also be added to any other node except Compute
  4. Make additional configuration adjustments.

  5. Proceed to the environment deployment.

Enabling Mistral Fuel plugin for a deployed environment

Mistral Fuel plugin is hotpluggable and can be enabled for an already deployed environment. The enable the plugin follow the steps below:

  1. Navigate to the Settings tab -> Other section and enable the plugin

    image

  2. Press Save Settings button.

  3. Add Mistral node:

    • At least 1 Mistral node. The Mistral role can also be added to any other node except Compute
  4. Proceed to the environment deployment.

Getting Mistral service credentials

To call Mistral API admin Keystone user credentials can be used. Mistral service also has it's own Keystone user. The user name is mistral.

To get Keystone endpoint and mistral Keystone user password login to the primary Controller node after the environment has been deployed and run:

# source openrc

# openstack endpoint show mistral
+--------------+-----------------------------------+
| Field        | Value                             |
+--------------+-----------------------------------+
| adminurl     | http://10.109.1.8:8989/v2         |
| enabled      | True                              |
| id           | 3023eac53843471fa70c96c081008daf  |
| internalurl  | http://10.109.1.8:8989/v2         |
| publicurl    | https://public.fuel.local:8989/v2 |
| region       | RegionOne                         |
| service_id   | e136f06aab484b6e8a513604f72eb284  |
| service_name | mistral                           |
| service_type | workflowv2                        |
+--------------+-----------------------------------+

# hiera -h fuel-plugin-mistral
{"db_password"=>"db_password",
 "keystone_password"=>"mistral_user_keystone_password",    <-- the password
 "metadata"=>
  {"class"=>"plugin",
   "enabled"=>true,
   "group"=>"other",
   "hot_pluggable"=>true,
   "label"=>"Fuel Mistral plugin",
   "plugin_id"=>5,
   "plugin_version"=>"1.0.0",
   "toggleable"=>true,
   "weight"=>70}}