Bug 1162290

Summary: RepoError: database disk image is malformed
Product: Red Hat Enterprise Linux 7 Reporter: Bill Sanford <bsanford>
Component: anacondaAssignee: Will Woods <wwoods>
Status: CLOSED CANTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: bsanford, ckannan, mcsontos, psklenar, pvine, tpelka, vipatel
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6298e1e89ab7a67dcb10e8e91506492a0178cd47ede0ba8d50b0126e625a3351
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-02 18:17:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Bill Sanford 2014-11-10 18:53:46 UTC
Description of problem:
I was installing RHEL-7.1-20141029.0 on RHEV-M 3.5 (vt9/el6)

Version-Release number of selected component:
anaconda-19.31.104-1

The following was filed automatically by anaconda:
anaconda 19.31.104-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 55, in newFunc
    raise Errors.RepoError, str(e)
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 1714, in searchNevra
    for pkg in self.searchNames(names=[name]):
  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 46, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 595, in _computeAggregateListResult
    sackResult = apply(method, args)
  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 403, in searchNevra
    return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4787, in install
    ver=nevra_dict['version'], rel=nevra_dict['release'])
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3906, in selectGroup
    pkg_warning_level='debug2')
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1294, in _selectYumGroup
    self._yum.selectGroup(groupid, group_package_types=pkg_types)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1409, in _applyYumSelections
    self._selectYumGroup("core")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1513, in checkSoftwareSelection
    self._applyYumSelections()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 123, in checkSoftwareSelection
    self.payload.checkSoftwareSelection()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run
    threading.Thread.run(self, *args, **kwargs)
RepoError: database disk image is malformed

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/distrotrees/68480/initrd method=http://download.eng.bos.redhat.com/rel-eng/RHEL-7.1-20141029.0/compose/Server/x86_64/os/ repo=http://download.eng.bos.redhat.com/rel-eng/RHEL-7.1-20141029.0/compose/Server/x86_64/os/  BOOT_IMAGE=/distrotrees/68480/kernel 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-195.el7.x86_64
product:        Red Hat Enterprise Linux 7"
release:        Red Hat Enterprise Linux Workstation release 7.1 Beta (Maipo)
release_type:   pre-release
type:           anaconda
version:        Red Hat Enterprise Linux Workstation"

Comment 1 Bill Sanford 2014-11-10 18:53:48 UTC
Created attachment 955939 [details]
File: anaconda-tb

Comment 2 Bill Sanford 2014-11-10 18:53:49 UTC
Created attachment 955940 [details]
File: anaconda.log

Comment 3 Bill Sanford 2014-11-10 18:53:50 UTC
Created attachment 955941 [details]
File: environ

Comment 4 Bill Sanford 2014-11-10 18:53:50 UTC
Created attachment 955942 [details]
File: lsblk_output

Comment 5 Bill Sanford 2014-11-10 18:53:51 UTC
Created attachment 955943 [details]
File: nmcli_dev_list

Comment 6 Bill Sanford 2014-11-10 18:53:52 UTC
Created attachment 955944 [details]
File: os_info

Comment 7 Bill Sanford 2014-11-10 18:53:53 UTC
Created attachment 955945 [details]
File: program.log

Comment 8 Bill Sanford 2014-11-10 18:53:54 UTC
Created attachment 955946 [details]
File: storage.log

Comment 9 Bill Sanford 2014-11-10 18:53:55 UTC
Created attachment 955947 [details]
File: syslog

Comment 10 Bill Sanford 2014-11-10 18:53:56 UTC
Created attachment 955948 [details]
File: ifcfg.log

Comment 11 Bill Sanford 2014-11-10 18:53:57 UTC
Created attachment 955949 [details]
File: packaging.log

Comment 13 Brian Lane 2014-11-11 02:29:17 UTC
Is this reproducible? It looks like the yum metadata was somehow corrupted.

Comment 14 Marian Csontos 2014-11-25 16:49:00 UTC
Another user experienced a similar problem:

Simply running installation.
(This may be temporary issue with server - the installation passed right before.)

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   repo=http://10.34.48.241/pub/rhel/nightly/latest-RHEL-7/compose/Server/x86_64/os
hashmarkername: anaconda
kernel:         3.10.0-206.el7.x86_64
package:        anaconda-19.31.109-1
product:        Red Hat Enterprise Linux 7"
reason:         RepoError: database disk image is malformed
release:        Red Hat Enterprise Linux Workstation release 7.1 Beta (Maipo)
release_type:   pre-release
version:        Red Hat Enterprise Linux Workstation"

Comment 16 Petr Sklenar 2015-01-13 12:51:43 UTC
Another user experienced a similar problem:

I click into change keyboard layout

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/distrotrees/68905/initrd method=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.1-20150112.n.0/compose/Workstation/x86_64/os/ repo=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.1-20150112.n.0/compose/Workstation/x86_64/os/  BOOT_IMAGE=/distrotrees/68905/kernel 
hashmarkername: anaconda
kernel:         3.10.0-221.el7.x86_64
package:        anaconda-19.31.118-1
product:        Red Hat Enterprise Linux 7"
reason:         RepoError: database disk image is malformed
release:        Red Hat Enterprise Linux Workstation release 7.1 Beta (Maipo)
release_type:   pre-release
version:        Red Hat Enterprise Linux Workstation"

Comment 17 Petr Sklenar 2015-01-13 12:53:25 UTC
I could see this issue too. I was trying to change keyboard layout.

Comment 18 Petr Sklenar 2015-01-13 13:19:44 UTC
but now i tried that again and it seems to be working.
If its due to yum metadata isn't possible that anaconda tries to download it again?

Comment 19 Marian Csontos 2015-01-13 15:37:40 UTC
(In reply to Petr Sklenar from comment #18)
> but now i tried that again and it seems to be working.
> If its due to yum metadata isn't possible that anaconda tries to download it
> again?

I guess it was downloading them in background while you were in the keyboard screen.

Perhaps it would be worth having Bug 1103452 fixed to see if that's the cause here as well as in the Bug 1167948.

Comment 20 David Cantrell 2015-04-02 18:17:57 UTC
This happens during nearly every RHEL release.  Nightly trees end up with corrupted yum metadata and it resolves after a few days.  With so many trees being constructed and copied around, we're bound to hit this from time to time.  Still file the bugs because it may indicate another problem, but usually it's just this harmless problem due to our internal infrastructure and development processes.