Closed yypptest closed 2 years ago
The exception seems from the new codes in v3.6.0 from the file /opt/stackstorm/st2/lib/python3.6/site-packages/st2common/services/executions.py
, when calling with coordination.get_coordinator().get_lock(liveaction_db.id)
I'm not in a position to test this, but I'll take a glance at the code. Here's the line you identified: https://github.com/StackStorm/st2/blob/20045dc009f9168373e73e08d3e242985c5c45ed/st2common/st2common/services/executions.py#L199 Which was modified in:
What version of mongo are you using?
db version is v4.0.27, thanks
@yypptest Could you please also try with Redis
as a coordination backend if the same error persists?
SUMMARY
We picked up stackstorm v3.6.0 and deployed on kubernetes, the pods can started normally but execution always stuck at requested status. The st2scheduler pod showed below log messages, and st2actionrunner also showed similar error exceptions.
STACKSTORM VERSION
st2: 3.6.0
OS, environment, install method
Deployed helm chart to OCP 4.8 Coordinator: etcd
Steps to reproduce the problem
TypeError: Provided lock name is expected to be a string or binary type and not <class 'bson.objectid.ObjectId'>
Expected Results
The actions can be proceeded normally even with etcd coordinator.
Actual Results
There's error reported when proceeding actions.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!