Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1332188

Summary: cannot sync RHEL 6.x Kickstarts on RHEL6
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-02 13:22:05 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 Lukas Pramuk 2016-05-02 12:59:21 UTC
Description of problem:
cannot sync Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.7 on RHEL6 Satellite machine 

Version-Release number of selected component (if applicable):
Sat6.2.0-Beta

How reproducible:
sofar alaways on RHEL6

Steps to Reproduce:
1. Enable "Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.7"
2. Sync "Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.7"

Sync Incomplete:

Katello::Errors::PulpError: PLP0000: iter

May  2 08:21:38 <host> pulp: pulp.server.async.tasks:INFO: Task failed : [9f6d4e1c-5a9f-4933-849a-9bd36cdbd4e2]
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392) Task pulp.server.managers.repo.publish.publish[9f6d4e1c-5a9f-4933-849a-9bd36cdbd4e2] raised unexpected: AttributeError('iter',)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392) Traceback (most recent call last):
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     R = retval = fun(*args, **kwargs)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 473, in __call__
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     return super(Task, self).__call__(*args, **kwargs)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 103, in __call__
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     return super(PulpTask, self).__call__(*args, **kwargs)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     return self.run(*args, **kwargs)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 971, in publish
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.py", line 1023, in _do_publish
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     publish_report = publish_repo(transfer_repo, conduit, call_config)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 658, in wrap_f
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     return f(*args, **kwargs)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py", line 174, in publish_repo
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     return self._publisher.process_lifecycle()
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     super(PluginStep, self).process_lifecycle()
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     step.process()
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 232, in process
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     self._process_block(item=item)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", line 291, in _process_block
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     self.process_main(item=item)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 748, in process_main
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     self._publish_distribution_files(unit)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 816, in _publish_distribution_files
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     self._write_pulp_distribution_file(distro_files, xml_file_path)
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)   File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 835, in _write_pulp_distribution_file
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392)     old_files = [old_element.text for old_element in old_xml_root.iter('file')]
May  2 08:21:38 <host> pulp: celery.worker.job:ERROR: (25307-79392) AttributeError: iter


Actual results:
broken sync with traceback

Expected results:
sync successful

Comment 2 Brad Buckingham 2016-05-02 13:22:05 UTC

*** This bug has been marked as a duplicate of bug 1329640 ***

Comment 3 Lukas Pramuk 2016-05-02 13:32:49 UTC
A sync of "Red Hat Enterprise Linux 5 Server Kickstart x86_64 5.11" fails the same way. While sync of "Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.2" succeeded.

So, this seems related to multiple archs available for RHEL5 and RHEL6.
( while RHEL7 has only x86_64 arch)