Description of problem: During the development cycle for subscription-manager-1.10 targetted for release on rhel7, content overrides was implemented to support RFE Bug 803746. Ideally, this same functionality should be backported a RHEL5 subscription-manager client. Minimally, a RHEL5 client should honor content-overrides that are set on the consumer from an upstream entitlement server such as SAM or Satellite 6.
Fixed in subscription-manager-1.11.3-2.el5
Created attachment 897695 [details] screenshot of subscription-manager-gui interface to repo-overrides Verifying Version... [root@jsefler-5 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.10-1 subscription-manager: 1.11.3-3.el5 python-rhsm: 1.11.3-3.el5 The ability to override repo parameters (all except baseurl) is now available through the CLI. Here is the usage syntax via the CLI: [root@jsefler-5 ~]# subscription-manager repo-override --help Usage: subscription-manager repo-override [OPTIONS] Manage custom content repository settings options: -h, --help show this help message and exit --proxy=PROXY_URL proxy URL in the form of proxy_hostname:proxy_port --proxyuser=PROXY_USER user for HTTP proxy with basic authentication --proxypassword=PROXY_PASSWORD password for HTTP proxy with basic authentication --repo=REPOID repository to modify (can be specified more than once) --remove=NAME name of the override to remove (can be specified more than once); used with --repo option. --add=NAME:VALUE name and value of the option to override separated by a colon (can be specified more than once); used with --repo option. --remove-all remove all overrides; can be specific to a repository by providing --repo --list list all overrides; can be specific to a repository by providing --repo Here is an example creation of a repo override: [root@jsefler-5 ~]# subscription-manager register --serverurl=subscription.rhn.redhat.com:443/subscription --autosubscribe Username: qa Password: The system has been registered with ID: 3a04ef4c-4ca3-4e1c-b021-d2a52a3b6b45 Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@jsefler-5 ~]# subscription-manager repo-override --list This system does not have any content overrides applied to it. [root@jsefler-5 ~]# tail -12 /etc/yum.repos.d/redhat.repo [rhel-5-server-rhev-agent-beta-rpms] name = Red Hat Enterprise Virtualization Agents for RHEL 5 Server Beta (RPMs) baseurl = https://cdn.redhat.com/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3/os enabled = 0 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/8117353697731660204-key.pem sslclientcert = /etc/pki/entitlement/8117353697731660204.pem metadata_expire = 86400 ui_repoid_vars = releasever basearch [root@jsefler-5 ~]# subscription-manager repo-override --repo=rhel-5-server-rhev-agent-beta-rpms --add=metadata_expire:9999 [root@jsefler-5 ~]# tail -12 /etc/yum.repos.d/redhat.repo [rhel-5-server-rhev-agent-beta-rpms] name = Red Hat Enterprise Virtualization Agents for RHEL 5 Server Beta (RPMs) baseurl = https://cdn.redhat.com/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3/os enabled = 0 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/8117353697731660204-key.pem sslclientcert = /etc/pki/entitlement/8117353697731660204.pem metadata_expire = 9999 <============== VERIFIED: the override was applied ui_repoid_vars = releasever basearch [root@jsefler-5 ~]# subscription-manager repo-override --list Repository: rhel-5-server-rhev-agent-beta-rpms metadata_expire: 9999 [root@jsefler-5 ~]# subscription-manager repo-override --repo=rhel-5-server-rhev-agent-beta-rpms --remove=metadata_expire [root@jsefler-5 ~]# subscription-manager repo-override --list This system does not have any content overrides applied to it. [root@jsefler-5 ~]# tail -12 /etc/yum.repos.d/redhat.repo [rhel-5-server-rhev-agent-beta-rpms] name = Red Hat Enterprise Virtualization Agents for RHEL 5 Server Beta (RPMs) baseurl = https://cdn.redhat.com/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3/os enabled = 0 gpgcheck = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta sslverify = 1 sslcacert = /etc/rhsm/ca/redhat-uep.pem sslclientkey = /etc/pki/entitlement/8117353697731660204-key.pem sslclientcert = /etc/pki/entitlement/8117353697731660204.pem metadata_expire = 86400 <============== VERIFIED: the original value was restored ui_repoid_vars = releasever basearch [root@jsefler-5 ~]# VERIFIED: Above is a simple example of adding, listing, and removing a repo-override of the metadata_expire parameter to repo rhel-5-server-rhev-agent-beta-rpms. The ability to override repo parameters (enabled and gpgcheck ONLY) is now available through the GUI: See attached screenshot.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1225.html