Project

Profile

Help

Issue #1958

closed

uninstall causes POSTUN script failure

Added by mhrivnak over 8 years ago. Updated over 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.

Actions #1

Updated by mhrivnak over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bkearney@redhat.com
Actions #2

Updated by dkliban@redhat.com over 8 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by mhrivnak over 8 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by bkearney@redhat.com over 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Added by bkearney@redhat.com over 8 years ago

Revision ae742e7f | View on GitHub

Only restorecon if the /var/lib/crane exits

https://pulp.plan.io/issues/1958 fixes #1958

Actions #5

Updated by bmbouter over 8 years ago

  • Target Release - Crane set to 2.0.1
Actions #6

Updated by semyers over 8 years ago

  • Platform Release set to 2.8.5
Actions #7

Updated by semyers over 8 years ago

  • Status changed from MODIFIED to 5
Actions #8

Updated by semyers over 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #9

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF