Feature #22198

foreman-maintain maintenance-mode command

Added by Ivan Necas 6 months ago. Updated 17 days ago.

Assignee:Kavita Gaikwad
Target version:-
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link:1487559 Found in Releases:
Pull request:https://github.com/theforeman/foreman_maintain/pull/180


Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1487559

As part of the pre-migrations phase, we perform steps to temporary disable functionality to make sure the upgrades are run in isolation from outside, e.g.

  • Disable enabled sync plans, stores information about the disabled sync plans to file to be able to restore it in SyncPlans::Enable
  • Disable external traffic on port 443 to prevent the interference with the system while the uprade runs

The commands to work with the maintenance-mode:

1. foreman-maintain maintenance-mode status
Shows the status of the maintenance mode. Possible values:

  • off - the maintenance mode is off
  • on - the maintenance mode is on
  • partially on - there were some steps of the maintenance mode already set, while some parts were not
  • not available - since foreman-maintain can run not only the satellite, on some installations (such as clients), this might not be avaiable

2. foreman-maintain maintenance-mode on
Runs the steps to enable the maintenance mode

3. foreman-maintain maintenance-mode off
Runs the steps to disable the maintenance mode

The exact steps to turn the maintenance mode on/off might differ from different versions and server vs proxy.

Related issues

Related to Foreman Maintain - Bug #21739: Cron jobs are not disabled for the upgrade New 11/22/2017


#1 Updated by Ivan Necas 6 months ago

  • Related to Bug #21739: Cron jobs are not disabled for the upgrade added

#2 Updated by Ivan Necas 6 months ago

  • Priority changed from Normal to High
  • Subject changed from foreman-maintain maintenance-mode command to foreman-maintain maintenance-mode command

#3 Updated by Kavita Gaikwad 2 months ago

  • Assignee changed from Anurag Patel to Kavita Gaikwad

#4 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/180 added

Also available in: Atom PDF