Bug 1465105

Summary: Note to update satellite-sync cron job to cdn-sync in upgrade docs provided by rhn-upgrade package
Product: Red Hat Satellite 5 Reporter: Candace Sheremeta <cshereme>
Component: UpgradesAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: high Docs Contact:
Priority: high    
Version: 580CC: adujicek, ggainey, shughes, tlestach, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-upgrade-5.8.0.28-1-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-19 11:59:23 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:
Bug Depends On:    
Bug Blocks: 1450111    
Attachments:
Description Flags
0001-1465105-advise-users-to-change-cron-jobs-to-cdn-sync.patch none

Description Candace Sheremeta 2017-06-26 16:32:46 UTC
Hi all,

Although there is information about the syntax of the cdn-sync nightly cron job here: https://access.redhat.com/documentation/en-us/red_hat_satellite/5.8/html/user_guide/chap-automatically_synchronizing_the_red_hat_satellite_server_repository

We are seeing customers who upgrade from a previous version of Satellite 5.x to Satellite 5.8 who are not changing this cron job. Therefore, their satellite-sync cron job is still running, and giving errors such as these in rhn_server_satellite.log:

2017/06/26 01:14:35 -04:00 Commandline: ['/usr/bin/satellite-sync', '--email', '--traceback-mail=user']
2017/06/26 01:14:35 -04:00 Red Hat Satellite - live synchronization
2017/06/26 01:14:35 -04:00 ERROR: Live content synchronizing with RHN Classic Hosted is no longer supported.
Please use the cdn-sync command instead unless you are attempting to sync from another Satellite via Inter-Satelite-Sync (ISS), or from local content on disk via Channel Dump ISOs.

Would it be possible to add a note to the upgrade documentation that is provided by the rhn-upgrade RPM telling the customer to please change their nightly satellite-sync job from:

0 1 * * * perl -le 'sleep rand 9000' && satellite-sync --email >/dev/null 2>1

to:

0 1 * * * perl -le 'sleep rand 9000' && cdn-sync --email >/dev/null 2>1

I think this would prevent a LOT of support cases. Thank you so much!

Comment 1 Tomas Lestach 2017-06-27 09:25:38 UTC
Sat 5.7 User Guide really suggests to set up a cron job for periodic content synchronization:
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/User_Guide/chap-Automatically_Synchronizing_the_Red_Hat_Satellite_Server_Repository.html


Based on this - yes - it makes sense to extend rhn-upgrade instructions with an extra note to update the cron job.

Comment 3 Tomáš Kašpárek 2017-08-17 08:15:40 UTC
Created attachment 1314591 [details]
0001-1465105-advise-users-to-change-cron-jobs-to-cdn-sync.patch

0001-1465105-advise-users-to-change-cron-jobs-to-cdn-sync.patch

Comment 10 errata-xmlrpc 2017-10-19 11:59:23 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:2914