Project

Profile

Help

Issue #1958

uninstall causes POSTUN script failure

Added by mhrivnak over 3 years ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version - Crane:
2.0.0
Platform Release:
2.8.5
Blocks Release:
Target Release - Crane:
2.0.1
OS:
CentOS 7
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

Associated revisions

Revision ae742e7f View on GitHub
Added by bkearney@redhat.com over 3 years ago

Only restorecon if the /var/lib/crane exits

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

History

#1 Updated by mhrivnak over 3 years ago

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

#2 Updated by dkliban@redhat.com over 3 years ago

  • Triaged changed from No to Yes

#3 Updated by mhrivnak over 3 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by bkearney@redhat.com over 3 years ago

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

#5 Updated by bmbouter over 3 years ago

  • Target Release - Crane set to 2.0.1

#6 Updated by semyers over 3 years ago

  • Platform Release set to 2.8.5

#7 Updated by semyers over 3 years ago

  • Status changed from MODIFIED to ON_QA

#8 Updated by semyers over 3 years ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter 9 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF