Bug 1764323 - "s2i build with a quota Building from a template" test is failing with cri-o 1.16 and OpenShift 4.3
Summary: "s2i build with a quota Building from a template" test is failing with cri-o ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.3.0
Assignee: Peter Hunt
QA Contact: Sunil Choudhary
URL:
Whiteboard:
Depends On: 1787457
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-22 18:37 UTC by Urvashi Mohnani
Modified: 2020-01-23 11:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:08:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 24174 0 'None' closed Bug 1787457: Read cgroup settings from the right cgroup for build-quota tests 2020-10-14 15:05:14 UTC
Github openshift origin pull 24365 0 None closed Bug 1764323: [release-4.3] Read cgroup settings from the right cgroup for build-quota tests 2020-10-14 15:05:13 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:09:20 UTC

Internal Links: 1788935

Description Urvashi Mohnani 2019-10-22 18:37:46 UTC
While enabling the e2e-aws test for cri-o 1.16 with Openshift 4.3, we started seeing the s2i builds with quota tests failing on the Memory value.

This is a test run https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/pr-logs/pull/openshift_release/5424/rehearse-5424-pull-ci-cri-o-cri-o-release-1.16-e2e-aws/9.

Currently disabling this test to unblock cri-o 1.16, but this is a high severity bug and needs to be fixed for 4.3.

Comment 1 Urvashi Mohnani 2019-11-21 03:24:11 UTC
Fixed in https://github.com/openshift/origin/pull/24174

Comment 2 Nalin Dahyabhai 2019-11-26 16:52:55 UTC
https://github.com/openshift/origin/pull/24174 doesn't look like the right approach.

Comment 3 Urvashi Mohnani 2019-11-27 12:50:16 UTC
Updated fix is in https://github.com/cri-o/cri-o/pull/2997

Comment 4 Peter Hunt 2019-12-09 15:52:49 UTC
the aforementioned CRI-O fix is in

Comment 7 wewang 2019-12-24 03:25:52 UTC
Tested in local, now logs as below,MEMORYSWAP is not correct, should be "MEMORYSWAP=419430400", since issue https://github.com/containers/buildah/issues/1213 is still open, 

time="2019-12-24T03:07:46Z" level=debug msg="Running &exec.Cmd{Path:\"/bin/sh\", Args:[]string{\"/bin/sh\", \"-c\", \"/tmp/scripts/assemble\"}, Env:[]string{\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\", \"BUILD_LOGLEVEL=6\", \"OPENSHIFT_BUILD_NAMESPACE=wewang\", \"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\", \"HOSTNAME=3c5e5504233d\", \"HOME=/\"}, Dir:\"/\", Stdin:(*os.File)(0xc0000bc000), Stdout:(*os.File)(0xc0000bc008), Stderr:(*os.File)(0xc0000bc010), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(nil), ProcessState:(*os.ProcessState)(nil), ctx:context.Context(nil), lookPathErr:error(nil), finished:false, childFiles:[]*os.File(nil), closeAfterStart:[]io.Closer(nil), closeAfterWait:[]io.Closer(nil), goroutine:[]func() error(nil), errch:(chan error)(nil), waitDone:(chan struct {})(nil)} (PATH = \"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\")"
MEMORY=419430400
MEMORYSWAP=9223372036854771712
QUOTA=6000
SHARES=61
PERIOD=100000

Comment 8 wewang 2019-12-24 03:27:18 UTC
version:
4.3.0-0.nightly-2019-12-23-193915
crio version 1.16.1-7.dev.rhaos4.3.gitcee3d66.el8

Comment 9 wewang 2019-12-24 07:14:51 UTC
Version: 
4.3.0-0.nightly-2019-12-23-193915

And tested in local e2e, enable o.Expect(buildLog).To(o.ContainSubstring("MEMORY=419430400")) and o.Expect(buildLog).To(o.ContainSubstring("MEMORYSWAP=419430400")), now only MEMORYSWAP need to fix NOW, here is log:

    MEMORY=419430400
    MEMORYSWAP=9223372036854771712
    QUOTA=6000
    SHARES=61
    PERIOD=100000
    time="2019-12-24T06:59:56Z" level=debug msg="Parsed Step: {Env:[BUILD_LOGLEVEL=6 OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz OPENSHIFT_BUILD_NAME=s2i-build-quota-1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin    OPENSHIFT_BUILD_NAME=s2i-build-quota-1 OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz BUILD_LOGLEVEL=6] Command:cmd Args:[/usr/libexec/s2i/run] Flags:[] Attrs:map[] Message:CMD /usr/libexec/s2i/run Original:CMD /usr/libexec/s2i/run}"
    STEP 10: CMD /usr/libexec/s2i/run
    time="2019-12-24T06:59:56Z" level=debug msg="COMMIT temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195"
    STEP 11: COMMIT temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195
    time="2019-12-24T06:59:56Z" level=debug msg="parsed reference into \"[overlay@/var/lib/containers/storage+/var/run/containers/storage]temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195\""
    time="2019-12-24T06:59:56Z" level=debug msg="COMMIT \"containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195\""
    time="2019-12-24T06:59:56Z" level=debug msg="committing image with reference \"containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195\" is allowed by policy"
    time="2019-12-24T06:59:56Z" level=debug msg="parsed reference into \"[overlay@/var/lib/containers/storage+/var/run/containers/storage]@ef0b9da9b21de4aec1217f962bdecf73ddb7c4d3d007656df193e1d287096da8\""
    time="2019-12-24T06:59:56Z" level=debug msg="base image \"ef0b9da9b21de4aec1217f962bdecf73ddb7c4d3d007656df193e1d287096da8\" is already present in local storage, no need to copy its layers"
    time="2019-12-24T06:59:56Z" level=debug msg="starting to write to image \"containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195\" using blob cache in \"/var/cache/blobs\""
    time="2019-12-24T06:59:56Z" level=debug msg="layer list: [\"683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\" \"827a24231b0e8c55059315dea0e1b7228801f29ad4d8427b6dd6f7ffe6b4f23b\" \"a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e\"]"
    time="2019-12-24T06:59:56Z" level=debug msg="using \"/tmp/buildah980952136\" to hold temporary data"
    time="2019-12-24T06:59:56Z" level=debug msg="Tar with options on /var/lib/containers/storage/overlay/a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e/diff"
    time="2019-12-24T06:59:56Z" level=debug msg="layer \"a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e\" size is 10240 bytes"
    time="2019-12-24T06:59:56Z" level=debug msg="OCIv1 config = {\"created\":\"2019-12-24T06:59:56.609018387Z\",\"architecture\":\"amd64\",\"os\":\"linux\",\"config\":{\"User\":\"1001\",\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"rootfs\":{\"type\":\"layers\",\"diff_ids\":[\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"]},\"history\":[{\"created\":\"2019-01-01T01:21:10.539530591Z\",\"created_by\":\"/bin/sh -c #(nop) ADD file:7ba585d92672740a4831cb5ebe70f1cc102065fe30b39339a48bfc0ce42e2c9e in / \"},{\"created\":\"2019-01-01T01:21:10.727029643Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"sh\\\"]\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.376582082Z\",\"created_by\":\"/bin/sh -c #(nop)  LABEL io.openshift.s2i.scripts-url=image:///usr/libexec/s2i\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.623747795Z\",\"created_by\":\"/bin/sh -c #(nop) ADD dir:383271893adaf4c2ac3f82b60fd067f79acf1698e8d063b0939beff0b8b6aa6f in /usr/libexec/s2i \"},{\"created\":\"2019-01-08T21:51:40.87679422Z\",\"created_by\":\"/bin/sh -c #(nop)  USER 1001\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:41.164101165Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"/usr/libexec/s2i/run\\\"]\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713720102Z\",\"created_by\":\"/bin/sh -c #(nop) LABEL \\\"io.openshift.build.image\\\"=\\\"docker.io/openshift/test-build-simples2i:latest\\\" \\\"io.openshift.build.source-location\\\"=\\\"/tmp/build/inputs\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.71381442Z\",\"created_by\":\"/bin/sh -c #(nop) ENV OPENSHIFT_BUILD_NAME=\\\"s2i-build-quota-1\\\" OPENSHIFT_BUILD_NAMESPACE=\\\"e2e-test-s2i-build-quota-bcmtz\\\" BUILD_LOGLEVEL=\\\"6\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713858513Z\",\"created_by\":\"/bin/sh -c #(nop) USER root\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:50.607153849Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:3d40df0f26a2a84bd82b20cb1528ef1293e2f2f433a09af1c96e848385e3993c in /tmp/scripts \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:13.812302502Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:27c0416a5c32000bb74b20af31a7ac7436609bbf1ed2b522647215ba6e584115 in /tmp/src \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907540529Z\",\"created_by\":\"/bin/sh -c chown -R 1001:0 /tmp/scripts /tmp/src\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907625199Z\",\"created_by\":\"/bin/sh -c #(nop) USER 1001\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.60834609Z\",\"created_by\":\"/bin/sh -c /tmp/scripts/assemble\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.609018387Z\",\"created_by\":\"/bin/sh -c #(nop) CMD /usr/libexec/s2i/run\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="OCIv1 manifest = {\"schemaVersion\":2,\"config\":{\"mediaType\":\"application/vnd.oci.image.config.v1+json\",\"digest\":\"sha256:5200499cf23e0709d9caa0678800df7be0db31b6f1e8f64d9793af3b6da05de2\",\"size\":3056},\"layers\":[{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"size\":1415680},{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"size\":5120},{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\",\"size\":10240}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="Docker v2s2 config = {\"created\":\"2019-12-24T06:59:56.609018387Z\",\"container\":\"216dfd161acbf348dd998829ab186da455baae2b578699948796f38abecdebbf\",\"container_config\":{\"Hostname\":\"00c84215049e\",\"Domainname\":\"\",\"User\":\"1001\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"ArgsEscaped\":true,\"Image\":\"sha256:08ce491cff618eba7a4667fadbe3e604eb635bfd0d5d06c837c102d91831148b\",\"Volumes\":{},\"WorkingDir\":\"\",\"Entrypoint\":[],\"OnBuild\":[],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"config\":{\"Hostname\":\"00c84215049e\",\"Domainname\":\"\",\"User\":\"1001\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"ArgsEscaped\":true,\"Image\":\"sha256:08ce491cff618eba7a4667fadbe3e604eb635bfd0d5d06c837c102d91831148b\",\"Volumes\":{},\"WorkingDir\":\"\",\"Entrypoint\":[],\"OnBuild\":[],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"architecture\":\"amd64\",\"os\":\"linux\",\"parent\":\"sha256:ef0b9da9b21de4aec1217f962bdecf73ddb7c4d3d007656df193e1d287096da8\",\"rootfs\":{\"type\":\"layers\",\"diff_ids\":[\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"]},\"history\":[{\"created\":\"2019-01-01T01:21:10.539530591Z\",\"created_by\":\"/bin/sh -c #(nop) ADD file:7ba585d92672740a4831cb5ebe70f1cc102065fe30b39339a48bfc0ce42e2c9e in / \"},{\"created\":\"2019-01-01T01:21:10.727029643Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"sh\\\"]\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.376582082Z\",\"created_by\":\"/bin/sh -c #(nop)  LABEL io.openshift.s2i.scripts-url=image:///usr/libexec/s2i\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.623747795Z\",\"created_by\":\"/bin/sh -c #(nop) ADD dir:383271893adaf4c2ac3f82b60fd067f79acf1698e8d063b0939beff0b8b6aa6f in /usr/libexec/s2i \"},{\"created\":\"2019-01-08T21:51:40.87679422Z\",\"created_by\":\"/bin/sh -c #(nop)  USER 1001\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:41.164101165Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"/usr/libexec/s2i/run\\\"]\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713720102Z\",\"created_by\":\"/bin/sh -c #(nop) LABEL \\\"io.openshift.build.image\\\"=\\\"docker.io/openshift/test-build-simples2i:latest\\\" \\\"io.openshift.build.source-location\\\"=\\\"/tmp/build/inputs\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.71381442Z\",\"created_by\":\"/bin/sh -c #(nop) ENV OPENSHIFT_BUILD_NAME=\\\"s2i-build-quota-1\\\" OPENSHIFT_BUILD_NAMESPACE=\\\"e2e-test-s2i-build-quota-bcmtz\\\" BUILD_LOGLEVEL=\\\"6\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713858513Z\",\"created_by\":\"/bin/sh -c #(nop) USER root\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:50.607153849Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:3d40df0f26a2a84bd82b20cb1528ef1293e2f2f433a09af1c96e848385e3993c in /tmp/scripts \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:13.812302502Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:27c0416a5c32000bb74b20af31a7ac7436609bbf1ed2b522647215ba6e584115 in /tmp/src \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907540529Z\",\"created_by\":\"/bin/sh -c chown -R 1001:0 /tmp/scripts /tmp/src\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907625199Z\",\"created_by\":\"/bin/sh -c #(nop) USER 1001\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.60834609Z\",\"created_by\":\"/bin/sh -c /tmp/scripts/assemble\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.609018387Z\",\"created_by\":\"/bin/sh -c #(nop) CMD /usr/libexec/s2i/run\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="Docker v2s2 manifest = {\"schemaVersion\":2,\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"config\":{\"mediaType\":\"application/vnd.docker.container.image.v1+json\",\"size\":4319,\"digest\":\"sha256:4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10\"},\"layers\":[{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":1415680,\"digest\":\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\"},{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":5120,\"digest\":\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\"},{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":10240,\"digest\":\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="starting to read from image \"containers-storage:test-build-simples2i-working-container\" using blob cache in \"/var/cache/blobs\" (compression=0)"
    time="2019-12-24T06:59:56Z" level=debug msg="Using blob info cache at /var/lib/containers/storage/cache/blob-info-cache-v1.boltdb"
    time="2019-12-24T06:59:56Z" level=debug msg="IsRunningImageAllowed for image containers-storage:"
    time="2019-12-24T06:59:56Z" level=debug msg=" Using transport \"containers-storage\" policy section "
    time="2019-12-24T06:59:56Z" level=debug msg=" Requirement 0: allowed"
    time="2019-12-24T06:59:56Z" level=debug msg="Overall: allowed"
    time="2019-12-24T06:59:56Z" level=debug msg="start reading config"
    time="2019-12-24T06:59:56Z" level=debug msg="finished reading config"
    Getting image source signatures
    time="2019-12-24T06:59:56Z" level=debug msg="Manifest has MIME type application/vnd.docker.distribution.manifest.v2+json, ordered candidate list [application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.v1+prettyjws, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.v1+json]"
    time="2019-12-24T06:59:56Z" level=debug msg="... will first try using the original manifest unmodified"
    time="2019-12-24T06:59:56Z" level=debug msg="layer list: [\"683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\" \"827a24231b0e8c55059315dea0e1b7228801f29ad4d8427b6dd6f7ffe6b4f23b\" \"a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e\"]"
    time="2019-12-24T06:59:56Z" level=debug msg="using \"/tmp/buildah651159303\" to hold temporary data"
    time="2019-12-24T06:59:56Z" level=debug msg="Tar with options on /var/lib/containers/storage/overlay/a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e/diff"
    time="2019-12-24T06:59:56Z" level=debug msg="layer \"a50b6cac0564571dc5c253cc93b7512820e3292ce14649d0cb1599b606217d2e\" size is 10240 bytes"
    time="2019-12-24T06:59:56Z" level=debug msg="OCIv1 config = {\"created\":\"2019-12-24T06:59:56.609018387Z\",\"architecture\":\"amd64\",\"os\":\"linux\",\"config\":{\"User\":\"1001\",\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"rootfs\":{\"type\":\"layers\",\"diff_ids\":[\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"]},\"history\":[{\"created\":\"2019-01-01T01:21:10.539530591Z\",\"created_by\":\"/bin/sh -c #(nop) ADD file:7ba585d92672740a4831cb5ebe70f1cc102065fe30b39339a48bfc0ce42e2c9e in / \"},{\"created\":\"2019-01-01T01:21:10.727029643Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"sh\\\"]\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.376582082Z\",\"created_by\":\"/bin/sh -c #(nop)  LABEL io.openshift.s2i.scripts-url=image:///usr/libexec/s2i\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.623747795Z\",\"created_by\":\"/bin/sh -c #(nop) ADD dir:383271893adaf4c2ac3f82b60fd067f79acf1698e8d063b0939beff0b8b6aa6f in /usr/libexec/s2i \"},{\"created\":\"2019-01-08T21:51:40.87679422Z\",\"created_by\":\"/bin/sh -c #(nop)  USER 1001\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:41.164101165Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"/usr/libexec/s2i/run\\\"]\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713720102Z\",\"created_by\":\"/bin/sh -c #(nop) LABEL \\\"io.openshift.build.image\\\"=\\\"docker.io/openshift/test-build-simples2i:latest\\\" \\\"io.openshift.build.source-location\\\"=\\\"/tmp/build/inputs\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.71381442Z\",\"created_by\":\"/bin/sh -c #(nop) ENV OPENSHIFT_BUILD_NAME=\\\"s2i-build-quota-1\\\" OPENSHIFT_BUILD_NAMESPACE=\\\"e2e-test-s2i-build-quota-bcmtz\\\" BUILD_LOGLEVEL=\\\"6\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713858513Z\",\"created_by\":\"/bin/sh -c #(nop) USER root\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:50.607153849Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:3d40df0f26a2a84bd82b20cb1528ef1293e2f2f433a09af1c96e848385e3993c in /tmp/scripts \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:13.812302502Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:27c0416a5c32000bb74b20af31a7ac7436609bbf1ed2b522647215ba6e584115 in /tmp/src \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907540529Z\",\"created_by\":\"/bin/sh -c chown -R 1001:0 /tmp/scripts /tmp/src\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907625199Z\",\"created_by\":\"/bin/sh -c #(nop) USER 1001\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.60834609Z\",\"created_by\":\"/bin/sh -c /tmp/scripts/assemble\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.609018387Z\",\"created_by\":\"/bin/sh -c #(nop) CMD /usr/libexec/s2i/run\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="OCIv1 manifest = {\"schemaVersion\":2,\"config\":{\"mediaType\":\"application/vnd.oci.image.config.v1+json\",\"digest\":\"sha256:5200499cf23e0709d9caa0678800df7be0db31b6f1e8f64d9793af3b6da05de2\",\"size\":3056},\"layers\":[{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"size\":1415680},{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"size\":5120},{\"mediaType\":\"application/vnd.oci.image.layer.v1.tar\",\"digest\":\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\",\"size\":10240}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="Docker v2s2 config = {\"created\":\"2019-12-24T06:59:56.609018387Z\",\"container\":\"216dfd161acbf348dd998829ab186da455baae2b578699948796f38abecdebbf\",\"container_config\":{\"Hostname\":\"00c84215049e\",\"Domainname\":\"\",\"User\":\"1001\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"ArgsEscaped\":true,\"Image\":\"sha256:08ce491cff618eba7a4667fadbe3e604eb635bfd0d5d06c837c102d91831148b\",\"Volumes\":{},\"WorkingDir\":\"\",\"Entrypoint\":[],\"OnBuild\":[],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"config\":{\"Hostname\":\"00c84215049e\",\"Domainname\":\"\",\"User\":\"1001\",\"AttachStdin\":false,\"AttachStdout\":false,\"AttachStderr\":false,\"Tty\":false,\"OpenStdin\":false,\"StdinOnce\":false,\"Env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\"OPENSHIFT_BUILD_NAME=s2i-build-quota-1\",\"OPENSHIFT_BUILD_NAMESPACE=e2e-test-s2i-build-quota-bcmtz\",\"BUILD_LOGLEVEL=6\"],\"Cmd\":[\"/bin/sh\",\"-c\",\"/usr/libexec/s2i/run\"],\"ArgsEscaped\":true,\"Image\":\"sha256:08ce491cff618eba7a4667fadbe3e604eb635bfd0d5d06c837c102d91831148b\",\"Volumes\":{},\"WorkingDir\":\"\",\"Entrypoint\":[],\"OnBuild\":[],\"Labels\":{\"io.openshift.build.image\":\"docker.io/openshift/test-build-simples2i:latest\",\"io.openshift.build.source-location\":\"/tmp/build/inputs\",\"io.openshift.s2i.scripts-url\":\"image:///usr/libexec/s2i\"}},\"architecture\":\"amd64\",\"os\":\"linux\",\"parent\":\"sha256:ef0b9da9b21de4aec1217f962bdecf73ddb7c4d3d007656df193e1d287096da8\",\"rootfs\":{\"type\":\"layers\",\"diff_ids\":[\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\",\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\",\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"]},\"history\":[{\"created\":\"2019-01-01T01:21:10.539530591Z\",\"created_by\":\"/bin/sh -c #(nop) ADD file:7ba585d92672740a4831cb5ebe70f1cc102065fe30b39339a48bfc0ce42e2c9e in / \"},{\"created\":\"2019-01-01T01:21:10.727029643Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"sh\\\"]\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.376582082Z\",\"created_by\":\"/bin/sh -c #(nop)  LABEL io.openshift.s2i.scripts-url=image:///usr/libexec/s2i\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:40.623747795Z\",\"created_by\":\"/bin/sh -c #(nop) ADD dir:383271893adaf4c2ac3f82b60fd067f79acf1698e8d063b0939beff0b8b6aa6f in /usr/libexec/s2i \"},{\"created\":\"2019-01-08T21:51:40.87679422Z\",\"created_by\":\"/bin/sh -c #(nop)  USER 1001\",\"empty_layer\":true},{\"created\":\"2019-01-08T21:51:41.164101165Z\",\"created_by\":\"/bin/sh -c #(nop)  CMD [\\\"/usr/libexec/s2i/run\\\"]\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713720102Z\",\"created_by\":\"/bin/sh -c #(nop) LABEL \\\"io.openshift.build.image\\\"=\\\"docker.io/openshift/test-build-simples2i:latest\\\" \\\"io.openshift.build.source-location\\\"=\\\"/tmp/build/inputs\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.71381442Z\",\"created_by\":\"/bin/sh -c #(nop) ENV OPENSHIFT_BUILD_NAME=\\\"s2i-build-quota-1\\\" OPENSHIFT_BUILD_NAMESPACE=\\\"e2e-test-s2i-build-quota-bcmtz\\\" BUILD_LOGLEVEL=\\\"6\\\"\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:31.713858513Z\",\"created_by\":\"/bin/sh -c #(nop) USER root\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:58:50.607153849Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:3d40df0f26a2a84bd82b20cb1528ef1293e2f2f433a09af1c96e848385e3993c in /tmp/scripts \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:13.812302502Z\",\"created_by\":\"/bin/sh -c #(nop) COPY dir:27c0416a5c32000bb74b20af31a7ac7436609bbf1ed2b522647215ba6e584115 in /tmp/src \",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907540529Z\",\"created_by\":\"/bin/sh -c chown -R 1001:0 /tmp/scripts /tmp/src\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:30.907625199Z\",\"created_by\":\"/bin/sh -c #(nop) USER 1001\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.60834609Z\",\"created_by\":\"/bin/sh -c /tmp/scripts/assemble\",\"empty_layer\":true},{\"created\":\"2019-12-24T06:59:56.609018387Z\",\"created_by\":\"/bin/sh -c #(nop) CMD /usr/libexec/s2i/run\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="Docker v2s2 manifest = {\"schemaVersion\":2,\"mediaType\":\"application/vnd.docker.distribution.manifest.v2+json\",\"config\":{\"mediaType\":\"application/vnd.docker.container.image.v1+json\",\"size\":4319,\"digest\":\"sha256:4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10\"},\"layers\":[{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":1415680,\"digest\":\"sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead\"},{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":5120,\"digest\":\"sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2\"},{\"mediaType\":\"application/vnd.docker.image.rootfs.diff.tar\",\"size\":10240,\"digest\":\"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\"}]}"
    time="2019-12-24T06:59:56Z" level=debug msg="starting to read from image \"containers-storage:test-build-simples2i-working-container\" using blob cache in \"/var/cache/blobs\" (compression=0)"
    time="2019-12-24T06:59:56Z" level=debug msg="finished reading from image \"containers-storage:test-build-simples2i-working-container\" using blob cache: cache had 0 hits, 1 misses, 0 errors"
    time="2019-12-24T06:59:56Z" level=debug msg="Skipping blob sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead (already present):"
    Copying blob sha256:683f499823be212bf04cb9540407d8353803c25d0d9eb5f2fdb62786d8b95ead
    time="2019-12-24T06:59:57Z" level=debug msg="Skipping blob sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2 (already present):"
    Copying blob sha256:7dd15ca0a0cc32cc3070771a31d9711cd5b8ec82be375cb07d027eb8335ec8c2
    time="2019-12-24T06:59:57Z" level=debug msg="reading layer \"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\""
    Copying blob sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870
    time="2019-12-24T06:59:57Z" level=debug msg="No compression detected"
    time="2019-12-24T06:59:57Z" level=debug msg="Using original blob without modification"
    time="2019-12-24T06:59:57Z" level=debug msg="added blob \"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\" to the cache at \"/var/cache/blobs\""
    time="2019-12-24T06:59:57Z" level=debug msg="finished reading layer \"sha256:c982822ae319d2f4eba86f63674d670f00ac0fa8573073913af2d0ea09a4e870\""
    Copying config sha256:4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10
    time="2019-12-24T06:59:57Z" level=debug msg="No compression detected"
    time="2019-12-24T06:59:57Z" level=debug msg="Using original blob without modification"
    time="2019-12-24T06:59:57Z" level=debug msg="added blob \"sha256:4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10\" to the cache at \"/var/cache/blobs\""
    Writing manifest to image destination
    Storing signatures
    time="2019-12-24T06:59:57Z" level=debug msg="Applying tar in /var/lib/containers/storage/overlay/ab1f77293e11627a23aa3a82d3376d4dbdcc3c1022dee62eb88ae0e1dfff765a/diff"
    time="2019-12-24T07:00:00Z" level=debug msg="setting image creation date to 2019-12-24 06:59:56.609018387 +0000 UTC"
    time="2019-12-24T07:00:00Z" level=debug msg="created new image ID \"4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10\""
    time="2019-12-24T07:00:00Z" level=debug msg="set names of image \"4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10\" to [temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195]"
    time="2019-12-24T07:00:00Z" level=debug msg="saved image metadata \"{\\\"signatures-sizes\\\":{\\\"sha256:89fe623bffacf2ff09aa3f0c9e656230917e57647256560c313c5e97ec979b61\\\":[]}}\""
    time="2019-12-24T07:00:00Z" level=debug msg="finished reading from image \"containers-storage:test-build-simples2i-working-container\" using blob cache: cache had 0 hits, 3 misses, 0 errors"
    time="2019-12-24T07:00:00Z" level=debug msg="finished writing to image \"containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]temp.builder.openshift.io/e2e-test-s2i-build-quota-bcmtz/s2i-build-quota-1:1911a195\" using blob cache"
    4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10
    4f39dbf90dff7953da652f122c7c7bfb0bbf057a22dbd10f90c320a465d63c10
    I1224 07:00:00.603437       1 round_trippers.go:443] GET https://172.30.0.1:443/apis/build.openshift.io/v1/namespaces/e2e-test-s2i-build-quota-bcmtz/builds/s2i-build-quota-1 200 OK in 89 milliseconds
    I1224 07:00:00.616968       1 round_trippers.go:443] PUT https://172.30.0.1:443/apis/build.openshift.io/v1/namespaces/e2e-test-s2i-build-quota-bcmtz/builds/s2i-build-quota-1/details 200 OK in 12 milliseconds
    Build complete, no image push requested
to contain substring
    <string>: MEMORYSWAP=419430400

Comment 10 wewang 2019-12-24 07:53:56 UTC
steps:

 1. make WHAT=cmd/openshift-tests
 2. openshift-tests run-test "[Feature:Builds][Conformance] s2i build with a quota  Building from a template should create an s2i build with a quota and run it [Suite:openshift/conformance/parallel/minimal]"

Comment 11 Peter Hunt 2020-01-02 21:25:00 UTC
Wen,

the MEMORYSWAP check is not part of this bug. That is part of the buildah issue above, where the MEMORY=* check was fixed by a change in CRI-O.

Comment 12 wewang 2020-01-03 07:02:50 UTC
@Peter Hunt will verify the bug and reported a new bug: https://bugzilla.redhat.com/show_bug.cgi?id=1787506 about the MEMORYSWAP issue.

Comment 13 wewang 2020-01-03 07:06:53 UTC
FYi, could you let DEV to merge https://github.com/openshift/origin/pull/24174 to enable the test again, since it already passed in my local test.

Comment 18 errata-xmlrpc 2020-01-23 11:08:59 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-2020:0062


Note You need to log in before you can comment on or make changes to this bug.