Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1628629

Summary: uninstalling microcode_ctl error: /var/lib/rpm-state/microcode_ctl_un_intel-ucode_diff: No such file or directory
Product: Red Hat Enterprise Linux 7 Reporter: Jeff Bastian <jbastian>
Component: microcode_ctlAssignee: Eugene Syromiatnikov <esyr>
Status: CLOSED ERRATA QA Contact: Jeff Bastian <jbastian>
Severity: low Docs Contact:
Priority: low    
Version: 7.6CC: skozina
Target Milestone: rc   
Target Release: 7.7   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: microcode_ctl-2.1-48.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 13:18:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1696598    

Description Jeff Bastian 2018-09-13 15:17:00 UTC
Description of problem:

Yum logs a "No such file or directory" error when erasing the microcode_ctl rpm:

~]# yum -y erase microcode_ctl
...
Running transaction
  Erasing    : 2:microcode_ctl-2.1-47.el7.x86_64                            1/1
/var/tmp/rpm-tmp.l10MOn: line 46: /var/lib/rpm-state/microcode_ctl_un_intel-ucode_diff: No such file or directory
  Verifying  : 2:microcode_ctl-2.1-47.el7.x86_64                            1/1

Removed:
  microcode_ctl.x86_64 2:2.1-47.el7


Version-Release number of selected component (if applicable):
microcode_ctl-2.1-47.el7

How reproducible:
always

Steps to Reproduce:
1. yum -y erase microcode_ctl

Actual results:
/var/lib/rpm-state/microcode_ctl_un_intel-ucode_diff: No such file or directory

Expected results:
no errors

Additional info:

Comment 2 Jeff Bastian 2019-06-17 20:25:39 UTC
Verified with microcode_ctl-2.1-52.el7 on RHEL-7.7 Snapshot 3.0

::::::::::::
:: Before ::
::::::::::::

[root@lenovo-01 ~]# rpm -q microcode_ctl
microcode_ctl-2.1-47.el7.x86_64

[root@lenovo-01 ~]# yum -y erase microcode_ctl
...
Running transaction
  Erasing    : 2:microcode_ctl-2.1-47.el7.x86_64                            1/1 
/var/tmp/rpm-tmp.aOnIi5: line 46: /var/lib/rpm-state/microcode_ctl_un_intel-ucode_diff: No such file or directory
  Verifying  : 2:microcode_ctl-2.1-47.el7.x86_64                            1/1 

Removed:
  microcode_ctl.x86_64 2:2.1-47.el7                                             

Complete!


:::::::::::
:: After ::
:::::::::::

[root@lenovo-01 ~]# rpm -q microcode_ctl
microcode_ctl-2.1-52.el7.x86_64

[root@lenovo-01 ~]# yum -y erase microcode_ctl
...
Running transaction
  Erasing    : 2:microcode_ctl-2.1-52.el7.x86_64                            1/1 
  Verifying  : 2:microcode_ctl-2.1-52.el7.x86_64                            1/1 

Removed:
  microcode_ctl.x86_64 2:2.1-52.el7                                             

Complete!

Comment 4 errata-xmlrpc 2019-08-06 13:18:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2321