Project

General

Profile

Actions

Bug #29816

closed

satellite-maintain snapshot backup do not restore the Red Hat Satellite services if it fails.

Added by Suraj Patil over 4 years ago. Updated over 3 years ago.

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

Description

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

Description of problem:
satellite-maintain snapshot backup fails to restore the services if it fails at any stage of backup.

Version-Release number of selected component (if applicable):
6.6

How reproducible:
Always

Steps to Reproduce:
1) Check the services status.
2) Rhun below command to take the backup:
  1. satellite-maintain backup snapshot --assumeyes /var/log/foremain_maintain_$(date +%F_%H_%M).log

If the backup fails which can happen due to multiple reasons, then restore services part won't get executed. This results in Red Hat Satellite server in unresponsive state.

To restore the server back, need to restart the services manually like:
  1. katello-service restart

Actual results:
Failed Red Hat Satellite server services.

Expected results:
Should restore the Red Hat Satellite services back even if the backup fails at any stage.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman Maintain - Feature #29815: Foreman-maintain should turn off the maintenance mode and start the service if backup fails in betweenClosedSuraj PatilActions
Actions

Also available in: Atom PDF