Red Hat Bugzilla – Bug 972192
unsuccessful ssh connection to spacewalk to fetch report results in temporary data loss
Last modified: 2013-10-01 07:11:55 EDT
Description of problem:
If spacewalk-splice-tool is not able to connect via ssh to the spacewalk machine, or if spacewalk-reports returns an error, then the script assumes that there are no more orgs or systems and will remove them from katello.
Version-Release number of selected component (if applicable): 0.19
How reproducible: every time
Steps to Reproduce:
1. break ssh access somehow (shut down sshd, or shut down postgresql on spacewalk server)
2. run spacewalk-splice-checkin --spacewalk-sync
Actual results: orgs and systems are removed from katello. They will come back if the underlying ssh or spacewalk-report error is fixed.
Expected results: an exception is thrown and logged, and the script does not run further.
commit 2009d717141b965925e502364ada5fbbb2679c32 to spacewalk-splice-tool
non-zero exit code from ssh is now logged and the program is exited.
Verified in spacewalk-splice-tool-0.20-1.el6sam:
[root@ec2-54-216-161-93 ~]# spacewalk-splice-checkin
[root@ec2-54-216-161-93 ~]# echo $?
The data in Katello is in place.
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.