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:
Can not download a system template.
Version-Release number of selected component (if applicable):
# /pub/scripts/post_install_configuration_scripts/cf-se-versions
Red Hat Enterprise Linux Server release 6.2 (Santiago)
Linux cf-se2.cloud.lab.eng.bos.redhat.com 2.6.32-220.4.1.el6.x86_64 #1 SMP Thu Jan 19 14:50:54 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
PyYAML-3.09-14.el6_1.x86_64
facter-1.5.9-1.el6.noarch
js-1.70-12.el6_0.x86_64
mongodb-1.8.2-2.el6.x86_64
mongodb-server-1.8.2-2.el6.x86_64
puppet-2.6.11-1.el6_1.noarch
pymongo-1.9-8.el6_1.x86_64
tomcat6-6.0.24-35.el6_1.noarch
ruby-1.8.7.352-5.el6_2.x86_64
grinder-0.0.136-1.el6.noarch
postgresql-server-8.4.9-1.el6_1.1.x86_64
postgresql-8.4.9-1.el6_1.1.x86_64
candlepin-0.5.16-1.el6.noarch
pulp-0.0.263-1.el6.noarch
katello-0.1.211-2.el6.noarch
katello-all-0.1.211-2.el6.noarch
katello-cli-0.1.44-2.el6.noarch
katello-configure-0.1.55-2.el6.noarch
How reproducible:
always
Steps to Reproduce:
1. create content, custom and Red Hat providers
2. sync content
3. generate system template
4. promote
5. download system template from new "dev" environment
Actual results:
get:
Pulp::Distribution: 404 Resource Not Found "No distribution ks-Red%20Hat%20Enterprise%20Linux-Server-6.2-x86_64" (GET /pulp/api/distributions/ks-Red%2520Hat%2520Enterprise%2520Linux-Server-6.2-x86_64/): "No distribution ks-Red%20Hat%20Enterprise%20Linux-Server-6.2-x86_64"
Expected results:
to be able to download the system template.
Additional info:
# curl -H "Content-Type: application/json" -H "Accept: application/json" -# -k -u admin:admin https://cf-se2/pulp/api/distributions/
[{"files": ["/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/boot.iso", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/install.img", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/efidisk.img", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/treeinfo", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/initrd.img", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/efiboot.img", "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/vmlinuz"], "description": "ks-Red Hat Enterprise Linux-Server-6.2-x86_64", "family": "Red Hat Enterprise Linux", "url": ["http://cf-se2.cloud.lab.eng.bos.redhat.com/pulp/ks/refarch/Library/content/dist/rhel/server/6/6Server/x86_64/os/", "http://cf-se2.cloud.lab.eng.bos.redhat.com/pulp/ks/refarch/dev/content/dist/rhel/server/6/6Server/x86_64/os/", "http://cf-se2.cloud.lab.eng.bos.redhat.com/pulp/ks/refarch/test/content/dist/rhel/server/6/6Server/x86_64/os/"], "relativepath": "/var/lib/pulp/distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64", "variant": "Server", "version": "6.2", "timestamp": "2011-11-17T11:08:34", "_ns": "distribution", "_id": "ks-Red Hat Enterprise Linux-Server-6.2-x86_64", "arch": "x86_64", "id": "ks-Red Hat Enterprise Linux-Server-6.2-x86_64", "repoids": ["refarch-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server", "refarch-dev-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server", "refarch-test-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server"]}]
commit - 791dbabc4681ae498ffa719ef1fa16043d24b3e1
A recent commit (930851c800d7b9d63ac960f655e38f1ff912c419) was introduced to uri encode all resources to pulp/cp. Unfortunately, we were already encoding the distro name for pulp requests. As a result, this double encoding caused the behavior observed.