-
Notifications
You must be signed in to change notification settings - Fork 218
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
RMQ version update, Mongo version update, Bug fixes #3118
Merged
Merged
Changes from 22 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
aeccc6c
Updated RabbitMQ version to 3.9.29 and Erlang to version 25
schandrika a917d21
Updated RabbitMQ version to 3.9.29 and Erlang to version 25
schandrika 0731940
Fix for issue #3114. update dependency information
schandrika fbc86ee
Revert "Fix for issue #3114. update dependency information"
schandrika 3e5c836
Updates for Erlang and Rabbitmq version update. Erlang updated to ver…
schandrika e3f4088
Updates for Erlang and Rabbitmq version update. Erlang updated to ver…
schandrika c53965a
added missing imports
schandrika b77d31a
Changed pytest xfail cases to skip instead of fail
schandrika 785bbbe
changed reference to deprecated method. using requests instead of gre…
schandrika cc03320
removed debug log
schandrika 08affba
updated psycopg2 version
schandrika 6ee5f1e
Fix for issue #3117
schandrika 479309c
Fixed expected output
schandrika ced3a0e
removed debug stmts
schandrika 827f4cf
added entry for dnp3
schandrika e19a57b
minor test case fix
schandrika 606aa88
updated based on gitlab changes
schandrika 9d486e8
removed old dnp3 agent
schandrika b0dd71d
updated to latest mongo and pymongo version
schandrika ecfcdb5
minor - py.test to pytest
schandrika 69ae460
updated to latest mongo and pymongo version
schandrika d746634
minor updates based on testing
schandrika 42ea7c8
utility script to install mysql, postgres, mongodb and create test us…
schandrika f8a5752
minor documentation update
schandrika b4e62cc
changed 'urllib3.connectionpool' log level to warning
schandrika c23e2a3
updated auth test on github
schandrika 4828102
updated auth test on github
schandrika c8a6857
fixed runner name
schandrika a7ada4d
fixed runner name
schandrika 2587209
reverting runner name change
schandrika f5fbaf5
using newer version of actions
schandrika c5bcf37
Merge branch 'rmq_version_update' of github.com:schandrika/volttron i…
schandrika 5ac18d2
using newer version of actions
schandrika 5f2b23a
testing only on mysql 8
schandrika e5125b9
Updated upload artifact version
schandrika f1459a8
install-script for dbs on ubuntu 20.04
schandrika dc63d9b
pointing to v5 version of volttron-build-action instead of branch erl…
schandrika File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,95 @@ | ||
# This file is a template, and might need editing before it works on your project. | ||
# You can copy and paste this template into a new `.gitlab-ci.yml` file. | ||
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. | ||
# | ||
# To contribute improvements to CI/CD templates, please follow the Development guide at: | ||
# https://docs.gitlab.com/ee/development/cicd/templates.html | ||
# This specific template is located at: | ||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Bash.gitlab-ci.yml | ||
|
||
# See https://docs.gitlab.com/ee/ci/yaml/index.html for all available options | ||
|
||
# you can delete this line if you're not using Docker | ||
# image: busybox:latest | ||
|
||
22.04 job: | ||
tags: | ||
- ubuntu2204 | ||
|
||
before_script: | ||
- python3 bootstrap.py --all | ||
|
||
after_script: | ||
- rm -rf dist | ||
- rm -rf /tmp/tmp* | ||
- rm -rf env | ||
|
||
script: | ||
- env/bin/activate | ||
- pytest volttrontesting | ||
|
||
20.04 job: | ||
tags: | ||
- ubuntu2004 | ||
|
||
before_script: | ||
- python3 bootstrap.py --all | ||
|
||
after_script: | ||
- rm -rf dist | ||
- rm -rf /tmp/tmp* | ||
- rm -rf env | ||
|
||
script: | ||
- env/bin/activate | ||
- pytest volttrontesting | ||
|
||
# This file is a template, and might need editing before it works on your project. | ||
# You can copy and paste this template into a new `.gitlab-ci.yml` file. | ||
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. | ||
# | ||
# To contribute improvements to CI/CD templates, please follow the Development guide at: | ||
# https://docs.gitlab.com/ee/development/cicd/templates.html | ||
# This specific template is located at: | ||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Bash.gitlab-ci.yml | ||
|
||
# See https://docs.gitlab.com/ee/ci/yaml/index.html for all available options | ||
|
||
# you can delete this line if you're not using Docker | ||
# image: busybox:latest | ||
|
||
stages: | ||
- build | ||
- test | ||
|
||
.parallel-tests: | ||
parallel: | ||
matrix: | ||
- TEST: | ||
- services/core/ActuatorAgent/tests | ||
- services/core/DataMover/tests/ | ||
- services/core/DNP3OutstationAgent/tests | ||
- services/core/OpenADRVenAgent/tests | ||
- services/core/PlatformDriverAgent/tests | ||
- services/core/SQLHistorian/tests | ||
- services/core/VolttronCentral/tests | ||
- services/core/VolttronCentralPlatform/tests | ||
- services/core/WeatherDotGov/tests | ||
- services/ops | ||
- volttrontesting/gevent/yield_test.py | ||
- volttrontesting/platform/auth_tests | ||
- volttrontesting/platform/control_tests | ||
- volttrontesting/platform/dbutils | ||
- volttrontesting/platform/web | ||
- volttrontesting/platform/test_basehistorian.py | ||
- volttrontesting/platform/test_connection.py | ||
- volttrontesting/platform/test_core_agent.py | ||
- volttrontesting/platform/test_instance_setup.py | ||
- volttrontesting/platform/test_keystore.py | ||
- volttrontesting/platform/test_packaging.py | ||
- volttrontesting/platform/test_platform_init.py | ||
- volttrontesting/platform/test_platform_rmq.py | ||
- volttrontesting/platform/test_platform_web.py | ||
- volttrontesting/platform/test_rmq_platform_shutdown.py | ||
- volttrontesting/platform/test_sqlite3_fix.py | ||
- volttrontesting/services/historian | ||
- volttrontesting/services/aggregate_historian | ||
- volttrontesting/services/tagging | ||
- volttrontesting/services/weather | ||
- volttrontesting/services/test_pubsub_service.py | ||
- volttrontesting/subsystems | ||
- volttrontesting/testutils | ||
- volttrontesting/zmq | ||
|
||
build 20.04: | ||
stage: build | ||
tags: | ||
- ubuntu2004 | ||
|
||
before_script: | ||
#- killall -9 volttron beam.smp python | ||
- rm -rf dist ~/.volttron ~/.volttron_instances | ||
- rm -rf /tmp/tmp* | ||
- rm -rf ~/rabbitmq_server | ||
|
||
script: | ||
- python3 bootstrap.py --all | ||
- source env/bin/activate | ||
- python3 bootstrap.py --rabbitmq | ||
- echo "BUILD_DIR_20_04=`pwd`" >> build.env | ||
- echo "$BUILD_DIR_20_04" | ||
- echo `pwd` | ||
|
||
artifacts: | ||
reports: | ||
dotenv: build.env | ||
|
||
test 20.04: | ||
stage: test | ||
needs: [build 20.04] | ||
variables: | ||
GIT_CHECKOUT: "false" | ||
tags: | ||
- ubuntu2004 | ||
extends: .parallel-tests | ||
script: | ||
- cd $BUILD_DIR_20_04 | ||
- echo `pwd` | ||
- source env/bin/activate | ||
- pytest $TEST | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,36 +113,40 @@ You can deactivate the environment at any time by running `deactivate`. | |
|
||
#### Steps for RabbitMQ | ||
|
||
##### 1. Install Erlang version 24 packages | ||
##### 1. Install Erlang version 25 packages | ||
|
||
For RabbitMQ based VOLTTRON, some RabbitMQ specific software packages must be installed. | ||
|
||
###### On Debian based systems and CentOS 6/7 | ||
|
||
If you are running an Debian or CentOS system, you can install the RabbitMQ dependencies by running the rabbit | ||
dependencies script, passing in the OS name and appropriate distribution as parameters. The following are supported: | ||
|
||
- `debian focal` (for Ubuntu 20.04) | ||
###### Install Erlang pre-requisites | ||
```shell | ||
sudo apt-get update | ||
sudo apt-get install -y gnupg apt-transport-https libsctp1 | ||
``` | ||
|
||
- `debian bionic` (for Ubuntu 18.04) | ||
###### Purge previous versions of Erlang | ||
```shell | ||
sudo apt-get purge -yf erlang-base | ||
``` | ||
|
||
- `debian stretch` (for Debian Stretch) | ||
###### Install Erlang | ||
|
||
- `debian buster` (for Debian Buster) | ||
Download and install ErlangOTP from [Erlang Solutions](https://www.erlang-solutions.com/downloads/). | ||
RMQ uses components - ssl, public_key, asn1, and crypto. These are by default included in the OTP | ||
RabbitMQ 3.9.29 is compatible with Erlang versions 24.3.4.2 to 25.2. VOLTTRON was tested with Erlang version 25.2-1 | ||
|
||
- `raspbian buster` (for Raspbian/Raspberry Pi OS buster) | ||
Example: | ||
|
||
Example command: | ||
On Ubuntu 22.04: | ||
|
||
```sh | ||
./scripts/rabbit_dependencies.sh debian xenial | ||
```shell | ||
wget https://binaries2.erlang-solutions.com/ubuntu/pool/contrib/e/esl-erlang/esl-erlang_25.2-1~ubuntu~jammy_amd64.deb | ||
sudo dpkg -i esl-erlang_25.2-1~ubuntu~jammy_amd64.deb | ||
``` | ||
|
||
###### Alternatively | ||
On Ubuntu 20.04: | ||
```shell | ||
wget https://binaries2.erlang-solutions.com/ubuntu/pool/contrib/e/esl-erlang/esl-erlang_25.2-1~ubuntu~focal_amd64.deb | ||
sudo dpkg -i esl-erlang_25.2-1~ubuntu~focal_amd64.deb | ||
``` | ||
|
||
You can download and install Erlang from [Erlang Solutions](https://www.erlang-solutions.com/resources/download.html). | ||
Please include OTP/components - ssl, public_key, asn1, and crypto. | ||
Also lock your version of Erlang using the [yum-plugin-versionlock](https://access.redhat.com/solutions/98873) | ||
|
||
##### 2. Configure hostname | ||
|
||
|
@@ -155,9 +159,13 @@ connect to empd (port 4369) on <hostname>." Note: RabbitMQ startup error would s | |
and not in RabbitMQ logs (/var/log/rabbitmq/[email protected]) | ||
|
||
##### 3. Bootstrap | ||
Remove older version of rabbitmq_server directory. Defaults to <user_home>/rabbitmq_server/rabbitmq_server-3.9.7 | ||
|
||
Run the rabbitmq boostrap command within an activated VOLTTRON environment | ||
|
||
```sh | ||
cd volttron | ||
source env/bin/activate | ||
python3 bootstrap.py --rabbitmq [optional install directory. defaults to | ||
<user_home>/rabbitmq_server] | ||
``` | ||
|
@@ -175,7 +183,7 @@ it needs to be set to the RabbitMQ installation directory (default path is | |
`<user_home>/rabbitmq_server/rabbitmq_server-<rmq-version>`) | ||
|
||
```sh | ||
echo 'export RABBITMQ_HOME=$HOME/rabbitmq_server/rabbitmq_server-3.9.7'|sudo tee --append ~/.bashrc | ||
echo 'export RABBITMQ_HOME=$HOME/rabbitmq_server/rabbitmq_server-3.9.29'|sudo tee --append ~/.bashrc | ||
source ~/.bashrc | ||
|
||
$RABBITMQ_HOME/sbin/rabbitmqctl status | ||
|
@@ -232,7 +240,7 @@ Your VOLTTRON_HOME currently set to: /home/vdev/new_vhome2 | |
|
||
Is this the volttron you are attempting to setup? [Y]: | ||
Creating rmq config yml | ||
RabbitMQ server home: [/home/vdev/rabbitmq_server/rabbitmq_server-3.9.7]: | ||
RabbitMQ server home: [/home/vdev/rabbitmq_server/rabbitmq_server-3.9.29]: | ||
Fully qualified domain name of the system: [cs_cbox.pnl.gov]: | ||
|
||
Enable SSL Authentication: [Y]: | ||
|
@@ -252,7 +260,7 @@ AMQPS (SSL) port RabbitMQ address: [5671]: | |
https port for the RabbitMQ management plugin: [15671]: | ||
INFO:rmq_setup.pyc:Starting rabbitmq server | ||
Warning: PID file not written; -detached was passed. | ||
INFO:rmq_setup.pyc:**Started rmq server at /home/vdev/rabbitmq_server/rabbitmq_server-3.9.7 | ||
INFO:rmq_setup.pyc:**Started rmq server at /home/vdev/rabbitmq_server/rabbitmq_server-3.9.29 | ||
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost | ||
shwethanidd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost | ||
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost | ||
|
@@ -266,7 +274,7 @@ INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): | |
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost | ||
INFO:rmq_setup.pyc:**Stopped rmq server | ||
Warning: PID file not written; -detached was passed. | ||
INFO:rmq_setup.pyc:**Started rmq server at /home/vdev/rabbitmq_server/rabbitmq_server-3.9.7 | ||
INFO:rmq_setup.pyc:**Started rmq server at /home/vdev/rabbitmq_server/rabbitmq_server-3.9.29 | ||
INFO:rmq_setup.pyc: | ||
|
||
####################### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If updating remove existing? directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer use that directory. Are you asking if bootstrap process will remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You assume that they are updating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated wording