Bug 1956396

Summary: RPM: error: cannot open Packages database in /var/lib/mock/fedora-rawhide-x86_64/root/var/lib/rpm
Product: [Fedora] Fedora Reporter: Peter Oliver <mavit>
Component: fedora-reviewAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: admiller, leamas.alec, ngompa13, pingou, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Oliver 2021-05-03 15:39:16 UTC
Description of problem:
I find that I’m unable to run fedora-review on Fedora 34 unless I specify the option `--mock-config=fedora-34-x86_64`.

Version-Release number of selected component (if applicable):
fedora-review-0.7.6-3.fc34.noarch

How reproducible:
Always.

Steps to Reproduce:
fedora-review -v --bug=1955618

Actual results:
...
Running transaction
RPM: error: cannot open Packages index using bdb_ro - Operation not permitted (1)
RPM: error: cannot open Packages database in /var/lib/mock/fedora-rawhide-x86_64/root/var/lib/rpm
Error: Could not run transaction.

DEBUG: _topdir: /builddir/build
INFO: Reading configuration from /etc/mock/site-defaults.cfg
DEBUG: Report completed:  27.141 seconds
INFO: Reading configuration from /etc/mock/fedora-rawhide-x86_64.cfg
DEBUG: Report completed:  27.255 seconds
DEBUG: Build failed rc = Build error(s)
DEBUG: ReviewError: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 236, in run
    self._do_run(outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 226, in _do_run
    self._do_report(outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 99, in _do_report
    self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
  File "/usr/lib/python3.9/site-packages/FedoraReview/review_helper.py", line 117, in _run_checks
    self.checks.run_checks(output=output, writedown=not Settings.no_report)
  File "/usr/lib/python3.9/site-packages/FedoraReview/checks.py", line 382, in run_checks
    run_check(name)
  File "/usr/lib/python3.9/site-packages/FedoraReview/checks.py", line 357, in run_check
    check.run()
  File "/usr/lib/python3.9/site-packages/FedoraReview/plugins/generic_build.py", line 203, in run
    Mock.build(self.srpm.filename)
  File "/usr/lib/python3.9/site-packages/FedoraReview/mock.py", line 468, in build
    raise error
FedoraReview.review_error.ReviewError: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
ERROR: 'mock build failed, see /home/mavit/src/fedora-review/1955618-perl-XS-Parse-Keyword/results/build.log'
DEBUG: Report completed:  27.382 seconds


Expected results:
Package builds.