RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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.
Bug 678043 - YumBase.pkgSack.searchNevra fails in rhel6.1
Summary: YumBase.pkgSack.searchNevra fails in rhel6.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-16 15:45 UTC by Ortal
Modified: 2014-01-21 06:20 UTC (History)
9 users (show)

Fixed In Version: yum-3.2.29-6.el6
Doc Type: Bug Fix
Doc Text:
When yum called the pkgSack.searchNevra() function to get information about a package, the call failed and the "Unable to fetch [package] package" error was given, while "yum install [package]" command worked correctly. With this update, this bug has been fixed and the error message is no longer given if the package in question is available.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:34:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vds_bootstrap.log (2.03 KB, text/x-log)
2011-02-16 15:45 UTC, Ortal
no flags Details
vds_installer.log (1.48 KB, text/x-log)
2011-02-16 15:47 UTC, Ortal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0602 0 normal SHIPPED_LIVE yum bug fix and enhancement update 2011-05-19 09:37:29 UTC

Description Ortal 2011-02-16 15:45:41 UTC
Created attachment 479134 [details]
vds_bootstrap.log

Description of problem:

VDS installation failed on "Unable to fetch vdsm package" while yum command works successfully

Version-Release number of selected component (if applicable):
1. [root@iron-vdsa tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 Beta (Santiago)

2. [root@iron-vdsa tmp]# rpm -qa | grep vdsm
vdsm-4.9-49.el6.x86_64

3. yum-rhn-plugin-0.9.1-14.el6.noarch
yum-3.2.29-5.el6.noarch
yum-metadata-parser-1.1.2-14.1.el6.x86_64
yum-utils-1.1.30-3.el6.noarch


How reproducible:
Always

1. Attempt to create new host from the RHEVM Admin portal using RHEL6.1 host in DC 2.3

Actual results:

installation host failed from RHEVM Admin portal, with an error of: "Unable to fetch vdsm package" though yum install vdsm command install successfully the relevant packages.

[root@iron-vdsa tmp]# yum install vdsm                                                                                                                                                                 
Loaded plugins: product-id, rhnplugin,
subscription-manager                                                                                                                                            
Updating Red Hat
repositories.                                                                                                                                                                         
INFO:rhsm-app.repolib:repos updated:
0                                                                                                                                                                 
Setting up Install
Process                                                                                                                                                                             
Resolving
Dependencies                                                                                                                                                                                 
--> Running transaction
check                                                                                                                                                                          
---> Package vdsm.x86_64 0:4.9-49.el6 will be
installed                                                                                                                                                
--> Processing Dependency: device-mapper-multipath >= 0.4.9-31.el6 for
package:
vdsm-4.9-49.el6.x86_64                                                                                                 
--> Processing Dependency: libvirt >= 0.8.7-5 for package:
vdsm-4.9-49.el6.x86_64                                                                                                                      
--> Processing Dependency: policycoreutils-python for package:
vdsm-4.9-49.el6.x86_64                                                                                                                  
--> Processing Dependency: qemu-kvm for package:
vdsm-4.9-49.el6.x86_64                                                                                                                                
--> Processing Dependency: tunctl for package:
vdsm-4.9-49.el6.x86_64                                                                                                                                  
--> Processing Dependency: libvirt-python for package:
vdsm-4.9-49.el6.x86_64                                                                                                                          
--> Processing Dependency: fence-agents for package:
vdsm-4.9-49.el6.x86_64                                                                                                                            
--> Processing Dependency: qemu-img for package:
vdsm-4.9-49.el6.x86_64                                                                                                                                
--> Running transaction
check                                                                                                                                                                          
---> Package device-mapper-multipath.x86_64 0:0.4.9-31.el6_0.1 will be
installed                                                                                                                       
--> Processing Dependency: device-mapper-multipath-libs =
0.4.9-31.el6_0.1 for package:
device-mapper-multipath-0.4.9-31.el6_0.1.x86_64                                                                
--> Processing Dependency: libmultipath.so()(64bit) for package:
device-mapper-multipath-0.4.9-31.el6_0.1.x86_64                                                                                       
---> Package fence-agents.x86_64 0:3.0.12-8.el6_0.2 will be
installed                                                                                                                                  
--> Processing Dependency: /usr/bin/virsh for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                            
--> Processing Dependency: net-snmp-utils for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                            
--> Processing Dependency: sg3_utils for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                                 
--> Processing Dependency: perl(Net::Telnet) for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                         
--> Processing Dependency: /usr/bin/ipmitool for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                         
--> Processing Dependency: perl-Net-Telnet for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                           
--> Processing Dependency: pexpect for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                                   
--> Processing Dependency: telnet for package:
fence-agents-3.0.12-8.el6_0.2.x86_64                                                                                                                    
---> Package libvirt.x86_64 0:0.8.7-6.el6 will be
installed                                                                                                                                            
--> Processing Dependency: dnsmasq >= 2.41 for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                                     
--> Processing Dependency: libnetcf.so.1(NETCF_1.2.0)(64bit) for
package:
libvirt-0.8.7-6.el6.x86_64                                                                                                   
--> Processing Dependency: ebtables for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                                            
--> Processing Dependency: lzop for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                                                
--> Processing Dependency: libnetcf.so.1(NETCF_1.0.0)(64bit) for
package:
libvirt-0.8.7-6.el6.x86_64                                                                                                   
--> Processing Dependency: libnetcf.so.1(NETCF_1.3.0)(64bit) for
package:
libvirt-0.8.7-6.el6.x86_64                                                                                                   
--> Processing Dependency: libnuma.so.1(libnuma_1.2)(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                    
--> Processing Dependency: libnuma.so.1(libnuma_1.1)(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                    
--> Processing Dependency: libnetcf.so.1()(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                              
--> Processing Dependency: libaugeas.so.0()(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                             
--> Processing Dependency: libpciaccess.so.0()(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                          
--> Processing Dependency: libyajl.so.1()(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                               
--> Processing Dependency: libnuma.so.1()(64bit) for package:
libvirt-0.8.7-6.el6.x86_64                                                                                                               
---> Package libvirt-python.x86_64 0:0.8.7-6.el6 will be
installed                                                                                                                                     
---> Package policycoreutils-python.x86_64 0:2.0.83-19.1.el6 will be
installed                                                                                                                         
--> Processing Dependency: libsemanage-python >= 2.0.43-4 for package:
policycoreutils-python-2.0.83-19.1.el6.x86_64                                                                                   
--> Processing Dependency: setools-libs-python for package:
policycoreutils-python-2.0.83-19.1.el6.x86_64                                                                                              
---> Package qemu-img.x86_64 2:0.12.1.2-2.144.el6 will be
installed                                                                                                                                    
---> Package qemu-kvm.x86_64 2:0.12.1.2-2.144.el6 will be
installed                                                                                                                                    
--> Processing Dependency: libpulse.so.0(PULSE_0)(64bit) for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                             
--> Processing Dependency: seabios for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                                                   
--> Processing Dependency: libpulse-simple.so.0(PULSE_0)(64bit) for
package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                      
--> Processing Dependency: /usr/share/gpxe/e1000-0x100e.rom for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                          
--> Processing Dependency: /usr/share/gpxe/rtl8029.rom for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                               
--> Processing Dependency: /usr/share/gpxe/virtio-net.rom for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                            
--> Processing Dependency: /usr/share/gpxe/pcnet32.rom for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                               
--> Processing Dependency: /usr/share/gpxe/rtl8139.rom for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                               
--> Processing Dependency: libpulse.so.0()(64bit) for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                                    
--> Processing Dependency: libspice-server.so.1()(64bit) for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                             
--> Processing Dependency: libpulse-simple.so.0()(64bit) for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                             
--> Processing Dependency: libcelt051.so.0()(64bit) for package:
2:qemu-kvm-0.12.1.2-2.144.el6.x86_64                                                                                                  
---> Package tunctl.x86_64 0:1.5-3.el6 will be
installed                                                                                                                                               
--> Running transaction
check                                                                                                                                                                          
---> Package augeas-libs.x86_64 0:0.7.2-3.el6 will be
installed                                                                                                                                        
---> Package celt051.x86_64 0:0.5.1.3-0.el6 will be
installed                                                                                                                                          
---> Package device-mapper-multipath-libs.x86_64 0:0.4.9-31.el6_0.1 will
be
installed                                                                                                                  
---> Package dnsmasq.x86_64 0:2.48-4.el6 will be
installed                                                                                                                                             
---> Package ebtables.x86_64 0:2.0.9-5.el6 will be
installed                                                                                                                                           
---> Package gpxe-roms-qemu.noarch 0:0.9.7-6.3.el6 will be
installed                                                                                                                                   
---> Package ipmitool.x86_64 0:1.8.11-6.el6 will be
installed                                                                                                                                          
---> Package libpciaccess.x86_64 0:0.10.9-2.el6 will be
installed                                                                                                                                      
---> Package libsemanage-python.x86_64 0:2.0.43-4.el6 will be
installed                                                                                                                                
---> Package libvirt-client.x86_64 0:0.8.7-6.el6 will be
installed                                                                                                                                     
--> Processing Dependency: nc for package:
libvirt-client-0.8.7-6.el6.x86_64                                                                                                                           
--> Processing Dependency: cyrus-sasl-md5 for package:
libvirt-client-0.8.7-6.el6.x86_64                                                                                                               
---> Package lzop.x86_64 0:1.02-0.9.rc1.el6 will be
installed                                                                                                                                          
--> Processing Dependency: liblzo2.so.2()(64bit) for package:
lzop-1.02-0.9.rc1.el6.x86_64                                                                                                             
---> Package net-snmp-utils.x86_64 1:5.5-27.el6_0.1 will be
installed                                                                                                                                  
--> Processing Dependency: net-snmp-libs = 1:5.5-27.el6_0.1 for package:
1:net-snmp-utils-5.5-27.el6_0.1.x86_64                                                                                        
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package:
1:net-snmp-utils-5.5-27.el6_0.1.x86_64                                                                                               
---> Package netcf-libs.x86_64 0:0.1.6-4.el6 will be
installed                                                                                                                                         
---> Package numactl.x86_64 0:2.0.3-9.el6 will be
installed                                                                                                                                            
---> Package perl-Net-Telnet.noarch 0:3.03-11.el6 will be
installed                                                                                                                                    
---> Package pexpect.noarch 0:2.3-6.el6 will be
installed                                                                                                                                              
---> Package pulseaudio-libs.x86_64 0:0.9.21-13.el6 will be
installed                                                                                                                                  
--> Processing Dependency: libsndfile.so.1(libsndfile.so.1.0)(64bit) for
package:
pulseaudio-libs-0.9.21-13.el6.x86_64                                                                                 
--> Processing Dependency: libasyncns.so.0()(64bit) for package:
pulseaudio-libs-0.9.21-13.el6.x86_64                                                                                                  
--> Processing Dependency: libsndfile.so.1()(64bit) for package:
pulseaudio-libs-0.9.21-13.el6.x86_64                                                                                                  
---> Package seabios.x86_64 0:0.5.1-3.el6 will be
installed                                                                                                                                            
---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be
installed                                                                                                                                
--> Processing Dependency: setools-libs = 3.3.7-4.el6 for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                              
--> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                        
--> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                        
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                        
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                        
--> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                           
--> Processing Dependency: libseaudit.so.4()(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                                
--> Processing Dependency: libsefs.so.4()(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                                   
--> Processing Dependency: libapol.so.4()(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                                   
--> Processing Dependency: libpoldiff.so.1()(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                                
--> Processing Dependency: libqpol.so.1()(64bit) for package:
setools-libs-python-3.3.7-4.el6.x86_64                                                                                                   
---> Package sg3_utils.x86_64 0:1.28-3.el6 will be
installed                                                                                                                                           
--> Processing Dependency: sg3_utils-libs = 1.28-3.el6 for package:
sg3_utils-1.28-3.el6.x86_64                                                                                                        
--> Processing Dependency: libsgutils2.so.2()(64bit) for package:
sg3_utils-1.28-3.el6.x86_64                                                                                                          
---> Package spice-server.x86_64 0:0.7.2-2.el6 will be
installed                                                                                                                                       
---> Package telnet.x86_64 1:0.17-46.el6 will be
installed                                                                                                                                             
---> Package yajl.x86_64 0:1.0.7-3.el6 will be
installed                                                                                                                                               
--> Running transaction
check                                                                                                                                                                          
---> Package cyrus-sasl-md5.x86_64 0:2.1.23-8.el6 will be
installed                                                                                                                                    
---> Package libasyncns.x86_64 0:0.8-1.1.el6 will be
installed                                                                                                                                         
---> Package libsndfile.x86_64 0:1.0.20-3.el6 will be
installed                                                                                                                                        
---> Package lzo.x86_64 0:2.03-3.1.el6 will be
installed                                                                                                                                               
---> Package nc.x86_64 0:1.84-22.el6 will be
installed                                                                                                                                                 
---> Package net-snmp-libs.x86_64 1:5.5-27.el6_0.1 will be
installed                                                                                                                                   
--> Processing Dependency: libsensors.so.4()(64bit) for package:
1:net-snmp-libs-5.5-27.el6_0.1.x86_64                                                                                                 
---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be
installed                                                                                                                                       
---> Package sg3_utils-libs.x86_64 0:1.28-3.el6 will be
installed                                                                                                                                      
--> Running transaction
check                                                                                                                                                                          
---> Package lm_sensors-libs.x86_64 0:3.1.1-10.el6 will be
installed                                                                                                                                   
--> Finished Dependency
Resolution                                                                                                                                                                     

Dependencies Resolved

=====================================================================================================================================================================================================================
 Package                                                        Arch
Version                                                  Repository
Size 
=====================================================================================================================================================================================================================
Installing:                                                                                                                                                                                                          
 vdsm                                                           x86_64
4.9-49.el6                                               candidate1
598 k 
Installing for
dependencies:                                                                                                                                                                                         
 augeas-libs                                                    x86_64
0.7.2-3.el6                                              candidate
288 k 
 celt051                                                        x86_64
0.5.1.3-0.el6                                            candidate
49 k 
 cyrus-sasl-md5                                                 x86_64
2.1.23-8.el6                                             candidate
45 k 
 device-mapper-multipath                                        x86_64
0.4.9-31.el6_0.1                                         candidate
78 k 
 device-mapper-multipath-libs                                   x86_64
0.4.9-31.el6_0.1                                         candidate
129 k 
 dnsmasq                                                        x86_64
2.48-4.el6                                               candidate
147 k 
 ebtables                                                       x86_64
2.0.9-5.el6                                              candidate
93 k 
 fence-agents                                                   x86_64
3.0.12-8.el6_0.2                                         candidate
116 k 
 gpxe-roms-qemu                                                 noarch
0.9.7-6.3.el6                                            candidate
217 k 
 ipmitool                                                       x86_64
1.8.11-6.el6                                             candidate
306 k 
 libasyncns                                                     x86_64
0.8-1.1.el6                                              candidate
23 k 
 libpciaccess                                                   x86_64
0.10.9-2.el6                                             candidate
35 k 
 libsemanage-python                                             x86_64
2.0.43-4.el6                                             candidate
80 k
 libsndfile                                                     x86_64
1.0.20-3.el6                                             candidate
222 k
 libvirt                                                        x86_64
0.8.7-6.el6                                              candidate1
1.0 M
 libvirt-client                                                 x86_64
0.8.7-6.el6                                              candidate1
2.2 M
 libvirt-python                                                 x86_64
0.8.7-6.el6                                              candidate1
212 k
 lm_sensors-libs                                                x86_64
3.1.1-10.el6                                             candidate
36 k
 lzo                                                            x86_64
2.03-3.1.el6                                             candidate
54 k
 lzop                                                           x86_64
1.02-0.9.rc1.el6                                         candidate
49 k
 nc                                                             x86_64
1.84-22.el6                                              candidate
56 k
 net-snmp-libs                                                  x86_64
1:5.5-27.el6_0.1                                         candidate
1.5 M
 net-snmp-utils                                                 x86_64
1:5.5-27.el6_0.1                                         candidate
165 k
 netcf-libs                                                     x86_64
0.1.6-4.el6                                              candidate
47 k
 numactl                                                        x86_64
2.0.3-9.el6                                              candidate
54 k
 perl-Net-Telnet                                                noarch
3.03-11.el6                                              candidate
54 k
 pexpect                                                        noarch
2.3-6.el6                                                candidate
146 k
 policycoreutils-python                                         x86_64
2.0.83-19.1.el6                                          candidate
332 k
 pulseaudio-libs                                                x86_64
0.9.21-13.el6                                            candidate
461 k
 qemu-img                                                       x86_64
2:0.12.1.2-2.144.el6                                     candidate1
250 k
 qemu-kvm                                                       x86_64
2:0.12.1.2-2.144.el6                                     candidate1
1.0 M
 seabios                                                        x86_64
0.5.1-3.el6                                              candidate
63 k
 setools-libs                                                   x86_64
3.3.7-4.el6                                              candidate
399 k
 setools-libs-python                                            x86_64
3.3.7-4.el6                                              candidate
220 k
 sg3_utils                                                      x86_64
1.28-3.el6                                               candidate
470 k
 sg3_utils-libs                                                 x86_64
1.28-3.el6                                               candidate
50 k
 spice-server                                                   x86_64
0.7.2-2.el6                                              candidate
243 k
 telnet                                                         x86_64
1:0.17-46.el6                                            candidate
57 k
 tunctl                                                         x86_64
1.5-3.el6                                                candidate
8.2 k
 yajl                                                           x86_64
1.0.7-3.el6                                              candidate
26 k

Transaction Summary
=====================================================================================================================================================================================================================
Install      41 Package(s)

Total download size: 12 M
Installed size: 40 M
Is this ok [y/N]: y
Downloading Packages:
(1/41): augeas-libs-0.7.2-3.el6.x86_64.rpm
| 288 kB     00:02
(2/41): celt051-0.5.1.3-0.el6.x86_64.rpm
|  49 kB     00:01
(3/41): cyrus-sasl-md5-2.1.23-8.el6.x86_64.rpm
|  45 kB     00:00
(4/41): device-mapper-multipath-0.4.9-31.el6_0.1.x86_64.rpm
|  78 kB     00:00
(5/41): device-mapper-multipath-libs-0.4.9-31.el6_0.1.x86_64.rpm      

__________________
____________________

VDSM - bootstarp:

Wed, 16 Feb 2011 17:08:36 DEBUG    ['/usr/bin/lsb_release', '-rs']
Wed, 16 Feb 2011 17:08:36 DEBUG    6.1

Wed, 16 Feb 2011 17:08:36 DEBUG
Wed, 16 Feb 2011 17:08:36 DEBUG    **** Start VDS Validation ****
Wed, 16 Feb 2011 17:08:36 DEBUG    Entered VdsValidation(subject =
'iron-vdsa.qa.lab.tlv.redhat.com', random_num =
'b69a7502-d232-4acd-a345-88a73359bf0a', rev_num = 'None')
Wed, 16 Feb 2011 17:08:36 DEBUG    Setting up Package Sacks
Wed, 16 Feb 2011 17:08:36 ERROR    checkRegistration: Error searching
for VDSM package!
Wed, 16 Feb 2011 17:08:36 ERROR    Traceback (most recent call last):
  File "/tmp/vds_bootstrap_b69a7502-d232-4acd-a345-88a73359bf0a.py",
line 156, in checkRegistration
    rc = deployUtil.yumSearch(VDSM_NAME)
  File "/tmp/deployUtil.py", line 1069, in yumSearch
    pkgs = yumFind(pkgName)
  File "/tmp/deployUtil.py", line 1059, in yumFind
    lReturn = my.pkgSack.searchNevra(name=pkgName)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 859, in
<lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 644, in
_getSacks
    self.repos.getPackageSack().setCompatArchs(archdict)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 855, in
<lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 578, in
_getRepos
    prerepoconf = self.prerepoconf
AttributeError: 'YumBase' object has no attribute 'prerepoconf'

Wed, 16 Feb 2011 17:08:36 ERROR    Unable to fetch vdsm package. Please
check if host is registered to RHN, Satellite or other yum repository
Wed, 16 Feb 2011 17:08:36 DEBUG    <BSTRAP component='RHN_REGISTRATION'
status='FAIL' message='Unable to fetch vdsm package. Please check if
host is registered to RHN, Satellite or other yum repository'/>
Wed, 16 Feb 2011 17:08:36 ERROR    checkRegistration test failed
Wed, 16 Feb 2011 17:08:36 DEBUG    <BSTRAP component='RHEV_INSTALL'
status='FAIL'/>
Wed, 16 Feb 2011 17:08:36 DEBUG    **** End VDS Validation ****
vds_bootstrap.428885.log (END) (33/41):
setools-libs-3.3.7-4.el6.x86_64.rpm                     

__________________________
After using yum install vdsm command:
[root@iron-vdsa tmp]# yum install vdsm
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
INFO:rhsm-app.repolib:repos updated: 0
Setting up Install Process
Package vdsm-4.9-49.el6.x86_64 already installed and latest version
Nothing to do
[root@iron-vdsa tmp]#



Expected results:

Should work through the RHEVM Admin portal also.

Comment 1 Ortal 2011-02-16 15:47:00 UTC
Created attachment 479135 [details]
vds_installer.log

Comment 2 Ortal 2011-02-16 15:56:28 UTC
More Info:

[root@iron-vdsa tmp]# rpm -qa rpm*
rpm-python-4.8.0-14.el6.x86_64
rpm-4.8.0-14.el6.x86_64
rpm-libs-4.8.0-14.el6.x86_64
[root@iron-vdsa tmp]#
[root@iron-vdsa tmp]#
[root@iron-vdsa tmp]# rpm -qa subscription-manager
subscription-manager-0.95.1-1.el6.x86_64
[root@iron-vdsa tmp]#

Comment 5 Dan Kenigsberg 2011-02-16 23:01:17 UTC
Any idea why do we get

Loaded plugins: product-id, rhnplugin
Repository brew is listed more than once in the configuration
Repository rhel-debuginfo is listed more than once in the configuration
Repository rhel is listed more than once in the configuration
Repository candidate is listed more than once in the configuration
Repository candidate1 is listed more than once in the configuration
Traceback (most recent call last):
  File "y.py", line 4, in <module>
    print my.pkgSack.searchNevra(name='vdsm')
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 859, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 644, in _getSacks
    self.repos.getPackageSack().setCompatArchs(archdict)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 855, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 578, in _getRepos
    prerepoconf = self.prerepoconf
AttributeError: 'YumBase' object has no attribute 'prerepoconf'


out of:

import yum

my = yum.YumBase()
print my.pkgSack.searchNevra(name='vdsm')

Comment 6 Dan Kenigsberg 2011-02-17 12:32:09 UTC
python -c "import yum;yum.YumBase().pkgSack.searchNevra(name='kernel')"

rpm -qf /etc/redhat-release 
redhat-release-server-6Server-6.1.0.1.el6.x86_64

Comment 7 James Antill 2011-02-18 17:30:59 UTC
I have a fix I've posted upstream:


commit 247f0d28e392871f82b14edd95e3f2482032a04f
Author: James Antill <james>
Date:   Fri Feb 18 12:28:58 2011 -0500

    Add workaround for rhnplugin repossetup, BZ 678043.

diff --git a/yum/__init__.py b/yum/__init__.py
index a3a1b02..4d185ff 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -574,6 +574,11 @@ class YumBase(depsolve.Depsolve):
 
             self.getReposFromConfig()
 
+        #  For rhnplugin, and in theory other stuff, calling
+        # .getReposFromConfig() recurses back into this function but only once.
+        # This means that we have two points on the stack leaving the above cal
+        # but only one of them can do the repos setup. BZ 678043.
+        if hasattr(self, 'prerepoconf'):
             # Recursion
             prerepoconf = self.prerepoconf
             del self.prerepoconf

...should be fine to fix for 6.1.

Comment 11 Tomas Capek 2011-05-17 11:59:38 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When yum called the pkgSack.searchNevra() function to get information about a package, the call failed and the "Unable to fetch [package] package" error was given, while "yum   install [package]" command worked correctly. With this update, this bug has been fixed and the error message is no longer given if the package in question is available.

Comment 12 errata-xmlrpc 2011-05-19 13:34:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0602.html


Note You need to log in before you can comment on or make changes to this bug.