Bug 1200434

Summary: atomic uninstall doesn't run uninstall command
Product: Red Hat Enterprise Linux 7 Reporter: Chris Evich <cevich>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: bbaude, ddarrah, dwalsh, fkluknav, walters, weshen
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-28 08:02:15 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:

Description Chris Evich 2015-03-10 14:48:29 UTC
Description of problem:
I have a docker file that contains all three, 'LABEL INSTALL', 'LABEL UNINSTALL', and 'LABEL RUN'.  The commands for INSTALL and RUN work fine, but the UNINSTALL script does not run with 'atomic uninstall <image>', instead it just removes <image>

Version-Release number of selected component (if applicable):
RHEL AH 7.1 GA

How reproducible:
Very

Steps to Reproduce:
1. Make Dockerfile with all three LABELs, that run some command like 'echo test'
2. Build docker images from Dockerfile
3. atomic install <image>; atomic run <image>; atomic uninstall <image>

Actual results:
install and run work fine, however uninstall just docker rmi <image>

Expected results:
All three LABEL commands should run.

Additional info:
Related bug 1187127 and bug 1189861 maybe?

Comment 2 Colin Walters 2015-03-17 22:40:29 UTC
This component is currently in the "docker" package.

Comment 4 Daniel Walsh 2015-03-18 11:49:47 UTC
Fixed in docker-1.5.0-19.el7

Comment 5 Mike McCune 2016-03-28 22:32:18 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Edward Shen 2018-11-16 06:30:27 UTC
verified on atomic-1.22.1-26.gitb507039.el7.x86_64. It's fixed.

Comment 9 errata-xmlrpc 2018-11-28 08:02:15 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-2018:3723