Actions
Issue #1958
closeduninstall causes POSTUN script failure
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.
Updated by mhrivnak over 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bkearney@redhat.com
Updated by bkearney@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 71e3375cc45e742bd4ecf49ad7a25864cda60459.
Added by bkearney@redhat.com over 8 years ago
Updated by semyers over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Only restorecon if the /var/lib/crane exits
https://pulp.plan.io/issues/1958 fixes #1958