Project

General

Profile

Actions

Bug #25634

closed

upgrade-mongo-storage-engine is not restoring database

Added by Chris Roberts over 5 years ago. Updated over 5 years ago.

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

Description

  • the sed command does not do anything:
    hooks/pre/31-mongo_storage_engine.rb: Kafo::Helpers.execute("sed -i -e 's/run the installer with --upgrade-mongo-storage to upgrade to wiredTiger./Do not remove'/g #{hiera_file}")
    1. tail -n 2 /etc/foreman-installer/custom-hiera.yaml
    2. Added by foreman-installer during upgrade, run the installer with --upgrade-mongo-storage to upgrade to WiredTiger.
      mongodb::server::storage_engine: 'wiredTiger'

Mongo database is empty after upgrade.

  1. mongo

show dbs

local 0.078GB
pulp_database 1.953GB

  1. satellite-installer --upgrade-mongo-storage-engine
    ...
    Installing Done [100%]
    Success! * Satellite is running at https://.....redhat.com
    • To install an additional Capsule on separate machine continue by running:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"

    • To upgrade an existing 6.4 Capsule to 6.5:
      Please see official documentation for steps and parameters to use when upgrading a 6.4 Capsule to 6.5.

    The full log is at /var/log/foreman-installer/satellite.log

  1. mongo

show dbs

admin 0.000GB
local 0.000GB
pulp_database 0.000GB

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/725 added
Actions #2

Updated by Chris Roberts over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF