-
Notifications
You must be signed in to change notification settings - Fork 445
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
fix: replica set error from pymongo 3.10 -> 3.12 upgrade #699
Conversation
(Actually, going to hold on this because while it did get me past the migration, I should wait until I have a fully functioning local tutor dev env.) |
Okay, now I'm past the initial migration, but I'm running into:
I must confess that I don't really grok how Tutor handles config yet, so this might take me a little while. |
Ah, okay, so tutor's But then, why didn't that change break devstack too? |
The error you are facing is because Tutor sets
Here's the original commit which introduced this null value: f32eb08 I'm not sure whether you can remove this entry from auth.yml. Maybe you can try? |
Thanks @regisb! |
@regisb: That worked! Though I don't really understand what taking that out might break...? |
I'll add it to the PR anyhow. |
600d014
to
90f2233
Compare
@regisb: Does this look okay to you? |
Ah, forgot the CHANGELOG policy in this repo. Going to add that now... |
90f2233
to
64c03cf
Compare
Okay, now I think it's ready for review. 😄 Thank you for your patience as I stumble through my first Tutor contribution. |
This change didn't cause any issues with devstack because in the pymongo upgrade PR we already tackled this in configuration |
@@ -1,7 +1,6 @@ | |||
SECRET_KEY: "{{ OPENEDX_SECRET_KEY }}" | |||
AWS_ACCESS_KEY_ID: "{{ OPENEDX_AWS_ACCESS_KEY }}" | |||
AWS_SECRET_ACCESS_KEY: "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}" | |||
CONTENTSTORE: null |
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.
For the record, this line is no longer necessary in cms/envs/production.py since this commit: https://github.com/openedx/edx-platform//commit/7d2a8340c5e997bf4ca43ca537a91e8f0962df1f#diff-aa2b311852d707265f0324225f3d9178bed527d71c84cd296de4de6a8d2c190dL388
The pymongo dependency for edx-platform was updated (3.10.1 to 3.12.3) in openedx/edx-platform#30569 This caused the following error when running the edx-platform database migration split_modulestore_django.0002_data_migration as part of `tutor dev quickstart`: pymongo.errors.ServerSelectionTimeoutError: client is configured to connect to a replica set named '' but this node belongs to a set named 'None', Timeout: 30s, Topology Description: <TopologyDescription id: 62bdbaf182687350acf1aeec, topology_type: Single, servers: [<ServerDescription ('mongodb', 27017) server_type: Unknown, rtt: None, error=ConfigurationError("client is configured to connect to a replica set named '' but this node belongs to a set named 'None'")>]> This commit explicitly sets replicaSet to None to indicate that it's a standalone MongoDB instance. I also had to remove the CONTENTSTORE entry from auth.yml because edx-platform's devstack.py assumes it has a non-null value (set in common.py), and devstack.py executes before tutor's development.py can set this replicaSet value.
51e54eb
to
a89d545
Compare
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.
It's cool to merge your first PR here Dave :)
The pymongo dependency for edx-platform was updated (3.10.1 to 3.12.3)
in openedx/edx-platform#30569
This caused the following error when running the edx-platform database
migration split_modulestore_django.0002_data_migration as part of
tutor dev quickstart
:This commit explicitly sets replicaSet to None to indicate that it's a
standalone MongoDB instance.