Actions
Bug #23620
closedforeman-installer --reset cannot empty local mongo 3.4 database
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Description
reset deletes the database this way:
hooks/pre/10-reset_feature.rb def empty_mongo 'systemctl stop rh-mongodb34-mongod', 'rm -f /var/lib/mongodb/pulp_database*', 'systemctl start rh-mongodb34-mongod' end
but mongo 3.4 stores data in a different way than 2.6, so this does not work for 3.4
mongo 2.6
# ls /var/lib/mongodb/ journal local.0 local.ns mongod.lock pulp_database.0 pulp_database.ns
mongo 3.4
# ls /var/lib/mongodb | grep -v -e collection- -e index- diagnostic.data journal _mdb_catalog.wt mongod.lock sizeStorer.wt storage.bson WiredTiger WiredTigerLAS.wt WiredTiger.lock WiredTiger.turtle WiredTiger.wt
Updated by Jonathon Turel over 6 years ago
- Translation missing: en.field_release set to 338
Updated by Andrew Kofink over 6 years ago
- Assignee set to John Mitsch
- Difficulty set to easy
Updated by Jonathon Turel over 6 years ago
- Target version changed from Katello 3.7.0 to Katello 3.7.1
Updated by Jonathon Turel about 6 years ago
- Target version changed from Katello 3.7.1 to 931
Updated by John Mitsch about 6 years ago
- Is duplicate of Bug #23564: foreman-installer --reset does not use mongo 3.4 added
Updated by John Mitsch about 6 years ago
- Status changed from New to Duplicate
Looks like this is a duplicate and is already fixed
Updated by Ales Dujicek about 6 years ago
It is not fixed, the issue is in a different code-path from #23564
https://github.com/Katello/katello-installer/blob/master/hooks/pre/10-reset_feature.rb#L79
Updated by Chris Roberts about 6 years ago
- Category set to Installer
- Status changed from Duplicate to Assigned
- Assignee changed from John Mitsch to Chris Roberts
- Target version deleted (
931)
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/708 added
Updated by Eric Helms about 6 years ago
- Status changed from Ready For Testing to Closed
- Target version set to Katello 3.9.0
Updated by The Foreman Bot about 6 years ago
- Pull request https://github.com/Katello/katello-installer/pull/709 added
Updated by Zach Huntington-Meath about 6 years ago
- Pull request deleted (
https://github.com/Katello/katello-installer/pull/709)
Actions