-
-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ST2 3.5 rpm not creating admin roles in mongo; other services not connecting to mongo #5301
Comments
Thanks for the report! @lukepatrick for more info, what was the MongoDB version used? I think we've tested with MongoDB 4.0 for EL8 (Py3.6) and MongoDB 4.4 for U20 (Py 3.8). For stackstorm-ha in K8s we're running on U18 with MongoDB 4.0 and it's good. From the other side, In v3.5.0 we introduced py 3.8 to support Ubuntu20 Focal LTS and there were some py3.6/py3.6 changes involved. Another random idea, maybe custom EL8 build around K8s brings some edge cases with versioning. FYI https://github.com/StackStorm/stackstorm-ha/ is based on Ubuntu 18.04 LTS + MongoDB 4.0. @StackStorm/maintainers @StackStorm/contributors WDYT? |
Ran both a Mongo 4.0 and 4.4, seemed to get the same issue. |
Odd... So seems related to this environment, rather than newer versions of say pip dependencies coming in... Could be fact it's Kubernetes, or maybe mongo replicaset (just looking at where it is in the stack trace)...
|
While this is not apple to apple, I recently updated my sandbox cluster with changing the image tag version to |
The not-loading of rbac admin role seems transient, more times I try it does or doesn't happen - always with a fresh/empty MongoDB. Not as worried about that. For the other mongo connectivity issue, a separate task I had updated some packages, seems the latest pymongo isn't compatible. Cleared out any (that I can tell) extraneous package updates and it works fine. Once this got running, ran into another odd package issue
|
Orjson 3.5.2 is in the pip requirements files - did this get cleared out accidentally on deleting other packages? |
no, it's in the pip list
|
fyi, I've added a experimental PR with a Centos container |
Thanks @lukepatrick. Just a note that building python 3.7 from sources to run the st2 packs might have edge cases. But unsure what causes the issue you're describing at the first message as the base st2 system is relying on py3.6 rpm package per your Dockerfile. |
Thanks for looking @armab I'm hoping the alternative python does not conflict with Stackstorm's py3.6; it has not been an issue in the past versions. We only due this to a bunch of home-grown packs we created at py3.7. |
SUMMARY
Running ST 3.5 rpm’s, Centos8, Mongo 4, etc..
At startup,
st2-apply-rbac-definitions
does not insert theadmin
role to mongo. Subsequent user assignments (stanley
) can’t be loaded as the role doesn’t exist. I can switch back to the 3.4.1 rpm’s and it is not an issue.In an oddly semi-related issue, the above
st2-apply-rbac-definitions
job can connect to Mongo and load all the other user assignments without issue.However, none of the other services that start (
actionrunner
, etc..) can connect to Mongo (all the same settings). All reportingpymongo.errors.ServerSelectionTimeoutError: module 'select' has no attribute 'poll'
STACKSTORM VERSION
Paste the output of
st2 --version
:3.5.0-1 rpm's
OS, environment, install method
Post what OS you are running this on, along with any other relevant information/
Kubernetes HA charts, Docker, CentOS8
Steps to reproduce the problem
start up actionrunner or other service
Expected Results
results with mongo
db.role_d_b.find()
shows noadmin
,system_admin
,observer
rolesactionrunner service to start
Actual Results
no admin roles; cannot assign stanley to admin role
pymongo.errors.ServerSelectionTimeoutError: module 'select' has no attribute 'poll'
Full error:
The text was updated successfully, but these errors were encountered: