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.
Description of problem:
I created a repo and created filter to black list the packages. But when I promoted the product to next env. pulp.log raised a traceback. No error in katello production logs and filters are working in katello.
Version-Release number of selected component (if applicable):
[root@dhcp201-205 ~]# rpm -qa | grep katello
katello-glue-pulp-0.1.135-2.el6.x86_64
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-configure-0.1.31-2.el6.noarch
katello-common-0.1.135-2.el6.noarch
katello-0.1.135-2.el6.x86_64
katello-all-0.1.135-2.el6.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.23-3.el6.noarch
katello-glue-candlepin-0.1.135-2.el6.x86_64
katello-cli-common-0.1.23-3.el6.noarch
katello-glue-foreman-0.1.135-2.el6.x86_64
katello-trusted-ssl-cert-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
[root@dhcp201-205 ~]# rpm -qa | grep pulp
katello-glue-pulp-0.1.135-2.el6.x86_64
pulp-0.0.254-4.el6.noarch
python-oauth2-1.5.170-2.pulp.el6.noarch
mod_wsgi-3.2-6.pulp.el6.x86_64
pulp-common-0.0.254-4.el6.noarch
pulp-selinux-server-0.0.254-4.el6.noarch
python-isodate-0.4.4-3.pulp.el6.noarch
m2crypto-0.21.1.pulp-5.el6.x86_64
[root@dhcp201-205 ~]#
How reproducible:
always
Steps to Reproduce:
1. create a provider ==> custom product ==> repo
2. create filter
3. sync repo
4. create changeset, update changset
Exact steps:
===========
katello> repo create --org sghai_org --name pulp_x86_64 --product pulp --url http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-15/x86_64/
Successfully created repository [ pulp_x86_64 ]
katello> filter create --name filter2 --packages grinder,gofer --org sghai_org
Successfully created filter [ filter2 ]
katello> product add_filter --name pulp --filter filter2 --org sghai_org
Added filter [ filter2 ] to product [ pulp ]
katello> repo synchronize --org sghai_org --product pulp --name pulp_x86_64
Repo [ pulp_x86_64 ] synced
katello> changeset create --org sghai_org --name pulp_promo1 --env test
Successfully created changeset [ pulp_promo1 ] for environment [ test ]
katello> changeset update --org sghai_org --name pulp_promo1 --env test --add_product pulp
Successfully updated changeset [ pulp_promo1 ]
katello> changeset promote --org sghai_org --name pulp_promo1 --env test
Changeset [ pulp_promo1 ] promoted
Actual results:
no issue in katello, filters are working fine but a traceback in pulp.log
RepoCloneTask.progress_callback of <pulp.server.api.repo_clone_task.RepoCloneTask object at 0x7f8d46507390>>, clone_name=pulp_x86_64, relative_path=sghai_org/test/custom/pulp/pulp_x86_64, synchronizer=<pulp.server.api.synchronizers.YumSynchronizer object at 0x7f8cfc171a90>, filters=['filter1', 'filter2'], id=sghai_org-pulp-pulp_x86_64, groupid=['product:1323424477092', 'env:8', 'org:4', 'content:1323432610119'])
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 404, in run
result = self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 136, in _clone
_sync(clone_id, progress_callback=progress_callback, synchronizer=synchronizer)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 272, in _sync
progress_callback, synchronizer, max_speed, threads)
File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 360, in fetch_content
added_packages = synchronizer.clone_packages_from_source(repo_id, skip_dict)
File "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py", line 306, in clone_packages_from_source
for pkg in pkglist:
NameError: global name 'pkglist' is not defined
Expected results:
Additional info: