Project

General

Profile

Bug #24366

mongo_db_up check cannot start mongo34

Added by Ales Dujicek about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

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

Associated revisions

Revision aa20e176 (diff)
Added by Alda about 4 years ago

Fixes #24366 - mongo_db_up use feature's services (#202)

History

#1 Updated by The Foreman Bot about 4 years ago

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

#2 Updated by Anonymous about 4 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF