From 6102c5251e29c1efe73c92935a051feff0f649c7 Mon Sep 17 00:00:00 2001 From: Bo Tran Date: Sat, 31 Aug 2019 12:26:17 +0700 Subject: [PATCH] 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 --- mistral/utils/openstack/keystone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/utils/openstack/keystone.py b/mistral/utils/openstack/keystone.py index fc25a57e2..bfaeb5e0c 100644 --- a/mistral/utils/openstack/keystone.py +++ b/mistral/utils/openstack/keystone.py @@ -107,7 +107,7 @@ def _admin_client(trust_id=None): password=CONF.keystone_authtoken.admin_password, project_name=project_name, auth_url=auth_url, - trust_id=trust_id + trusts=trust_id ) cl.management_url = auth_url