Red Hat Bugzilla – Bug 1004954
getting "KeyError: '1000010848'" when syncing from big satellite instance
Last modified: 2013-10-01 07:24:55 EDT
Description of problem:
Getting "KeyError: '1000010848'" when syncing from big satellite instance
Version-Release number of selected component (if applicable):
1 of 1 attempt
Steps to Reproduce:
1. Setup Splice to sync from Satellite 5.6.0 to SAM 1.3 snapshot #4
2. $ spacewalk-splice-checkin
Traceback (most recent call last):
File "/usr/bin/spacewalk-splice-checkin", line 97, in <module>
File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/checkin.py", line 206, in main
File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/checkin.py", line 159, in spacewalk_sync
File "/usr/lib/python2.6/site-packages/spacewalk_splice_tool/katello_sync.py", line 231, in upload_host_guest_mapping
According to a katello developer, we are likely pushing data with too many threads, and it's having trouble keeping up. Reducing the num_threads count in checkin.conf should resolve this.
Let me know if num_threads=2 works better, and if it does I'll change the default in checkin.conf.
Yes. This helped. I have decreased num_threads in /etc/splice/checkin.conf from 4 to 2 and re-run the command (note I have not purged SAM DB to be 100% sure all data gets inserted again) and it ended without traceback.
eb0c566 spacewalk-splice-tool 0.42+
I changed the default num_threads from 4 to 2. This makes creates and updates somewhat slower, but avoids the issues mentioned above.
After discussion with vkuznets, we changed this to 1
In Snapshot 6:
# grep num_threads /etc/splice/checkin.conf
num_threads = 1
Jan, can you please confirm you're not hitting the initial issue with Snapshot6?
Is there a way how to list all the systems in the SAM instance on the command line? I want to compare it to list in satellite. Would prefer some CSV file.
(In reply to Jan Hutař from comment #7)
> Is there a way how to list all the systems in the SAM instance on the
> command line? I want to compare it to list in satellite. Would prefer some
> CSV file.
Yes, it's possible.
#headpin -u admin -p admin system list --org satellite-1 -g --noheading -d ','
You can list all your org labels with 'headpin org list'.
Note it will take some time to me (day or so) waiting for a Beaker to prepare mine environment, will report back with results later.
Verifying based on Comment 6 and Comment 10.
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.