StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.09k stars 746 forks source link

Stackstorm compatiblity with Mongo 4.4 #5639

Open harishgopalan opened 2 years ago

harishgopalan commented 2 years ago

Hello Stackstorm Experts,

It seems Mongo 4.0 is EOL by April 2022, Is it possible to upgrade with support for Mongo 4.2 or 4.4 ?

https://www.mongodb.com/support-policy/lifecycles

Regards Harish

nzlosh commented 2 years ago

The latest version of StackStorm is known to work with MongoDB v4.2 and v4.4, older versions may not have been tested against these minor versions of MongoDB.

arm4b commented 2 years ago

Good call about 4.0 EOL. Looks like there are some places where we still install MongoDB v4.0.

There's an issue that MongoDB 4.0 is installed in some older distros where v4.4 wasn't available in the official MongoDB repositories. This also affects Puppet and Ansible deployment relying on deb/rpm packages.

As I remember we have MognoDB 4.4 for Ubuntu 20, but 4.0 for Ubuntu 18, EL7/8. Do these OS flavors still have MongoDB v4.0 available as the latest?

In a meantime, places where MongoDB could be bumped:

nzlosh commented 2 years ago

MongoDB provides packages for the follow OS's for version 4.4

Amazon Linux 2 ARM 64
Amazon Linux 2 x64
Amazon Linux x64
Debian 10.0 x64
Debian 9.2 x64
macOS x64
RedHat / CentOS 6.2+ x64
RedHat / CentOS 7.0 x64
RedHat / CentOS 8.0 x64
RedHat / CentOS 8.2 ARM 64
SUSE 12 x64
SUSE 15 x64
Ubuntu 16.04 x64
Ubuntu 18.04 ARM 64
Ubuntu 18.04 x64
Ubuntu 20.04 ARM 64
Ubuntu 20.04 x64
Windows x64

Version 4.4 covers our entire supported matrix of OS for StackStorm 3.6, but we should start to investigate adding support for version v5 of MongoDB for St2 v3.8

arm4b commented 2 years ago

Nice! Thanks for the research :+1: Good to see 4.4 is available now everywhere.

So short-term, looks like we need to update the st2-packages (@StackStorm/tsc), puppet-st2 (@rush-skills @bishopbm1), K8s & Docker (@cognifloyd @armab), ansible-st2 (@winem @amanda11) to bump the MongoDB 4.0 -> 4.4 for all the OS platforms.

Because these are just the deployment methods, some repos could be updated anytime as we go. Only curl|bash installer is e2e & release-affecting and could be postponed as the testing was already done in https://github.com/StackStorm/community/issues/101, but the decision is up to you @nzlosh @cognifloyd as the release owners.

nzlosh commented 2 years ago

While quite confident we could bump the e2e testing to 4.4 and things should just work, we're in a change freeze to prevent the goal of getting St2 3.7 released on time so 4.4 should wait for St2 3.8. Testing for MongoDB v5 can be done then as well so we don't get caught out like we have with Python3.6 going EOL and not having an alternative solution to suggest.