Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4833

[release-4.12] openshift4/ose-jenkins:v4.10.0 run script throws too many arguments error

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13, 4.12, 4.11, 4.10
    • Jenkins
    • Moderate
    • None
    • Build + Jenkins Sprint 231
    • 1
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-4819. The following is the description of the original issue:
      โ€”
      Description of problem:

      s2i/run script has a bug - /usr/libexec/s2i/run: line 578: [: too many arguments

      Version-Release number of selected component (if applicable):

      v4.10

      How reproducible:

      Start jenkins from the container image using /usr/libexec/s2i/run while having a route that contains a certificate or key that includes special characters.

      Steps to Reproduce:

      1. create a route that contains a TLS certificate
      2. start a pod using openshift4/ose-jenkins:v4.10.0
      3. view the log
      

      Actual results:

      2022/12/12 17:30:33 [go-init] No pre-start command defined, skip
      2022/12/12 17:30:33 [go-init] Main command launched : /usr/libexec/s2i/run
      CONTAINER_MEMORY_IN_MB='12288', using /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el8_4.x86_64/bin/java and /usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el8_4.x86_64/bin/javac
      Administrative monitors that contact the update center will remain active
      Migrating slave image configuration to current version tag ...
      /usr/libexec/s2i/run: line 578: [: too many arguments
      Using JENKINS_SERVICE_NAME=jenkins
      Generating jenkins.model.JenkinsLocationConfiguration.xml using (/var/lib/jenkins/jenkins.model.JenkinsLocationConfiguration.xml.tpl) ...
      Jenkins URL set to: https://bojenkinsdev.micron.com/ in file: /var/lib/jenkins/jenkins.model.JenkinsLocationConfiguration.xml
      + exec java -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+ParallelRefProcEnabled -XX:+UseG1GC -XX:+UseStringDeduplication -XX:HeapDumpPath=/var/log/jenkins/ '-Xlog:gc*=debug:file=/var/log/jenkins-engserv/gc-%t.log:utctime:filecount=2,filesize=100m' -Xms2g -Xmx8g -Dfile.encoding=UTF8 -Djavamelody.displayed-counters=log,error -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties -Djavax.net.ssl.trustStore=/var/lib/jenkins/ca-anchors-keystore -Dcom.redhat.fips=false -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes= -Duser.home=/var/lib/jenkins -Djavamelody.application-name=jenkins -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true -Djenkins.install.runSetupWizard=false -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=false -XX:+AlwaysPreTouch -XX:ErrorFile=/var/log/jenkins-engserv -Dhudson.model.ParametersAction.keepUndefinedParameters=false -jar /usr/lib/jenkins/jenkins.war --prefix=/je...
      Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
      

      Expected results:

      not have the following error:
      /usr/libexec/s2i/run: line 578: [: too many arguments

      Additional info:

       

            [OCPBUGS-4833] [release-4.12] openshift4/ose-jenkins:v4.10.0 run script throws too many arguments error

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: Jenkins and Jenkins-2-plugins security update), 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-2024:0778

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: Jenkins and Jenkins-2-plugins security update), 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-2024:0778

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Release of Bug Advisories for the OpenShift Jenkins and Jenkins agent base image), 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-2023:6174

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Release of Bug Advisories for the OpenShift Jenkins and Jenkins agent base image), 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-2023:6174

            Corey Daley added a comment -

            jitensingh Please verify this one

            Corey Daley added a comment - jitensingh Please verify this one

            CPaaS Service Account mentioned this issue in a merge request of ocp-tools / Jenkins Agent Base on branch ocp-tools-4.12-rhel-8_upstream_dcbdf893c3337922fbcfdbf86a0e010f:

            Updated US source to: b8ea642 Merge pull request #1542 from openshift-cherrypick-robot/cherry-pick-1541-to-release-4.12

            GitLab CEE Bot added a comment - CPaaS Service Account mentioned this issue in a merge request of ocp-tools / Jenkins Agent Base on branch ocp-tools-4.12-rhel-8_ upstream _dcbdf893c3337922fbcfdbf86a0e010f : Updated US source to: b8ea642 Merge pull request #1542 from openshift-cherrypick-robot/cherry-pick-1541-to-release-4.12

            CPaaS Service Account mentioned this issue in a merge request of ocp-tools / Jenkins 2 on OpenShift on branch ocp-tools-4.12-rhel-8_upstream_dcbdf893c3337922fbcfdbf86a0e010f:

            Updated US source to: b8ea642 Merge pull request #1542 from openshift-cherrypick-robot/cherry-pick-1541-to-release-4.12

            GitLab CEE Bot added a comment - CPaaS Service Account mentioned this issue in a merge request of ocp-tools / Jenkins 2 on OpenShift on branch ocp-tools-4.12-rhel-8_ upstream _dcbdf893c3337922fbcfdbf86a0e010f : Updated US source to: b8ea642 Merge pull request #1542 from openshift-cherrypick-robot/cherry-pick-1541-to-release-4.12

              rhn-support-cdaley Corey Daley
              openshift-crt-jira-prow OpenShift Prow Bot
              Jitendar Singh Jitendar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: