Bug 1785480
| Summary: | podman reuses wrong cached image | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Moss Uchida <muchida> |
| Component: | buildah | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.1 | CC: | bbaude, dwalsh, jligon, jnovy, kanderso, lsm5, mheon, tsweeney, ypu |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | podman-1.9.x and newer | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-21 15:31:54 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
Moss Uchida
2019-12-20 01:00:00 UTC
Changing component to Buildah, as `podman build` uses Buildah code to perform builds. This is fixed in Podman v1.9+ and should be in RHEL 8.2.1. Storing signatures STEP 2: COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml --> b2901865f80 STEP 3: COPY --chown=1001:0 src/main/liberty/config/server.env /config/server.env Second build: STEP 2: COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml --> 14fb3f24f99 Setting to Modified and assigning to Jindrich in case there's further BZ tweaking needed. Test with podman-1.9.3-2.module+el8.2.1+6867+366c07d6.x86_64, and comments out the line for copy java war file in the Dockerfile(the mvn version installed in my host have a bug). And it now works as expect. The build will not reuse the cache image. So set this to verified. Details:
[root@kvm-01-guest13 acmeair-flightservice-java]# podman build . -t quay.io/test
STEP 1: FROM open-liberty:kernel
Getting image source signatures
Copying blob 322ed380e680 done
Copying blob 131f805ec7fd done
Copying blob 205a7ec514d2 done
Copying blob 6ac240b13098 done
Copying blob 783fe3f38ac2 done
Copying blob d7c3167c320d done
Copying blob d84c2fe266cf done
Copying blob 5b5f161f0cc5 done
Copying blob 6c5d85eb9c6e done
Copying blob fbb3262df79b done
Copying blob 674061a1838a done
Copying blob 1b4e8cb7a57e done
Copying config 1a694e96af done
Writing manifest to image destination
Storing signatures
STEP 2: COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml
--> aff8610c122
STEP 3: COPY --chown=1001:0 src/main/liberty/config/server.env /config/server.env
--> b5836731ec3
STEP 4: COPY --chown=1001:0 src/main/liberty/config/jvm.options /config/jvm.options
--> fa6bc1c8d78
STEP 5: ARG CREATE_OPENJ9_SCC=true
--> 5abcdbd0ba0
STEP 6: ENV OPENJ9_SCC=${CREATE_OPENJ9_SCC}
--> 0d4b9758a2b
STEP 7: RUN configure.sh
STEP 8: COMMIT quay.io/test
--> b22d503cd8e
b22d503cd8e4500de363576f8dbc552f007ce496675b58e9c39fc7fa676880f2
[root@kvm-01-guest13 acmeair-customerservice-java]# podman build . -t quay.io/test
STEP 1: FROM open-liberty:kernel
STEP 2: COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml
--> d3e8d17f0e7
STEP 3: COPY --chown=1001:0 src/main/liberty/config/server.env /config/server.env
--> c43f25969f7
STEP 4: COPY --chown=1001:0 src/main/liberty/config/jvm.options /config/jvm.options
--> d59855431e0
STEP 5: ARG CREATE_OPENJ9_SCC=true
--> 8ccb963f97d
STEP 6: ENV OPENJ9_SCC=${CREATE_OPENJ9_SCC}
--> 93d65dab55a
STEP 7: RUN configure.sh
STEP 8: COMMIT quay.io/test
--> 063f02beb48
063f02beb48104b1be5beab08dea302a0ca24d6a19c35808bc374ee4d2205847
# podman run 063f02beb48104b1be5beab08dea302a0ca24d6a19c35808bc374ee4d2205847 cat /config/server.xml
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>microProfile-3.3</feature>
</featureManager>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint" host="*"
httpPort="9080" httpsPort="9443">
</httpEndpoint>
<quickStartSecurity userName="${env.USERNAME}" userPassword="${env.PASSWORD}" />
<webApplication name="acmeair-customerservice" location="acmeair-customerservice-java-3.3.war" contextRoot="/customer">
<!-- enable visibility to third party apis -->
<classloader apiTypeVisibility="api,ibm-api,spec,stable,third-party"/>
</webApplication>
</server>
# podman run b22d503cd8e4500de363576f8dbc552f007ce496675b58e9c39fc7fa676880f2 cat /config/server.xml
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>microProfile-3.3</feature>
</featureManager>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint" host="*"
httpPort="9080" httpsPort="9443">
</httpEndpoint>
<quickStartSecurity userName="${env.USERNAME}" userPassword="${env.PASSWORD}" />
<webApplication name="acmeair-flightservice" location="acmeair-flightservice-java-3.3.war" contextRoot="/flight">
<!-- enable visibility to third party apis -->
<classloader apiTypeVisibility="api,ibm-api,spec,stable,third-party"/>
</webApplication>
</server>
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/RHSA-2020:3053 |