Project

General

Profile

Actions

Bug #23498

closed

Features::Mongo::server_version doesnt work with mongo3.4

Added by Ales Dujicek about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

D, [2018-05-04 10:27:48+0200 #10165] DEBUG -- : Running command mongo --host localhost --port 27017 --eval 'ping:1' pulp_database with stdin nil
D, [2018-05-04 10:27:48+0200 #10165] DEBUG -- : output of the command:
 sh: mongo: command not found

server_version runs /usr/bin/mongo which is not installed anymore (remove mongo 2.6)
https://github.com/theforeman/foreman-packaging/pull/2343/files#diff-524a56c89a7dd0e9dbe2443042774384

def server_version(config = configuration)
    # do not use any core methods as we need this prior the core is created
    version = execute(base_command('mongo', config, "--eval 'db.version()' #{config['name']}"),
                      :hidden_patterns => [config['password']].compact)
Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Assignee set to Martin Bacovsky
  • Pull request https://github.com/theforeman/foreman_maintain/pull/179 added
Actions #2

Updated by Martin Bacovsky almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF