|
[ |
|
{ |
|
"Id": "1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac", |
|
"Created": "2022-05-02T20:48:21.078644068+08:00", |
|
"Path": "/var/jenkins_home/workspace/eap-7.4.x-testsuite/hera/wait.sh", |
|
"Args": [ |
|
"/var/jenkins_home/workspace/eap-7.4.x-testsuite/hera/wait.sh" |
|
], |
|
"State": { |
|
"OciVersion": "1.0.2-dev", |
|
"Status": "running", |
|
"Running": true, |
|
"Paused": false, |
|
"Restarting": false, |
|
"OOMKilled": false, |
|
"Dead": false, |
|
"Pid": 7632, |
|
"ConmonPid": 7619, |
|
"ExitCode": 0, |
|
"Error": "", |
|
"StartedAt": "2022-05-02T20:48:21.288271319+08:00", |
|
"FinishedAt": "0001-01-01T00:00:00Z", |
|
"Healthcheck": { |
|
"Status": "", |
|
"FailingStreak": 0, |
|
"Log": null |
|
} |
|
}, |
|
"Image": "bfebb38e834973abcdd7928c858b36c7b1f2540f409ce440671bb6237bdbe03f", |
|
"ImageName": "localhost/automatons:latest", |
|
"Rootfs": "", |
|
"Pod": "", |
|
"ResolvConfPath": "/run/user/1000/containers/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/resolv.conf", |
|
"HostnamePath": "/run/user/1000/containers/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/hostname", |
|
"HostsPath": "/run/user/1000/containers/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/hosts", |
|
"StaticDir": "/home/jenkins/.local/share/containers/storage/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata", |
|
"OCIConfigPath": "/home/jenkins/.local/share/containers/storage/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/config.json", |
|
"OCIRuntime": "runc", |
|
"ConmonPidFile": "/run/user/1000/containers/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/conmon.pid", |
|
"PidFile": "/run/user/1000/containers/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/pidfile", |
|
"Name": "automaton-slave-eap-7.4.x-testsuite-19", |
|
"RestartCount": 0, |
|
"Driver": "overlay", |
|
"MountLabel": "system_u:object_r:container_file_t:s0:c334,c907", |
|
"ProcessLabel": "system_u:system_r:container_t:s0:c334,c907", |
|
"AppArmorProfile": "", |
|
"EffectiveCaps": null, |
|
"BoundingCaps": [ |
|
"CAP_CHOWN", |
|
"CAP_DAC_OVERRIDE", |
|
"CAP_FOWNER", |
|
"CAP_FSETID", |
|
"CAP_KILL", |
|
"CAP_NET_BIND_SERVICE", |
|
"CAP_NET_RAW", |
|
"CAP_SETFCAP", |
|
"CAP_SETGID", |
|
"CAP_SETPCAP", |
|
"CAP_SETUID", |
|
"CAP_SYS_CHROOT" |
|
], |
|
"ExecIDs": [ |
|
"cd38093eb72bc4947e6a09a297cd767ec49ef26cac452b2839d7c47713cb0de6" |
|
], |
|
"GraphDriver": { |
|
"Name": "overlay", |
|
"Data": { |
|
"LowerDir": "/home/jenkins/.local/share/containers/storage/overlay/904c65c233abd3aa8ecbe08a1f3d6a4a4a7704abe47e673ffcea9030d082a9b8/diff:/home/jenkins/.local/share/containers/storage/overlay/930a368523e8d9ca054beac02aa2ec0009395486ab58c5a9d7646102e7a33601/diff:/home/jenkins/.local/share/containers/storage/overlay/ee494184ff635908355ff3828a5fdb21dae83f453bac2cdd4f147b315fbb75d2/diff:/home/jenkins/.local/share/containers/storage/overlay/1e4f5e9e1e495a879ebbb6c9c406a3b77016d74024d2d8ebdc4a56ee7434a580/diff:/home/jenkins/.local/share/containers/storage/overlay/5370b65977de2ed522b13ebaeca0fd41501f6eab2c55513c5d927594c2c253e4/diff:/home/jenkins/.local/share/containers/storage/overlay/93749af418e72b7f9d1998cdf41d4007dc27065fe4d79a3a05abf4bf274a2fac/diff", |
|
"MergedDir": "/home/jenkins/.local/share/containers/storage/overlay/5f2f3e72dd86114d232fed1d07a450bcb60c84c3d55123ed797c82941a8eb9a6/merged", |
|
"UpperDir": "/home/jenkins/.local/share/containers/storage/overlay/5f2f3e72dd86114d232fed1d07a450bcb60c84c3d55123ed797c82941a8eb9a6/diff", |
|
"WorkDir": "/home/jenkins/.local/share/containers/storage/overlay/5f2f3e72dd86114d232fed1d07a450bcb60c84c3d55123ed797c82941a8eb9a6/work" |
|
} |
|
}, |
|
"Mounts": [ |
|
{ |
|
"Type": "bind", |
|
"Source": "/opt", |
|
"Destination": "/opt", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": false, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/.m2", |
|
"Destination": "/var/jenkins_home/.m2/", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": true, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/.ssh", |
|
"Destination": "/var/jenkins_home/.ssh/", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": false, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/.gitconfig", |
|
"Destination": "/var/jenkins_home/.gitconfig", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": false, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/.netrc", |
|
"Destination": "/var/jenkins_home/.netrc", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": false, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/current/jobs/eap-7.4.x-build/builds/7/archive", |
|
"Destination": "/parent_job/", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": false, |
|
"Propagation": "rprivate" |
|
}, |
|
{ |
|
"Type": "bind", |
|
"Source": "/home/jenkins/current/workspace/eap-7.4.x-testsuite", |
|
"Destination": "/var/jenkins_home/workspace/eap-7.4.x-testsuite", |
|
"Driver": "", |
|
"Mode": "", |
|
"Options": [ |
|
"rbind" |
|
], |
|
"RW": true, |
|
"Propagation": "rprivate" |
|
} |
|
], |
|
"Dependencies": [], |
|
"NetworkSettings": { |
|
"EndpointID": "", |
|
"Gateway": "", |
|
"IPAddress": "", |
|
"IPPrefixLen": 0, |
|
"IPv6Gateway": "", |
|
"GlobalIPv6Address": "", |
|
"GlobalIPv6PrefixLen": 0, |
|
"MacAddress": "", |
|
"Bridge": "", |
|
"SandboxID": "", |
|
"HairpinMode": false, |
|
"LinkLocalIPv6Address": "", |
|
"LinkLocalIPv6PrefixLen": 0, |
|
"Ports": {}, |
|
"SandboxKey": "" |
|
}, |
|
"ExitCommand": [ |
|
"/usr/bin/podman", |
|
"--root", |
|
"/home/jenkins/.local/share/containers/storage", |
|
"--runroot", |
|
"/run/user/1000/containers", |
|
"--log-level", |
|
"warning", |
|
"--cgroup-manager", |
|
"cgroupfs", |
|
"--tmpdir", |
|
"/run/user/1000/libpod/tmp", |
|
"--runtime", |
|
"runc", |
|
"--storage-driver", |
|
"overlay", |
|
"--events-backend", |
|
"file", |
|
"container", |
|
"cleanup", |
|
"--rm", |
|
"1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac" |
|
], |
|
"Namespace": "", |
|
"IsInfra": false, |
|
"Config": { |
|
"Hostname": "1a2b19d89150", |
|
"Domainname": "", |
|
"User": "1000:1000", |
|
"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", |
|
"TERM=xterm", |
|
"container=oci", |
|
"HOME=/var/jenkins_home/", |
|
"HOSTNAME=1a2b19d89150" |
|
], |
|
"Cmd": [ |
|
"/var/jenkins_home/workspace/eap-7.4.x-testsuite/hera/wait.sh" |
|
], |
|
"Image": "localhost/automatons:latest", |
|
"Volumes": null, |
|
"WorkingDir": "/var/jenkins_home/workspace/eap-7.4.x-testsuite", |
|
"Entrypoint": "", |
|
"OnBuild": null, |
|
"Labels": { |
|
"architecture": "x86_64", |
|
"build-date": "2022-03-16T16:53:14.681638", |
|
"com.redhat.build-host": "cpt-1001.osbs.prod.upshift.rdu2.redhat.com", |
|
"com.redhat.component": "ubi8-container", |
|
"com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI", |
|
"description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.", |
|
"distribution-scope": "public", |
|
"io.buildah.version": "1.23.1", |
|
"io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.", |
|
"io.k8s.display-name": "Red Hat Universal Base Image 8", |
|
"io.openshift.expose-services": "", |
|
"io.openshift.tags": "base rhel8", |
|
"maintainer": "Red Hat, Inc.", |
|
"name": "ubi8", |
|
"release": "236.1647448331", |
|
"summary": "Provides the latest release of Red Hat Universal Base Image 8.", |
|
"url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.5-236.1647448331", |
|
"vcs-ref": "3aadd00326f3dd6cfe65ee31017ab98915fddb56", |
|
"vcs-type": "git", |
|
"vendor": "Red Hat, Inc.", |
|
"version": "8.5" |
|
}, |
|
"Annotations": { |
|
"io.container.manager": "libpod", |
|
"io.kubernetes.cri-o.Created": "2022-05-02T20:48:21.078644068+08:00", |
|
"io.kubernetes.cri-o.TTY": "false", |
|
"io.podman.annotations.autoremove": "TRUE", |
|
"io.podman.annotations.init": "FALSE", |
|
"io.podman.annotations.privileged": "FALSE", |
|
"io.podman.annotations.publish-all": "FALSE", |
|
"org.opencontainers.image.base.digest": "sha256:e2cbaf307f898bb43ad5e0b67bd9325c585d5e1890de0dfe7d4832d634abd39e", |
|
"org.opencontainers.image.base.name": "registry.access.redhat.com/ubi8/ubi:latest", |
|
"org.opencontainers.image.stopSignal": "15" |
|
}, |
|
"StopSignal": 15, |
|
"CreateCommand": [ |
|
"podman", |
|
"run", |
|
"--name", |
|
"automaton-slave-eap-7.4.x-testsuite-19", |
|
"--userns=keep-id", |
|
"-u", |
|
"1000:1000", |
|
"--add-host=olympus:10.88.0.1", |
|
"--rm", |
|
"-v", |
|
"/home/jenkins/current//jobs/eap-7.4.x-build/builds/7/archive:/parent_job/:ro", |
|
"--workdir", |
|
"/var/jenkins_home/workspace/eap-7.4.x-testsuite", |
|
"-v", |
|
"/home/jenkins/current/workspace/eap-7.4.x-testsuite:/var/jenkins_home/workspace/eap-7.4.x-testsuite:rw", |
|
"-v", |
|
"/opt:/opt:ro", |
|
"-v", |
|
"/home/jenkins/.m2/:/var/jenkins_home/.m2/:rw", |
|
"-v", |
|
"/home/jenkins/.ssh/:/var/jenkins_home/.ssh/:ro", |
|
"-v", |
|
"/home/jenkins/.gitconfig:/var/jenkins_home/.gitconfig:ro", |
|
"-v", |
|
"/home/jenkins/.netrc:/var/jenkins_home/.netrc:ro", |
|
"-d", |
|
"localhost/automatons", |
|
"/var/jenkins_home/workspace/eap-7.4.x-testsuite/hera/wait.sh" |
|
], |
|
"Umask": "0022", |
|
"Timeout": 0, |
|
"StopTimeout": 10 |
|
}, |
|
"HostConfig": { |
|
"Binds": [ |
|
"/opt:/opt:ro,rprivate,rbind", |
|
"/home/jenkins/.m2:/var/jenkins_home/.m2/:rw,rprivate,rbind", |
|
"/home/jenkins/.ssh:/var/jenkins_home/.ssh/:ro,rprivate,rbind", |
|
"/home/jenkins/.gitconfig:/var/jenkins_home/.gitconfig:ro,rprivate,rbind", |
|
"/home/jenkins/.netrc:/var/jenkins_home/.netrc:ro,rprivate,rbind", |
|
"/home/jenkins/current/jobs/eap-7.4.x-build/builds/7/archive:/parent_job/:ro,rprivate,rbind", |
|
"/home/jenkins/current/workspace/eap-7.4.x-testsuite:/var/jenkins_home/workspace/eap-7.4.x-testsuite:rw,rprivate,rbind" |
|
], |
|
"CgroupManager": "cgroupfs", |
|
"CgroupMode": "host", |
|
"ContainerIDFile": "", |
|
"LogConfig": { |
|
"Type": "k8s-file", |
|
"Config": null, |
|
"Path": "/home/jenkins/.local/share/containers/storage/overlay-containers/1a2b19d8915046a04773d7ac350c95d861bcb295d06e9ea2558178eaaa10a1ac/userdata/ctr.log", |
|
"Tag": "", |
|
"Size": "0B" |
|
}, |
|
"NetworkMode": "slirp4netns", |
|
"PortBindings": {}, |
|
"RestartPolicy": { |
|
"Name": "", |
|
"MaximumRetryCount": 0 |
|
}, |
|
"AutoRemove": true, |
|
"VolumeDriver": "", |
|
"VolumesFrom": null, |
|
"CapAdd": [], |
|
"CapDrop": [ |
|
"CAP_AUDIT_WRITE", |
|
"CAP_MKNOD" |
|
], |
|
"Dns": [], |
|
"DnsOptions": [], |
|
"DnsSearch": [], |
|
"ExtraHosts": [ |
|
"olympus:10.88.0.1" |
|
], |
|
"GroupAdd": [], |
|
"IpcMode": "private", |
|
"Cgroup": "", |
|
"Cgroups": "default", |
|
"Links": null, |
|
"OomScoreAdj": 0, |
|
"PidMode": "private", |
|
"Privileged": false, |
|
"PublishAllPorts": false, |
|
"ReadonlyRootfs": false, |
|
"SecurityOpt": [], |
|
"Tmpfs": {}, |
|
"UTSMode": "private", |
|
"UsernsMode": "private", |
|
"ShmSize": 65536000, |
|
"Runtime": "oci", |
|
"ConsoleSize": [ |
|
0, |
|
0 |
|
], |
|
"Isolation": "", |
|
"CpuShares": 0, |
|
"Memory": 0, |
|
"NanoCpus": 0, |
|
"CgroupParent": "", |
|
"BlkioWeight": 0, |
|
"BlkioWeightDevice": null, |
|
"BlkioDeviceReadBps": null, |
|
"BlkioDeviceWriteBps": null, |
|
"BlkioDeviceReadIOps": null, |
|
"BlkioDeviceWriteIOps": null, |
|
"CpuPeriod": 0, |
|
"CpuQuota": 0, |
|
"CpuRealtimePeriod": 0, |
|
"CpuRealtimeRuntime": 0, |
|
"CpusetCpus": "", |
|
"CpusetMems": "", |
|
"Devices": [], |
|
"DiskQuota": 0, |
|
"KernelMemory": 0, |
|
"MemoryReservation": 0, |
|
"MemorySwap": 0, |
|
"MemorySwappiness": 0, |
|
"OomKillDisable": false, |
|
"PidsLimit": 0, |
|
"Ulimits": [], |
|
"CpuCount": 0, |
|
"CpuPercent": 0, |
|
"IOMaximumIOps": 0, |
|
"IOMaximumBandwidth": 0, |
|
"CgroupConf": null |
|
} |
|
} |
|
] |
@gaol, since you are running on a cgroupv1 system, I think this problem can be worked around by running with
podman ... --cgroupns=private ...
See https://docs.podman.io/en/latest/markdown/podman-run.1.html
By default, if you don't use any memory settings, on a cgroupv1 system, podman puts the containerized process into the memory cgroup of the user on the host. Here's what I get:
Note that I used ssh to log onto the host U2110 and
/user.slice/user-1000.slice/session-3.scope
is the cgroup hierarchy used for this SSH session.I think in you case, you use one SSH session to create the container, but use another SSH session to launch the Java process. For some unknown reason, podman uses the hierarchy of the SSH session (instead of
/user.slice/user-1000.slice/[email protected]
in my case). This causes the JVM to fail.If you use
--cgroupns=private
, thecgroup
andmountinfo
should look like this and will make Java happy.