Bug 1399244 - katello-backup --online-backup shuts down satellite
Summary: katello-backup --online-backup shuts down satellite
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Backup & Restore
Version: 6.2.8
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact: Peter Ondrejka
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1430736 (view as bug list)
Depends On: 1417372 1426413
Blocks: 1426399 1431533 1439123
TreeView+ depends on / blocked
 
Reported: 2016-11-28 15:58 UTC by Michael Arbet
Modified: 2021-12-10 14:48 UTC (History)
17 users (show)

Fixed In Version: katello-3.0.0-18
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1426399 1431533 (view as bug list)
Environment:
Last Closed: 2017-05-01 13:56:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15454 0 None None None 2016-11-28 20:04:31 UTC
Red Hat Product Errata RHBA-2017:1191 0 normal SHIPPED_LIVE Satellite 6.2.9 Async Bug Release 2017-05-01 17:49:42 UTC

Description Michael Arbet 2016-11-28 15:58:21 UTC
Description of problem:

katello-backup shuts down satellite services even if issued with parameter '--online-backup' - exactly opposite to the impression - it sounds like should keep the things running. When the backup is complete the services are back.

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


How reproducible:
katello-backup --skip-pulp-content /var/backup
katello-backup --online backup --skip-pulp-content /var/backup
try to connect to satellite using browser and/or observe if port 443 is listening - it should be shut down in both cases

Expected results:
The second option --online-backup should keep satellite services running

Comment 3 Satellite Program 2017-02-23 21:10:11 UTC
Please add verifications steps for this bug to help QE verify

Comment 4 Christine Fouant 2017-03-09 22:01:55 UTC
(In reply to pm-sat from comment #3)
> Please add verifications steps for this bug to help QE verify

Verification steps:

1) Run katello-backup with the online-backup option (i.e. #katello-backup /tmp/backup --online-backup)

2) Verify that services stay online during the backup process.

Please let me know if you need anything else, thanks!

Comment 5 Stephen Wadeley 2017-03-10 07:48:07 UTC
Hello


Does the service *stay* down after using --on-line option? 

It is explained in the guide [1] that "the time consuming backup of the Pulp directory is performed on-line to reduce the time Satellite services are unavailable. Configuration files and databases are backed up off-line first."

and then later "The katello-backup script with the --online-backup option first stops all services which could impact the backup, backs up the configuration files and databases, restarts the required services, and then performs the more time consuming backup of the Pulp directory"


Is any of that incorrect at the moment?

Thank you


[1] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/server_administration_guide/chap-red_hat_satellite-server_administration_guide-backup_and_disaster_recovery

Comment 6 Stephen Wadeley 2017-03-10 07:49:02 UTC
sorry for typo: --online-backup option I should have said in comment 5

Comment 9 Christine Fouant 2017-03-10 16:46:08 UTC
(In reply to Stephen Wadeley from comment #5)
> Hello
> 
> 
> Does the service *stay* down after using --on-line option? 
> 
> It is explained in the guide [1] that "the time consuming backup of the Pulp
> directory is performed on-line to reduce the time Satellite services are
> unavailable. Configuration files and databases are backed up off-line first."
> 
> and then later "The katello-backup script with the --online-backup option
> first stops all services which could impact the backup, backs up the
> configuration files and databases, restarts the required services, and then
> performs the more time consuming backup of the Pulp directory"
> 
> 
> Is any of that incorrect at the moment?
> 
> Thank you
> 
> 
> [1]
> https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/
> server_administration_guide/chap-red_hat_satellite-
> server_administration_guide-backup_and_disaster_recovery

Yes, as the code currently stands, running katello-backup will shut down services regardless of whether or not the --online-backup option is used. However, if --online-backup is selected, the services never even start back up via the script.

Comment 10 Christine Fouant 2017-03-10 16:47:36 UTC
*** Bug 1430736 has been marked as a duplicate of this bug. ***

Comment 14 Peter Ondrejka 2017-03-24 16:27:30 UTC
Verified in Sat 6.2.9-1, katello-backup no longer shuts down services with --online-backup option

Comment 16 errata-xmlrpc 2017-05-01 13:56:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1191


Note You need to log in before you can comment on or make changes to this bug.