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 1668378 - Under Microsoft WIndows Subsystem for Linux (WSL) - RPM issues after RPM DB rebuild [rhel7]
Summary: Under Microsoft WIndows Subsystem for Linux (WSL) - RPM issues after RPM DB r...
Keywords:
Status: CLOSED DUPLICATE of bug 1668380
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-22 15:38 UTC by James Hartsock
Modified: 2019-03-28 17:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-01 08:11:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Microsoft WSL issues 3939 0 None None None 2019-03-26 16:39:34 UTC
Github WhitewaterFoundry WLE issues 20 0 None None None 2019-03-04 03:55:46 UTC
Red Hat Knowledge Base (Solution) 3823982 0 None None None 2019-01-22 15:38:44 UTC

Description James Hartsock 2019-01-22 15:38:44 UTC
Description of problem:
After an RPM database rebuild, like rpm --rebuilddb, commands like rpm & yum fail and/or hang.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 7.6 (Maipo)

How reproducible:
Very

Steps to Reproduce:
1. Take RHEL 7 container image, export & gzip it
   # podman pull registry.access.redhat.com/rhel7
   # podman run -it rhel7 sleep 99999
   # podman ps
   CONTAINER ID
   <ContainID>
   # podman export <ContainID> -o rhel7.tar
   # podman kill   <ContainID>
   # gzip rhel7.tar

2. Use https://github.com/DDoSolitary/LxRunOffline on Windows setup for WSL.
   C:\Temp>LxRunOffline-v3.3.2\LxRunOffline.exe install -n RHEL7 -d RHEL7 -f rhel7.tar.gz
   C:\Temp>LxRunOffline-v3.3.2\LxRunOffline.exe set-default -n RHEL7
   C:\Temp>LxRunOffline-v3.3.2\LxRunOffline.exe get-default
   RHEL7

3. yum/rpm comamands work, even able to install.

4. Rebuild rpmdb and first command fails, subsequent commands hang.


Actual results:
[root@win10 Temp]# rpm -q yum rpm
yum-3.4.3-161.el7.noarch
rpm-4.11.3-35.el7.x86_64

[root@win10 Temp]# rpm -qa | wc -l
163

[root@win10 Temp]# rpm --rebuilddb

[root@win10 Temp]# rpm -qa | wc -l
0 <--------------------------------------- Should be 163!

[root@win10 Temp]# rpm -qa | wc -l <------ hangs


Expected results:
Post rebuilddb commands should still work.


Additional info:

Comment 2 James Hartsock 2019-01-22 15:49:24 UTC
Some public discussion going on at:

https://github.com/Microsoft/WSL/issues/90
https://github.com/Microsoft/WSL/issues/3742

Comment 3 Panu Matilainen 2019-02-01 08:11:36 UTC

*** This bug has been marked as a duplicate of bug 1668380 ***

Comment 4 James Hartsock 2019-03-04 03:49:43 UTC
 === In Red Hat Customer Portal Case 02291494 ===
--- Comment by Hartsock, James on 3/3/2019 9:49 PM ---

Hayden's work-around does work for me too....

[root@win10 rpm]# rpm --rebuilddb
[root@win10 rpm]# dd if=/dev/zero of=/var/lib/rpm/__db.001 count=0 bs=1 seek=1M
[root@win10 rpm]# dd if=/dev/zero of=/var/lib/rpm/__db.002 count=0 bs=1 seek=1M
[root@win10 rpm]# dd if=/dev/zero of=/var/lib/rpm/__db.003 count=0 bs=1 seek=1M

[root@win10 ~]# rpm -q rpm
rpm-4.11.3-32.el7.x86_64


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