Skip to content
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

Actually drop mongodb #266

Merged

Conversation

johnpmitsch
Copy link
Contributor

@johnpmitsch johnpmitsch commented Nov 16, 2017

The echo command we were using wasn't actually dropping the mongo
database, but rather echoing 'db.dropDatabase();' | mongo pulp_database

This resulted in data being restored on an existing database.

So the mongo database stayed during restore. We didn't notice many issues
because not much is in the mongo database on a clean satellite install.

Fixes #259

@johnpmitsch johnpmitsch force-pushed the debug_event_listener branch 3 times, most recently from ce2e35e to 232ca07 Compare November 16, 2017 21:38
@johnpmitsch
Copy link
Contributor Author

yee-haw

@johnpmitsch johnpmitsch force-pushed the debug_event_listener branch 2 times, most recently from c7b59a0 to bf3eff7 Compare November 30, 2017 00:00
@johnpmitsch johnpmitsch changed the title DO NOT MERGE - debugging #259 Actually drop mongodb Nov 30, 2017
@johnpmitsch
Copy link
Contributor Author

yee-haw

@@ -1,5 +1,5 @@
- name: Drop old mongo database
command: echo 'db.dropDatabase();' | mongo pulp_database
command: mongo pulp_database --eval "db.dropDatabase()"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a similar call in satellite-clone/tasks/reset_pulp_data.yml, should it also be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks brad, I updated that line as well, its possible that that wasn't executing properly as well so good catch.

Since that runs only on backups w/o pulp_data I'll add that scenario to jenkins and re-run.

Copy link
Collaborator

@bbuckingham bbuckingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APJ

@johnpmitsch johnpmitsch force-pushed the debug_event_listener branch 2 times, most recently from 1fe5c98 to 21e8a6f Compare November 30, 2017 21:23
The echo command we were using wasn't actually dropping the mongo
database, but rather echoing 'db.dropDatabase();' | mongo pulp_database

This resulted in data being restored on an existing database.

So the mongo database stayed during restore. We didn't notice many issues
because not much is in the mongo database on a clean satellite install.

Fixes RedHatSatellite#259
@johnpmitsch
Copy link
Contributor Author

currently jenkins is blocked by #275

@johnpmitsch
Copy link
Contributor Author

yee-haw

@johnpmitsch johnpmitsch merged commit 3373ff4 into RedHatSatellite:master Dec 19, 2017
@johnpmitsch johnpmitsch deleted the debug_event_listener branch December 19, 2017 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants