When Senlin Action, i get an error:
2019-09-08 21:00:48.871 4867 DEBUG mistral.executors.executor_server [req-953dc228-4cdf-4dc1-9061-587f722e2131 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Received RPC request 'run_action'[action_ex_id=None, action_cls_str=mistr
al.actions.openstack.actions.SenlinAction, action_cls_attrs={u'client_method_name': u'clusters'}, params={}, timeout=None] run_action /root/mistral/mistral/executors/executor_server.py:98
2019-09-08 21:00:48.872 4867 DEBUG mistral.actions.openstack.actions [req-953dc228-4cdf-4dc1-9061-587f722e2131 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Senlin action security context: <mistral_lib.actions.context.ActionContex
t object at 0x7fdc716194d0> _create_client /root/mistral/mistral/actions/openstack/actions.py:844
2019-09-08 21:00:48.877 4867 WARNING mistral.actions.openstack.base [req-953dc228-4cdf-4dc1-9061-587f722e2131 1bd5194dfe534ec1935c75330691b7fe 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 855, in _create_client
insecure=context.insecure
File "/root/env/local/lib/python2.7/site-packages/senlinclient/v1/client.py", line 23, in __init__
**kwargs)
File "/root/env/local/lib/python2.7/site-packages/senlinclient/plugin.py", line 88, in create_connection
app_version=app_version, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/openstack/connection.py", line 363, in __init__
**kwargs)
File "/root/env/local/lib/python2.7/site-packages/openstack/config/__init__.py", line 36, in get_cloud_region
return config.get_one(options=parsed_options, **kwargs)
File "/root/env/local/lib/python2.7/site-packages/openstack/config/loader.py", line 1077, in get_one
auth_plugin = loader.load_from_options(**config['auth'])
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 164, in load_from_options
return self.create_plugin(**kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 125, in create_plugin
return self.plugin_class(**kwargs)
File "/root/env/local/lib/python2.7/site-packages/keystoneauth1/identity/generic/password.py", line 32, in __init__
super(Password, self).__init__(auth_url=auth_url, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'token'
2019-09-08 21:00:48.878 4867 WARNING mistral.executors.default_executor [req-953dc228-4cdf-4dc1-9061-587f722e2131 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] The action raised an exception [action_ex_id=None, action_cls='<class
'mistral.actions.action_factory.SenlinAction'>', attributes='{u'client_method_name': u'clusters'}', params='{}']
SenlinAction.clusters failed: __init__() got an unexpected keyword argument 'token': ActionException: SenlinAction.clusters failed: __init__() got an unexpected keyword argument 'token'
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor Traceback (most recent call last):
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor File "/root/mistral/mistral/executors/default_executor.py", line 114, in run_action
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor result = action.run(action_ctx)
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor File "/root/mistral/mistral/actions/openstack/base.py", line 130, in run
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor (self.__class__.__name__, self.client_method_name, str(e))
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor ActionException: SenlinAction.clusters failed: __init__() got an unexpected keyword argument 'token'
2019-09-08 21:00:48.878 4867 ERROR mistral.executors.default_executor
2019-09-08 21:00:48.879 4867 DEBUG mistral.executors.executor_server [req-953dc228-4cdf-4dc1-9061-587f722e2131 1bd5194dfe534ec1935c75330691b7fe 55453907ace44200a87b591a41aaf077 - - -] Sending action result to engine [action_ex_id=None, action_cls=mistral.ac
tions.openstack.actions.SenlinAction] run_action /root/mistral/mistral/executors/executor_server.py:121
and any actions of senlin receive this error
Reviewed: https:/ /review. opendev. org/680860 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=9585a638470 34de2117db0ea08 ae3c4c0da40a60
Committed: https:/
Submitter: Zuul
Branch: master
commit 9585a63847034de 2117db0ea08ae3c 4c0da40a60
Author: Bo Tran <email address hidden>
Date: Sun Sep 8 21:25:17 2019 +0700
Fix don't work with senlin actions
We can't do run senlin actions because have an error when
init client senlin. We need an other way to init client to
run client with cron trigger and manual.
Change-Id: I294d18b341a3c7 dd0df9c24588540 f9c94dd4562
Closes-Bug: #1843178