Project

General

Profile

Actions

Bug #24366

closed

mongo_db_up check cannot start mongo34

Added by Ales Dujicek over 5 years ago. Updated over 5 years ago.

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

Description

mongo_db_up check hard-codes 'mongod' service name

definitions/checks/mongo/db_up.rb

       def next_steps
         if feature(:mongo).local?
           [Procedures::Service::Start.new(:only => 'mongod')]
         else
           [] # there is nothing we can do for remote db
         end

so mongodb34 cannot be started by that

# foreman-maintain health check --label mongo-db-up
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Make sure Mongo DB is up: 
\ Checking connection to the Mongo DB                                 [FAIL]    
Mongo DB is not responding. It needs to be up and running to perform the following steps.
--------------------------------------------------------------------------------
Continue with step [Start applicable services]?, [y(yes), n(no), q(quit)] y
Start applicable services:                                                      
Starting the following service(s):
                                   [FAIL]
No services found matching your parameters

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/202 added
Actions #2

Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF