When i run mistral cron trigger with my workflow use openstack client such as nova client, cinder client. I get a same error when trigger run:
"You are not authorized to perform the requested action: identity:validate_token."
Content log:
2019-09-08 20:13:35.181 28881 DEBUG mistral.actions.openstack.actions [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7$
e 55453907ace44200a87b591a41aaf077 - - -] Cinder action security context: <mistral_lib.actions.context.ActionContext object at 0x7f2032909590>
_create_client /root/mistral/mistral/actions/openstack/actions.py:245
2019-09-08 20:13:37.016 28881 WARNING mistral.actions.openstack.base [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7f$
55453907ace44200a87b591a41aaf077 - - -] Traceback (most recent call last):
File "/root/mistral/mistral/actions/openstack/base.py", line 115, in run
method = self._get_client_method(self._get_client(context))
File "/root/mistral/mistral/actions/openstack/base.py", line 84, in _get_client
return self._create_client(context)
File "/root/mistral/mistral/actions/openstack/actions.py", line 247, in _create_client
cinder_endpoint = self.get_service_endpoint()
File "/root/mistral/mistral/actions/openstack/base.py", line 108, in get_service_endpoint
region_name=self.action_region
File "/root/mistral/mistral/utils/openstack/keystone.py", line 160, in get_endpoint_for_project
service_catalog = obtain_service_catalog(ctx)
File "/root/mistral/mistral/utils/openstack/keystone.py", line 229, in obtain_service_catalog
include_catalog=True
File "/root/env/local/lib/python2.7/site-packages/keystoneclient/v3/tokens.py", line 93, in get_token_data
resp, body = self._client.get(url, headers=headers)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 386, in get
return self.request(url, 'GET', **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 545, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 943, in request
raise exceptions.from_response(resp, method, url)
Forbidden: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-3525f308-02c2-4c32-abfe
-a3e3a062919b)
: Forbidden: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-3525f308-02c2-4c32-ab
fe-a3e3a062919b)
2019-09-08 20:13:37.017 28881 WARNING mistral.executors.default_executor [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691
b7fe 55453907ace44200a87b591a41aaf077 - - -] The action raised an exception [action_ex_id=2b96f67b-6078-4a90-903d-144de10bbdf0, action_cls='<cl
ass 'mistral.actions.action_factory.CinderAction'>', attributes='{u'client_method_name': u'volumes.get'}', params='{u'volume_id': u'6412ff92-06
f6-4d75-b6c4-3f513c227482'}']
CinderAction.volumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-3525f308-02c2-4c32-abfe-a3e3a062919b): ActionException: CinderAction.vo
lumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-3525f308-02c2-4c32-abfe-a3e3a062919b)
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor Traceback (most recent call last):
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor File "/root/mistral/mistral/executors/default_executor.py", line 114, in run_action
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor result = action.run(action_ctx)
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor File "/root/mistral/mistral/actions/openstack/base.py", line 130, in run
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor (self.__class__.__name__, self.client_method_name, str(e))
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor ActionException: CinderAction.volumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (
Request-ID: req-3525f308-02c2-4c32-abfe-a3e3a062919b)
2019-09-08 20:13:37.017 28881 ERROR mistral.executors.default_executor
2019-09-08 20:13:37.035 28881 WARNING mistral.actions.openstack.base [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Traceback (most recent call la
st):
File "/root/mistral/mistral/actions/openstack/base.py", line 115, in run
method = self._get_client_method(self._get_client(context))
File "/root/mistral/mistral/actions/openstack/base.py", line 84, in _get_client
return self._create_client(context)
File "/root/mistral/mistral/actions/openstack/actions.py", line 247, in _create_client
cinder_endpoint = self.get_service_endpoint()
File "/root/mistral/mistral/actions/openstack/base.py", line 108, in get_service_endpoint
region_name=self.action_region
File "/root/mistral/mistral/utils/openstack/keystone.py", line 160, in get_endpoint_for_project
service_catalog = obtain_service_catalog(ctx)
File "/root/mistral/mistral/utils/openstack/keystone.py", line 229, in obtain_service_catalog
include_catalog=True
File "/root/env/local/lib/python2.7/site-packages/keystoneclient/v3/tokens.py", line 93, in get_token_data
resp, body = self._client.get(url, headers=headers)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 386, in get
return self.request(url, 'GET', **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 545, in request
resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 943, in request
raise exceptions.from_response(resp, method, url)
Forbidden: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-e1de6e60-2d88-40a3-86bd-12eb43f6a4b3)
: Forbidden: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-e1de6e60-2d88-40a3-86bd-12eb43f6a4b3)
2019-09-08 20:13:37.036 28881 WARNING mistral.executors.default_executor [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] The action raised an excep
tion [action_ex_id=6286d964-7deb-43f1-8767-6d911a3e56ad, action_cls='<class 'mistral.actions.action_factory.CinderAction'>', attributes='{u'client_method_name': u'volumes.get'}', params='{u'volume_id': u'5c1b3ea4-d
873-453c-9daf-f06dfc46a000'}']
CinderAction.volumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-e1de6e60-2d88-40a3-86bd-12eb43f6a4b3): ActionException: CinderAction.vo
lumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (Request-ID: req-e1de6e60-2d88-40a3-86bd-12eb43f6a4b3)
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor Traceback (most recent call last):
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor File "/root/mistral/mistral/executors/default_executor.py", line 114, in run_action
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor result = action.run(action_ctx)
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor File "/root/mistral/mistral/actions/openstack/base.py", line 130, in run
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor (self.__class__.__name__, self.client_method_name, str(e))
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor ActionException: CinderAction.volumes.get failed: You are not authorized to perform the requested action: identity:validate_token. (HTTP 403) (
Request-ID: req-e1de6e60-2d88-40a3-86bd-12eb43f6a4b3)
2019-09-08 20:13:37.036 28881 ERROR mistral.executors.default_executor
2019-09-08 20:13:37.171 28881 DEBUG mistral.executors.executor_server [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Sending action result to engi
ne [action_ex_id=2b96f67b-6078-4a90-903d-144de10bbdf0, action_cls=mistral.actions.openstack.actions.CinderAction] run_action /root/mistral/mistral/executors/executor_server.py:121
2019-09-08 20:13:37.204 28881 DEBUG mistral.executors.executor_server [req-6bb9e511-6c94-4441-bee2-24cc40d92dad 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Sending action result to engi
ne [action_ex_id=6286d964-7deb-43f1-8767-6d911a3e56ad, action_cls=mistral.actions.openstack.actions.CinderAction] run_action /root/mistral/mistral/executors/executor_server.py:121
Hi, when I use the normal user(with `member` role), and I add a cron trigger to do something with cinder api. But I met the same problem. The error log is as followed:
2019-09-11 03:23:59.589 6 WARNING mistral. actions. openstack. base [req-4097987f- 7527-48aa- 8e2e-8261eabd8b d4 7c8adfbef47241a 7b5e1d3b4e4fe5a 09 efa0e71fb6974ad 3a252449f8a3769 27 - - -] Traceback (most recent call last): kolla/venv/ lib/python2. 7/site- packages/ mistral/ actions/ openstack/ base.py" , line 115, in run client_ method( self._get_ client( context) ) kolla/venv/ lib/python2. 7/site- packages/ mistral/ actions/ openstack/ base.py" , line 84, in _get_client client( context) kolla/venv/ lib/python2. 7/site- packages/ mistral/ actions/ openstack/ actions. py", line 233, in _create_client service_ endpoint( ) kolla/venv/ lib/python2. 7/site- packages/ mistral/ actions/ openstack/ base.py" , line 108, in get_service_ endpoint name=self. action_ region kolla/venv/ lib/python2. 7/site- packages/ mistral/ utils/openstack /keystone. py", line 160, in get_endpoint_ for_project service_ catalog( ctx) kolla/venv/ lib/python2. 7/site- packages/ mistral/ utils/openstack /keystone. py", line 229, in obtain_ service_ catalog catalog= True kolla/venv/ lib/python2. 7/site- packages/ keystoneclient/ v3/tokens. py", line 85, in get_token_data get(url, headers=headers) kolla/venv/ lib/python2. 7/site- packages/ keystoneauth1/ adapter. py", line 375, in get kolla/venv/ lib/python2. 7/site- packages/ keystoneauth1/ adapter. py", line 534, in request nAdapter, self).request( *args, **kwargs) kolla/venv/ lib/python2. 7/site- packages/ keystoneauth1/ adapter. py", line 237, in request request( url, method, **kwargs) kolla/venv/ lib/python2. 7/site- packages/ keystoneauth1/ session. py", line 890, in request from_response( resp, method, url) validate_ token. (HTTP 403) (Request-ID: req-e7c8b915- bbc6-4703- 96f1-50258a233f 62) validate_ token. (HTTP 403) (Request-ID: req-e7c8b915- bbc6-4703- 96f1-50258a233f 62)
File "/var/lib/
method = self._get_
File "/var/lib/
return self._create_
File "/var/lib/
cinder_endpoint = self.get_
File "/var/lib/
region_
File "/var/lib/
service_catalog = obtain_
File "/var/lib/
include_
File "/var/lib/
resp, body = self._client.
File "/var/lib/
return self.request(url, 'GET', **kwargs)
File "/var/lib/
resp = super(LegacyJso
File "/var/lib/
return self.session.
File "/var/lib/
raise exceptions.
Forbidden: You are not authorized to perform the requested action: identity:
: Forbidden: You are not authorized to perform the requested action: identity: