Description of problem: Katello does not pass the consumer environment to candlepin during subscription, preventing the client from pulling repository information. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Subscribe a RHEL 6.2 system to an Org with a valid subscription to its Development branch 2. Run subscription-manager refresh and yum repolist in the client 3. Actual results: # yum repolist Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. https://qetello02.usersys.redhat.com/pulp/repos/ACME_Corporation/%24env/custom/Brew/Katello/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. repo id repo name status ACME_Corporation_Brew_Katello Katello 0 repolist: 0 Expected results: Additional info: candlepin=> select uuid, environment_id from cp_consumer where uuid = '1a65071c-d17f-44ff-88a3-b19ebe7afac6'; uuid | environment_id --------------------------------------+---------------- 1a65071c-d17f-44ff-88a3-b19ebe7afac6 | (1 row)
On the above Katello install, can you confirm if the content was properly promoted to the target environment that the system was registered to? This evening we found an issue (bug 789516) where users were unable to add products to changesets via the UI. Basically, clicking 'Add' for a product did nothing.
ls -l /var/lib/pulp/repos/ACME_Corporation/ total 8 drwxr-xr-x. 3 apache apache 4096 Feb 10 13:41 Development drwxr-xr-x. 3 apache apache 4096 Feb 10 11:27 Library
I have since filing this issue switched the client to another subscription that should bring in RHEL 6.2 content. However, even after workaround of cat $env to /etc/yum/vars/env, yum repolist gives me a 404. The error (below) shows that the 6Server branch is being pulled, but I have mirrored and promoted the 6/2 branch. # subscription-manager refresh All local data refreshed [root@qeclient01 ~]# yum repolist Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. NYDataCenter_Katello_Puddle | 2.3 kB 00:00 NYDataCenter_Katello_Puddle/primary_db | 93 kB 00:00 https://qetello02.usersys.redhat.com/pulp/repos/NYDataCenter/Development/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. repo id repo name status NYDataCenter_Katello_Puddle Puddle 258 rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 6,806 repolist: 7,064 # ls -l /var/lib/pulp/repos/NYDataCenter/Development/content/dist/rhel/server/6/6.2/x86_64/os/ total 644 drwxr-xr-x. 2 apache apache 4096 Feb 13 08:39 drpms drwxr-xr-x. 3 apache apache 4096 Feb 13 08:39 images drwxr-xr-x. 2 apache apache 638976 Feb 13 08:39 Packages drwxr-xr-x. 2 apache apache 4096 Feb 10 17:11 repodata lrwxrwxrwx. 1 apache apache 101 Feb 13 08:39 treeinfo -> ../../../../../../../../../../../distributions/ks-Red Hat Enterprise Linux-Server-6.2-x86_64/treeinfo
Discussed this bug briefly with Ivan and he confirmed that the work he is doing in remote branch to enhance Katello to support Candlepin environments will address this one; therefore, reassigning to him. Comment 4 above actually raises a separate issue and a new bug (bug 790465) has been created to document/track it.
Problem with replacing $env fixed in commits: f93c8b4 789456 - fix problem with unicode e93dcbc 789456 - candlepin environment orchestration a5374a2 789456 - pre-save and post-save queues in orchestration tagged in Katello 0.1.239-1 needs candlepin-0.5.19-1 or newer
Validated on: * candlepin-0.5.20-1.el6.noarch * candlepin-tomcat6-0.5.20-1.el6.noarch * katello-0.1.238-3.el6.noarch * katello-all-0.1.238-3.el6.noarch * katello-certs-tools-1.0.2-2.el6.noarch * katello-cli-0.1.54-2.el6.noarch * katello-cli-common-0.1.54-2.el6.noarch * katello-common-0.1.238-3.el6.noarch * katello-configure-0.1.64-5.el6.noarch * katello-glue-candlepin-0.1.238-3.el6.noarch * katello-glue-foreman-0.1.238-3.el6.noarch * katello-glue-pulp-0.1.238-3.el6.noarch * katello-httpd-ssl-key-pair-1.0-1.noarch * katello-qpid-broker-key-pair-1.0-1.noarch * katello-repos-0.1.5-1.el6.noarch * katello-selinux-0.1.3-1.el6.noarch * katello-trusted-ssl-cert-1.0-1.noarch * pulp-0.0.265-1.el6.noarch * pulp-common-0.0.265-1.el6.noarch * pulp-selinux-server-0.0.265-1.el6.noarch
getting rid of 6.0.0 version since that doesn't exist