Skip to content

Commit

Permalink
Merge pull request #470 from kytos-ng/upgrade/mongo
Browse files Browse the repository at this point in the history
Upgraded Mongo to 7.0 from 5.0
  • Loading branch information
viniarck authored May 20, 2024
2 parents 2d8d725 + 62f62ed commit f807667
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Changed
=======
- Updated python environment installation from 3.9 to 3.11
- Updated test dependencies
- MongoDB version has been updated to 7.0

General Information
===================
- Kytos is tested and supported with mongo version 7.0. It can work with the lower versions 6.0 and 5.0 but they are not guaranteed to work flawlessly. To update mongo version follow these `steps <https://github.com/kytos-ng/kytos/pull/470>`_.


[2023.2.0] - 2024-02-16
***********************
Expand Down
11 changes: 4 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
################################################################
# This docker-compose file is meant for LOCAL development only #
################################################################

version: '3.3'

services:
mongo-setup:
container_name: mongo-rs-init
image: mongo:5.0
image: mongo:7.0
restart: on-failure
volumes:
- ./docker/scripts:/scripts
Expand All @@ -24,7 +21,7 @@ services:
- mongo3
mongo1:
container_name: mongo1
image: mongo:5.0
image: mongo:7.0
volumes:
- mongo1_data:/data/db
ports:
Expand All @@ -36,7 +33,7 @@ services:
- mongo3
mongo2:
container_name: mongo2
image: mongo:5.0
image: mongo:7.0
volumes:
- mongo2_data:/data/db
ports:
Expand All @@ -45,7 +42,7 @@ services:
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0", "--port", "27018" ]
mongo3:
container_name: mongo3
image: mongo:5.0
image: mongo:7.0
volumes:
- mongo3_data:/data/db
ports:
Expand Down
1 change: 1 addition & 0 deletions kytos/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def stop_controller(self, graceful=True):
if self.apm:
self.log.info("Stopping APM server...")
self.apm.close()
self.log.info("Stopped APM Server")
self.log.info("Stopping API Server...")
self.api_server.stop()
self.log.info("Stopped API Server")
Expand Down

0 comments on commit f807667

Please sign in to comment.