You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scenario here is when installing a pack without having the global stream_view permissions st2stream errors out, but never sends that error back to st2client to inform the user. The error is however logged in the st2stream log file.
STACKSTORM VERSION
Known versions this happens on
st2 3.4.1, on Python 3.6.8
st2 3.5.0, on Python 3.6.8
OS, environment, install method
Post what OS you are running this on, along with any other relevant information/
OL7
HA install with a controller node running web, redis, rabbitmq, and mongo and 2 cluster nodes running everything else.
Steps to reproduce the problem
See the setup is in the other thread as its specific to RBAC and nothing else.
Expected Results
st2stream should return an error to st2client so it can be reported to the user as to what the failure is.
The log does record this error
2021-08-03 19:02:29,809 139735081647144 DEBUG error_handling [-] API call failed: User "packuser" doesn't have required permission "stream_view" (exception_class='ResourceTypeAccessDeniedError',exception_message='User "packuser" doesn\'t have required permission "stream_view"',exception_data={'permission_type': 'stream_view', 'user_db': <UserDB: UserDB(id=60f6a1e06a82029b060389a6, is_service=False, name="packuser", nicknames={})>})
Actual Results
Without the st2stream returning an error st2client fails out with an AttributeError exception. The process(s) still continues in the background. The full debug output is also in the other thread.
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2client/shell.py", line 408, in run
func(args)
File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2client/commands/resource.py", line 48, in decorate
return func(*args, **kwargs)
File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2client/commands/pack.py", line 274, in run_and_print
packs = instance.result['output']['packs_list']
AttributeError: 'Execution' object has no attribute 'result'
Thanks!
The text was updated successfully, but these errors were encountered:
SUMMARY
This is specific to a pack install and I'm not sure if anything else is affected by st2stream not returning errors to st2client.
Carrying part of the conversion over from #5303 (comment)
The scenario here is when installing a pack without having the global stream_view permissions st2stream errors out, but never sends that error back to st2client to inform the user. The error is however logged in the st2stream log file.
STACKSTORM VERSION
Known versions this happens on
st2 3.4.1, on Python 3.6.8
st2 3.5.0, on Python 3.6.8
OS, environment, install method
Post what OS you are running this on, along with any other relevant information/
Steps to reproduce the problem
See the setup is in the other thread as its specific to RBAC and nothing else.
Expected Results
st2stream should return an error to st2client so it can be reported to the user as to what the failure is.
The log does record this error
Actual Results
Without the st2stream returning an error st2client fails out with an AttributeError exception. The process(s) still continues in the background. The full debug output is also in the other thread.
Thanks!
The text was updated successfully, but these errors were encountered: