-
Notifications
You must be signed in to change notification settings - Fork 32
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
Actually drop mongodb #266
Conversation
ce2e35e
to
232ca07
Compare
232ca07
to
857e14b
Compare
yee-haw |
c7b59a0
to
bf3eff7
Compare
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()" |
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.
I see a similar call in satellite-clone/tasks/reset_pulp_data.yml, should it also be updated?
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.
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.
bf3eff7
to
827ef1e
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.
APJ
1fe5c98
to
21e8a6f
Compare
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
21e8a6f
to
a3d319b
Compare
currently jenkins is blocked by #275 |
yee-haw |
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