Bug #23620
closed
foreman-installer --reset cannot empty local mongo 3.4 database
Added by Ales Dujicek over 6 years ago.
Updated about 6 years ago.
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
- Translation missing: en.field_release set to 338
- Assignee set to John Mitsch
- Difficulty set to easy
- Target version changed from Katello 3.7.0 to Katello 3.7.1
- Target version changed from Katello 3.7.1 to 931
- Is duplicate of Bug #23564: foreman-installer --reset does not use mongo 3.4 added
- Status changed from New to Duplicate
Looks like this is a duplicate and is already fixed
- Bugzilla link set to 1636328
- Category set to Installer
- Status changed from Duplicate to Assigned
- Assignee changed from John Mitsch to Chris Roberts
- Target version deleted (
931)
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/708 added
- Status changed from Ready For Testing to Closed
- Target version set to Katello 3.9.0
- Pull request https://github.com/Katello/katello-installer/pull/709 added
- Pull request deleted (
https://github.com/Katello/katello-installer/pull/709)
Also available in: Atom
PDF