Project

Profile

Help

Issue #1958

closed

uninstall causes POSTUN script failure

Added by mhrivnak almost 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Crane:
2.0.0
Platform Release:
2.8.5
Target Release - Crane:
2.0.1
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If you install and then immediately uninstall python-crane, this error is seen:

$ sudo yum remove python-crane
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package python-crane.noarch 0:2.0.0-1.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================
 Package                         Arch                      Version                         Repository                         Size
===================================================================================================================================
Removing:
 python-crane                    noarch                    2.0.0-1.el7                     @pulp-2.8-beta                    4.0 M

Transaction Summary
===================================================================================================================================
Remove  1 Package

Installed size: 4.0 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : python-crane-2.0.0-1.el7.noarch                                                                                 1/1 
restorecon:  lstat(/var/lib/crane) failed:  No such file or directory
warning: %postun(python-crane-2.0.0-1.el7.noarch) scriptlet failed, exit status 255
Non-fatal POSTUN scriptlet failure in rpm package python-crane-2.0.0-1.el7.noarch
  Verifying  : python-crane-2.0.0-1.el7.noarch                                                                                 1/1 

Removed:
  python-crane.noarch 0:2.0.0-1.el7                                                                                                

Complete!

It appears that the uninstall removes /var/lib/crane (if it is empty), and that happens before the restorecon command runs.

Also available in: Atom PDF