Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #23564: foreman-installer --reset does not use mongo 3.4Closed05/11/2018Actions
Actions

Also available in: Atom PDF