Hide Forgot
Description of problem: I'm using katello server and registered a rhel6 node using rhsm. After subscribing that node to a specific product, "yum install" operation is throwing a pycurl error as stated below: [root@dhcp201-195 entitlement]# yum install pulp Loaded plugins: product-id, subscription-manager Updating certificate-based repositories. https://dhcp201-177.englab.pnq.redhat.com/pulp/repos/sghai_org/%24env/pulp/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: 1318234324354-x86_64-dev-sghai_org. Please verify its path and try again [root@dhcp201-195 entitlement]# Looks like we manually need to set the $env variable under /etc/yum/vars/env. [root@dhcp201-195 entitlement]# Version-Release number of selected component (if applicable): [root@dhcp201-195 vars]# rpm -qa | grep subscription subscription-manager-0.96.9-1.el6.x86_64 [root@dhcp201-195 vars]# How reproducible: always Steps to Reproduce: 1. Registered a rhel6 node with Katello server using rhsm 2. subscribed it to a available product pool 3. perform yum install Actual results: pycurl error while running yum install operations. As we need to set the $env for the repoURL under /etc/yum/vars/env Expected results: $env should be set automatically during node registration. Additional info: Specified product is successfully subscribed: [root@dhcp201-195 entitlement]# subscription-manager repos --list +----------------------------------------------------------+ Entitled Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ RepoName: x86_64 RepoId: 1318234324354-x86_64-dev-sghai_org RepoUrl: https://dhcp201-177.englab.pnq.redhat.com/pulp/repos/sghai_org/$env/pulp/x86_64 Enabled: 1 Please note that $env in the RepoUrl. Please note I can access the repo using wget command. [root@dhcp201-195 entitlement]# wget --certificate=/etc/pki/entitlement/7863137366241925005.pem --private-key=/etc/pki/entitlement/7863137366241925005-key.pem --ca-certificate=/etc/rhsm/ca/candlepin-ca.crt https://dhcp201-177.englab.pnq.redhat.com/pulp/repos/sghai_org/dev/pulp/x86_64/repodata/repomd.xml --2011-10-10 15:14:15-- https://dhcp201-177.englab.pnq.redhat.com/pulp/repos/sghai_org/dev/pulp/x86_64/repodata/repomd.xml Resolving dhcp201-177.englab.pnq.redhat.com... 10.65.201.177 Connecting to dhcp201-177.englab.pnq.redhat.com|10.65.201.177|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2992 (2.9K) [text/xml] Saving to: “repomd.xml” 100%[=========================================>] 2,992 --.-K/s in 0s 2011-10-10 15:14:15 (53.0 MB/s) - “repomd.xml” saved [2992/2992]
This is not in 6.2. It is in master. Moving this out to 5.8.
Closing this one out. SAM/CFSE/Katello/Candlepin no longer pass a $env variable to the client at all.