Bug 1473538
Summary: | Failed to deploy jenkins pod on an Overlay2 openshift cluster | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Dongbo Yan <dyan> |
Component: | Containers | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED ERRATA | QA Contact: | DeShuai Ma <dma> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 3.6.0 | CC: | aos-bugs, aos-storage-staff, bparees, dyan, eparis, jhonce, jokerman, jsafrane, mmccomas, xxia |
Target Milestone: | --- | Keywords: | Regression |
Target Release: | 3.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: |
undefined
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-11-28 22:05:05 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: | |||
Bug Depends On: | 1469661 | ||
Bug Blocks: |
Description
Dongbo Yan
2017-07-21 06:45:26 UTC
This is definitely not Kubernetes problem. On openshift-127.lab.sjc.redhat.com (cluster A node) this fails: $ docker run -ti -e OPENSHIFT_ENABLE_OAUTH=true -e OPENSHIFT_ENABLE_REDIRECT_PROMPT=true -e OPENSHIFT_JENKINS_JVM_ARCH=i386 -e KUBERNETES_MASTER=https://kubernetes.default:443 -e KUBERNETES_TRUST_CERTIFICATES=true -e JNLP_SERVICE_NAME=jenkins-jnlp brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/jenkins-2-rhel7@sha256:eaa6f51c632f7efe4b21181790126cf8dc6a25db5a0ad2628725ee9970e10908 OPENSHIFT_JENKINS_JVM_ARCH is set to i386 so using 32 bit Java Error: dl failure on line 893 Error: failed /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.i386/jre/lib/i386/server/libjvm.so, because /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.i386/jre/lib/i386/server/libjvm.so: cannot restore segment prot after reloc: Permission denied On openshift-120.lab.sjc.redhat.com (cluster B node), it succeeds: OPENSHIFT_JENKINS_JVM_ARCH is set to i386 so using 32 bit Java Generating kubernetes-plugin configuration (/opt/openshift/configuration/config.xml.tpl) ... Copying Jenkins configuration to /var/lib/jenkins ... Copying 49 Jenkins plugins to /var/lib/jenkins ... Creating initial Jenkins 'admin' user ... Running from: /usr/lib/jenkins/jenkins.war Note to whomever is investigating this that using the x86_64 JVM seems to work ok with that same image (the image contains both JVMs). > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.i386/jre/lib/i386/ > server/libjvm.so, because > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.i386/jre/lib/i386/ > server/libjvm.so: cannot restore segment prot after reloc: Permission denied > mkdir: cannot create directory ‘/var/lib/jenkins/logs’: File exists > Detected password environment variable change, updating Jenkins > configuration ... > Error: dl failure on line 893 > Error: failed > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.i386/jre/lib/i386/ > server/libjvm.so, because > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.i386/jre/lib/i386/ > server/libjvm.so: cannot restore segment prot after reloc: Permission denied This looks more like a container-selinux issue that we just fixed recently. https://bugzilla.redhat.com/show_bug.cgi?id=1469661 You can confirm it by updating the package to container-selinux-2.21-1.el7.noarch and retry it. After updating to container-selinux-2.21-1.el7.noarch on cluster node, I can deploy jenkins pod successfully Thanks for caiqian's help 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-2017:3188 |