Mistral don't work with cron trigger

When I using mistral with cron trigger and cron was trigged,
the trigger will use trust to do something in my workflow but
mistral-executor service will emit error log:

Forbidden: You are not authorized to perform the requested
action: identity:validate_token

and i was resolved this problem with change parameter from "trust_id"
to "trusts" in function _admin_client:
https://github.com/openstack/mistral/blob/master/mistral/utils/openstack/keystone.py#L95

Change-Id: Idde5b0ed4a4b9f30e4258cd792acb270d5586087
This commit is contained in:
Bo Tran 2019-08-31 12:26:17 +07:00
parent 2cdcb5415e
commit 6102c5251e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def _admin_client(trust_id=None):
password=CONF.keystone_authtoken.admin_password, password=CONF.keystone_authtoken.admin_password,
project_name=project_name, project_name=project_name,
auth_url=auth_url, auth_url=auth_url,
trust_id=trust_id trusts=trust_id
) )
cl.management_url = auth_url cl.management_url = auth_url