Bug 1415270

Summary: [RFE] katello-backup shuts down satellite without prompting user
Product: Red Hat Satellite Reporter: Chris Duryee <cduryee>
Component: Backup & RestoreAssignee: Christine Fouant <cfouant>
Status: CLOSED NOTABUG QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.6CC: bbuckingham, bkearney, cfouant, jcallaha, mmccune
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-19 14:36:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Duryee 2017-01-20 17:27:40 UTC
Description of problem:

Katello-backup will shut down the satellite without prompting the user first. This can have serious consequences if the user does not know ahead of time that the satellite will be shut down during the backup.

Note that there is a --online-backup option, but it applies only to the Pulp portion. This should likely be renamed to --online-pulp-backup to avoid confusion.

Ideally, katello-backup would prompt the user before commencing the backup that there will be a shutdown, and have a command-line option to optionally skip the prompt (for example, --ok-to-shutdown or similar).


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

Comment 2 Mike McCune 2017-01-20 18:22:15 UTC
The latest version from upstream properly keeps services online:

# ./katello-backup --skip-pulp-content --online-backup /var/tmp
Starting backup: 2017-01-20 13:15:09 -0500
Creating backup folder /var/tmp/katello-backup-2017-01-20T13:15:09-05:00
Backing up config files... 
tar: Removing leading `/' from member names
Done.
Backing up postgres db... 
Done.
Backing up mongo db... 
Done.
Done with backup: 2017-01-20 13:21:53 -0500
**** BACKUP Complete, contents can be found in: /var/tmp/katello-backup-2017-01-20T13:15:09-05:00 ****


but we still need a confirm flag.

Comment 4 Christine Fouant 2017-01-31 20:50:45 UTC
Created redmine issue http://projects.theforeman.org/issues/18328 from this bug

Comment 5 Satellite Program 2017-07-10 20:17:25 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18328 has been resolved.

Comment 8 Lai 2018-09-19 14:36:39 UTC
katello-backup does provide the message that it's being replaced by foreman-maintain backup as seen below:

-bash-4.2# katello-backup --skip-pulp-content --online-backup /var/tmp

IMPORTANT: katello-backup has been removed in favor of 'foreman-maintain backup'.
This change happened in order to support remote databases and a newer mongo version.
Please update your scripts and/or cron jobs.



Ran foreman-mantain backup and successfully backed up system with both online and offline options as seen below:

Done with backup: 2018-09-19 10:28:27 -0400
**** BACKUP Complete, contents can be found in: /var/tmp/satellite-backup-2018-09-19-10-24-58 ****

Marking this as

Comment 9 Red Hat Bugzilla 2023-09-15 00:01:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days