mistral: not able to populate openstack actions from mistral-extra
Bug #1957081 reported by
olmy0414
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to import openstack actions to DB, using "mistral-db-manage --config-file /etc/mistral/
First of all, in mistral ubuntu containers there is no mistral-extra library.
I tried to use centos containers with mistral-extra installed, but no luck - I still don`t see openstack actions after executing mistral-db-manage populate.
**Environment**:
* OS: Ubuntu 20.04.3 LTS
* Kernel: 5.4.0-89-generic
* Docker version: 20.10.8
* Kolla version: 12.2.0
* Container type: ubuntu/binary
* Openstack version: wallaby
To post a comment you must log in.
as WA, it seems to need manual action here mistral. conf --openstack_ actions_ mapping_ path /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ mistral_ extra/actions/ openstack/ mapping. json populate_actions
1. login inside docker container with mistral_api
2. install mistral-extra with pip
# pip3 install mistral-extra
3. restart mistral_api container
4. populate actions using mapping file
#~ mistral-db-manage --config-file /etc/mistral/
5. execute 'populate' action with the same parameters as in step 4.
In my case, installation of the mistral-extra package was required in all of the mistral_* containers (not sure it is necessary for all)
Here the simple script doing all work :)
########## event_engine pip3 install mistral-extra; \ event_engine mistral. conf --openstack_ actions_ mapping_ path /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ mistral_ extra/actions/ openstack/ mapping. json populate_actions; \ mistral. conf --openstack_ actions_ mapping_ path /var/lib/ kolla/venv/ lib/python3. 8/site- packages/ mistral_ extra/actions/ openstack/ mapping. json populate project_ list etc..
docker exec -itu root mistral_api pip3 install mistral-extra; \
docker exec -itu root mistral_engine pip3 install mistral-extra; \
docker exec -itu root mistral_executor pip3 install mistral-extra; \
docker exec -itu root mistral_
docker restart mistral_api mistral_engine mistral_executor mistral_
sleep 10; \
docker exec -itu root mistral_api mistral-db-manage --config-file /etc/mistral/
docker exec -itu root mistral_api mistral-db-manage --config-file /etc/mistral/
#########
After that our workflows starts to use openstac.actions like keystone.
Hope it will help.