A workflow visualization tool for OpenStack Mistral (https://github.com/openstack/mistral)
A workflow visualization tool for OpenStack Mistral (https://github.com/openstack/mistral)
A workflow visualization tool for OpenStack Mistral
retry and/or with-itemsCloudFlow requires Mistral Pike or greater, as we rely on new runtime_context added to Mistral Pike.
| Mistral Version | CloudFlow Version to use |
|---|---|
| Stein (or newer) | Latest stable |
| Pike - Rocky | 0.6.4 |
CloudFlow has no dedicated backend service and passes the API calls to Mistral via Proxy settings.
In the scripts folder there are 2 configuration files: one for
when using ngnix and one for apache.
To run CloudFlow on your Mistral instance:
/opt) so
you'll have a /opt/CloudFlow/ folder.dist which holds the UI application,
and scripts for the various web servers options./etc/nginx/conf.d/http/servers//etc/apache2/sites-enabled/./etc/apache2/other/. Also make sure that the environment
variable APACHE_LOG_DIR is set to the proper value. On Mac computers
it's usually /var/log/apache2.dist folder (i.e. /opt/CloudFlow/dist)http[s]://:8000.This image based on multi-stage build. The first layer is used to create a artifacts. The second layer is the nginx alpine image.
docker build -t cloud-flow .docker run -d --rm --net=host --name cloud-flow cloud-flowGenerate certificates, for example
mkdir certs
cd certs
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx.key -out nginx.crtRun container
docker run --rm -d --net host --name cloud-flow \
-v _absolute_path_/CloudFlow/certs:/etc/nginx/ssl:ro -e CF_SSL=ssl cloud-flow| Name | Values | Default | Description |
|---|---|---|---|
| CF_PORT | Any number from 1 to 65535 | 8000 | Port of the application |
| CF_SERVER_NAME | Names, wildcard names, or regular expressions | localhost | Read more |
| CF_MISTRAL_URL | URL | http://127.0.0.1:8989 | URL to the Mistral server |
| CF_SSL | ssl or empty value |
empty value | If the value equals ssl then server will use HTTPS connection instead HTTP |
Whenever there is an update to CloudFlow, simply download the latest version's .tar.gz and extract it in the same place.
wget -qO- https://github.com/nokia/CloudFlow/releases/download//CloudFlow.tar.gz | tar xvz -C /optCloudFlow supports the OpenID Connect protocol (and was tested against KeyCloak).
If your Mistral requires authentication and uses the OpenID Connect protocol,
create the following auth.json file under the assets/ folder (i.e. assets/auth.json):
{
"_type": "openid-connect",
"issuer": "",
"loginUrl": "",
"logoutUrl": "",
"clientId": ""
}You can obtain all the URLs by examining the output of https://:/auth/realms//.well-known/openid-configuration
Redirecting from different applications to the CloudFlow.
CloudFlow supports reading access_token form authenticated application opened in another tab with the same browser without passing the access_token in the URL.
The authenticated application should allow that by adding the following:
Adding cross-domain-storage dependency in the host application:
import createHost from 'cross-domain-storage/host';
createHost([{
origin: 'CloudFlow URL',
allowedMethods: ['get']
}]);If you want to work w/o authentication, make sure your Mistral does not require authentication to perform REST API
requests, by setting the following in /etc/mistral/mistral.conf:
[pecan]
auth_enable=FalseAlso, make sure there is no auth.json file under the assets/ directory.
yarn install (preferred) or npm installproxy.conf.json to point your Mistral instance.auth.json file (if needed)npm run startyarn install (preferred) or npm installnpm run builddist folder.No open issues yet, or sync has not completed.