-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
False
-
-
Testable
-
rhel-conversions
-
-
-
When running CentOS 7 on t2.micro (1vCPU, 1GB memory) with 8GB storage I've found that not only the check kmod fails but the rollback is broken as well because somehow the rpm db gets corrupted.
[07/12/2023 22:39:46] DEBUG - Calling command 'repoquery --releasever=7Server --repoid rhel-7-server-rpms -f /lib/modules/*.ko*' ^[[F^[[F[07/12/2023 23:01:02] DEBUG - Output of the previous repoquery command: ERROR - (ERROR) ENSURE_KERNEL_MODULES_COMPATIBILITY.NO_RHEL_KERNEL_MODULES_FOUND: No packages containing kernel modules available in the enabled repositories (rhel-7-server-rpms). ERROR - Skipped VALIDATE_PACKAGE_MANAGER_TRANSACTION. Skipped because ENSURE_KERNEL_MODULES_COMPATIBILITY was not successful CRITICAL - Conversion failed. Writing breadcrumbs to '/etc/migration-results'. Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'. [07/12/2023 23:01:02] DEBUG - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 100, in main loggerinst.critical("Conversion failed.") File "/usr/lib/python2.7/site-packages/convert2rhel/logger.py", line 159, in _critical sys.exit(msg) SystemExit: Conversion failed. WARNING - Abnormal exit! Performing rollback ... [07/12/2023 23:01:02] TASK - [Rollback: RHSM-related actions] *********************************** Unregistering the system. [07/12/2023 23:01:02] DEBUG - Calling command 'rpm --quiet -q subscription-manager' error: rpmdb: BDB0113 Thread/process 1694/140219672221504 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 - (-30973) error: cannot open Packages database in /var/lib/rpm error: rpmdb: BDB0113 Thread/process 1694/140219672221504 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages database in /var/lib/rpm The subscription-manager package is not installed.
The problem that the repoquery fails to return a result and convert2rhel then incorrectly states "No packages containing kernel modules available in the enabled repositories" is being fixed under RHELC-895.
This bug report is about the corrupted rpmdb because it causes the rollback to fail and any yum/rpm execution is then broken.
- relates to
-
RHELC-895 "No packages containing kernel modules available" when not enough RAM or disk space
-
- Closed
-
1.
|
Corrupted rpm db on a low-spec machine - Integration tests |
|
To Do | |
Unassigned |