kytos-ng / kytos

Kytos SDN Platform. Kytos is designed to be easy to install, use, develop and share Network Apps (NApps).
https://kytos-ng.github.io/
MIT License
3 stars 7 forks source link

MongoDB 5.0 EOL in Oct 2024 #451

Closed viniarck closed 4 months ago

viniarck commented 7 months ago

MongoDB 5.0 EOL in Oct 2024

This isn't an immediate issue, but we should start analyzing the upgrade possibilities potentially targeting 7.0, that means also providing any DB scripts if any, updating docker compos files accordingly and e2e tests accordingly.

In development and e2e tests, it should be simpler, but in prod at AmLight running 5.0, they'll need to upgrade first to 6.0 to quote the docs (so this upgrade "path" also needs to be explored locally confirming that it works):

Upgrade Version Path To upgrade an existing MongoDB deployment to 7.0, you must be running a 6.0-series release. To upgrade from a version earlier than the 6.0-series, you must successively upgrade major releases until you have upgraded to 6.0-series. For example, if you are running a 5.0-series, you must upgrade first to 6.0 before you can upgrade to 7.0.

viniarck commented 7 months ago

Potentially, to upgrade to 7.0 in prod, maybe we could also recommend bootstrapping a new replicaset cluster on 7.0 leveraging the export/dump tools since AmLight is running MongoDB in a container that should be doable, and then parametrizing the env vars accordingly, anyway just a thought but this also needs to be explored and confirmed:

mongoexport

mongoimport

mongodump

mongorestore

viniarck commented 5 months ago

It'd be great to also try to tackle this adjacent DB script organization task: https://github.com/kytos-ng/kytos-ng.github.io/issues/61