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 #1

Updated by Jonathon Turel over 6 years ago

  • Translation missing: en.field_release set to 338
Actions #2

Updated by Andrew Kofink over 6 years ago

  • Assignee set to John Mitsch
  • Difficulty set to easy
Actions #3

Updated by Jonathon Turel over 6 years ago

  • Target version changed from Katello 3.7.0 to Katello 3.7.1
Actions #4

Updated by Jonathon Turel over 6 years ago

  • Target version changed from Katello 3.7.1 to 931
Actions #5

Updated by John Mitsch about 6 years ago

  • Is duplicate of Bug #23564: foreman-installer --reset does not use mongo 3.4 added
Actions #6

Updated by John Mitsch about 6 years ago

  • Status changed from New to Duplicate

Looks like this is a duplicate and is already fixed

Actions #7

Updated by Ales Dujicek about 6 years ago

Actions #8

Updated by Ales Dujicek about 6 years ago

  • Bugzilla link set to 1636328
Actions #9

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)
Actions #10

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
Actions #11

Updated by Eric Helms about 6 years ago

  • Status changed from Ready For Testing to Closed
  • Target version set to Katello 3.9.0
Actions #12

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/709 added
Actions #13

Updated by Zach Huntington-Meath about 6 years ago

  • Pull request deleted (https://github.com/Katello/katello-installer/pull/709)
Actions

Also available in: Atom PDF