Hide Forgot
Description of problem: yum operations on rhel5 clients break. [root@dhcp193-167 ~]# yum install rh-rhui-tools Loaded plugins: rhui-lb, security Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 178, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 345, in doCommands self._getTs(needTsRemove) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs self._getTsInfo(remove_only) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo pkgSack = self.pkgSack File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack self.doSetup() File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup self.ayum.plugins.run('postreposetup') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/rhui-lb.py", line 88, in postreposetup_hook path = urlparse.urlparse(repo.mirrorlist).path AttributeError: 'tuple' object has no attribute 'path' [root@dhcp193-167 ~]# ll /root/rh-rhui-rhel6rhui12-2.2-1.el6.noarch.rpm -rw-r--r-- 1 root root 8923 Jul 2 01:16 /root/rh-rhui-rhel6rhui12-2.2-1.el6.noarch.rpm [root@dhcp193-167 ~]# exit logout Connection to 10.65.201.180 closed. [kbidarka@localhost ~]$ ssh root.201.180 root.201.180's password: Last login: Sat Jul 2 01:40:57 2011 from dhcp193-175.pnq.redhat.com [root@dhcp193-167 ~]# yum repolist Loaded plugins: rhui-lb, security Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 178, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 349, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 781, in doCommand base.repos.populateSack() File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack self.doSetup() File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup self.ayum.plugins.run('postreposetup') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/rhui-lb.py", line 88, in postreposetup_hook path = urlparse.urlparse(repo.mirrorlist).path AttributeError: 'tuple' object has no attribute 'path' [root@dhcp193-167 ~]# cat /etc/yum.repos.d/rh-cloud.repo [rhui-rhel-server-6-releases] name=Red Hat Enterprise Linux Server 6 Releases (RPMs) mirrorlist=https://dhcp201-143.englab.pnq.redhat.com/pulp/mirror/content/dist/rhel/rhui/server-6/releases/$releasever/$basearch/os enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify=1 sslcacert=/etc/pki/entitlement/ca.crt sslclientcert=/etc/pki/entitlement/product/content.crt sslclientkey=/etc/pki/entitlement/key.pem [rhui-rhui-1.2] name=Red Hat Update Infrastructure 1.2 (RPMs) mirrorlist=https://dhcp201-143.englab.pnq.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/$releasever/$basearch/rhui/1.2/os enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release sslverify=1 sslcacert=/etc/pki/entitlement/ca.crt sslclientcert=/etc/pki/entitlement/product/content.crt sslclientkey=/etc/pki/entitlement/key.pem Version-Release number of selected component (if applicable): rhui - 2.0.33 pulp - 0.199 How reproducible: Create a client-config rpm which brings in rhel5 or rhel5-rhui1.2 repos and install it on the clients. Steps to Reproduce: 1. 2. 3. Actual results: yum operations on rhel5 hosts break Expected results: yum operations on rhel5 should work fine Additional info: May be we need to check the same for fedora clients
commit 270c6674eee079960205de296a8b743731054d7a Author: Jay Dobies <jason.dobies> Date: Fri Jul 1 14:13:18 2011 -0400 718282 - Fixed python 2.4 incompatibility rhui-2.0/tools/etc/rhui/client-yum-plugin/rhui-lb.py
Fixed in RHUI 2.0.34.
Oh, FYI, it's not necessarily a RHEL v. Fedora thing. It's a python version thing. So if you wanted to double check, test on python 2.4 (which is what RHEL 5 has), python 2.6 (which is what RHEL 6 has), and python 2.7 (in Fedora).
Throws error saying, could not retrieve mirrorlist. [root@dhcp193-167 ~]# yum install rh-rhui-tools Loaded plugins: rhui-lb, security Could not retrieve mirrorlist https://None/pulp/mirror/content/dist/rhel/rhui/server/5Server/x86_64/rhui/1.2/os error was [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')> Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-rhui-1.2. Please verify its path and try again
commit 2a2db6017fd3245cd9bf1c99761618eadcb91a99 tree 1fa93f25b3c15501523635ad90af5ff7395d6ec1 718282 - Fixed another python 2.4 incompatibility rhui-2.0/tools/etc/rhui/client-yum-plugin/rhui-lb.py
Fixed in 2.0.35.
yum operations on rhel5 hosts are now successful. [root@dhcp201-157 tmp]# yumdownloader rh-rhui-tools rh-rhui-tools-0.76-1.el5_5.noarch.rpm | 99 kB 00:00 [root@dhcp201-157 tmp]# ls rh-rhui-tools-0.76-1.el5_5.noarch.rpm [root@dhcp201-157 tmp]# yum install rh-rhui-tools Loaded plugins: security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package rh-rhui-tools.noarch 0:0.76-1.el5_5 set to be updated --> Processing Dependency: rpm-build for package: rh-rhui-tools --> Processing Dependency: PyYAML for package: rh-rhui-tools --> Running transaction check ---> Package PyYAML.x86_64 0:3.08-4.el5 set to be updated --> Processing Dependency: libyaml-0.so.1()(64bit) for package: PyYAML ---> Package rpm-build.x86_64 0:4.4.2.3-22.el5 set to be updated --> Processing Dependency: elfutils for package: rpm-build --> Running transaction check ---> Package elfutils.x86_64 0:0.137-3.el5 set to be updated --> Processing Dependency: elfutils-libs-x86_64 = 0.137-3.el5 for package: elfutils --> Processing Dependency: libdw.so.1(ELFUTILS_0.126)(64bit) for package: elfutils --> Processing Dependency: libasm.so.1(ELFUTILS_1.0)(64bit) for package: elfutils --> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: elfutils --> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: elfutils --> Processing Dependency: libdw.so.1(ELFUTILS_0.127)(64bit) for package: elfutils --> Processing Dependency: libdw.so.1()(64bit) for package: elfutils --> Processing Dependency: libasm.so.1()(64bit) for package: elfutils ---> Package libyaml.x86_64 0:0.1.2-3.el5 set to be updated --> Running transaction check ---> Package elfutils-libs.x86_64 0:0.137-3.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: rh-rhui-tools noarch 0.76-1.el5_5 rhui-rhui-1.2 99 k Installing for dependencies: PyYAML x86_64 3.08-4.el5 rhui-rhui-1.2 176 k elfutils x86_64 0.137-3.el5 rhel-pnq 216 k elfutils-libs x86_64 0.137-3.el5 rhel-pnq 183 k libyaml x86_64 0.1.2-3.el5 rhui-rhui-1.2 53 k rpm-build x86_64 4.4.2.3-22.el5 rhel-pnq 302 k Transaction Summary ================================================================================ Install 6 Package(s) Upgrade 0 Package(s) Total download size: 1.0 M Is this ok [y/N]: y Downloading Packages: (1/6): libyaml-0.1.2-3.el5.x86_64.rpm | 53 kB 00:00 (2/6): rh-rhui-tools-0.76-1.el5_5.noarch.rpm | 99 kB 00:00 (3/6): PyYAML-3.08-4.el5.x86_64.rpm | 176 kB 00:00 (4/6): elfutils-libs-0.137-3.el5.x86_64.rpm | 183 kB 00:00 (5/6): elfutils-0.137-3.el5.x86_64.rpm | 216 kB 00:00 (6/6): rpm-build-4.4.2.3-22.el5.x86_64.rpm | 302 kB 00:00 -------------------------------------------------------------------------------- Total 956 kB/s | 1.0 MB 00:01 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186 rhui-rhui-1.2/gpgkey | 1.1 kB 00:00 Importing GPG key 0x37017186 "Red Hat, Inc. (release key) <security>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : elfutils-libs 1/6 Installing : elfutils 2/6 Installing : rpm-build 3/6 Installing : libyaml 4/6 Installing : PyYAML 5/6 Installing : rh-rhui-tools 6/6 Installed: rh-rhui-tools.noarch 0:0.76-1.el5_5 Dependency Installed: PyYAML.x86_64 0:3.08-4.el5 elfutils.x86_64 0:0.137-3.el5 elfutils-libs.x86_64 0:0.137-3.el5 libyaml.x86_64 0:0.1.2-3.el5 rpm-build.x86_64 0:4.4.2.3-22.el5 Complete!
moving to release pending
closing out, product released