Project

General

Profile

Actions

Feature #22198

closed

foreman-maintain maintenance-mode command

Added by Ivan Necas about 6 years ago. Updated about 5 years ago.

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

Description

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 1 (0 open1 closed)

Related to Foreman Maintain - Bug #21739: Cron jobs are not disabled for the upgradeResolvedKavita GaikwadActions
Actions #1

Updated by Ivan Necas about 6 years ago

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

Updated by Ivan Necas about 6 years ago

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

Updated by Kavita Gaikwad almost 6 years ago

  • Assignee changed from Anurag Patel to Kavita Gaikwad
Actions #4

Updated by The Foreman Bot almost 6 years ago

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

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
Actions #6

Updated by Kavita Gaikwad about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF