Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66166

Jenkins 2.289.2 版本的jenkins-slava 主动请求master主节点连接超时, 构建失败

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: kubernetes-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.289.2版本
      centos7 环境
    • Similar Issues:

      Description

      一些配置在jenkins2.278版本上使用没问题。

      //Dockerfile
      FROM nipsuli/docker-jnlp-slave-kubectl
      MAINTAINER DUKANG <@163.COM>
      ENV MAVEN_VERSION=3.6.3
      USER root
      COPY apache-maven-3.6.3-bin.tar.gz .
      RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
      rm -f apache-maven-3.6.3-bin.tar.gz && \
      ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
      ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
      mkdir -p /usr/local/apache-maven/repo
      COPY settings.xml /usr/local/apache-maven/conf/settings.xml
      RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
      COPY jdk-8u291-linux-x64.tar.gz .
      RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
      rm -f jdk-8u291-linux-x64.tar.gz
      # 设置JAVA环境变量
      ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
      ENV JRE_HOME ${JAVA_HOME}/jre
      ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
      ENV PATH ${JAVA_HOME}/bin:$PATH
      # 设置MAVEN环境变量
      ENV MAVEN_HOME /usr/local/apache-maven
      ENV PATH ${MAVEN_HOME}/bin:$PATH符
      

       

       

       

      Jenkins 2.289.2版本上 报错 如下

      kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkins

      我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

       

       

       

        Attachments

          Activity

          jenkins2021 jenkins2021 created issue -
          jenkins2021 jenkins2021 made changes -
          Field Original Value New Value
          Summary Jenkins 2.289.2 版本的jenkins-slava 无法主动请求master主节点,导致连接超时 Jenkins 2.289.2 版本的jenkins-slava 主动请求master主节点,连接超时 构建失败
          jenkins2021 jenkins2021 made changes -
          Summary Jenkins 2.289.2 版本的jenkins-slava 主动请求master主节点,连接超时 构建失败 Jenkins 2.289.2 版本的jenkins-slava 主动请求master主节点连接超时, 构建失败
          jenkins2021 jenkins2021 made changes -
          Description 一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
          !image-2021-07-18-19-41-23-032.png|width=358,height=184!

           

           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我安装下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
          !image-2021-07-18-19-41-23-032.png|width=358,height=184!

           

           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          jenkins2021 jenkins2021 made changes -
          Description 一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
          !image-2021-07-18-19-41-23-032.png|width=358,height=184!

           

           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkin

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          jenkins2021 jenkins2021 made changes -
          Description 一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkin

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkins

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-20-48-540.png [ 55205 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-20-48-489.png [ 55206 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-21-32-235.png [ 55207 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-21-32-278.png [ 55208 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-23-00-998.png [ 55209 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-23-00-934.png [ 55210 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-23-50-510.png [ 55211 ]
          jenkins2021 jenkins2021 made changes -
          Attachment image-2021-07-18-20-23-50-454.png [ 55212 ]
          jenkins2021 jenkins2021 made changes -
          Description 一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkins

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           
          一些配置在jenkins2.278版本上使用没问题。
          {code:java}
          //Dockerfile
          FROM nipsuli/docker-jnlp-slave-kubectl
          MAINTAINER DUKANG <@163.COM>
          ENV MAVEN_VERSION=3.6.3
          USER root
          COPY apache-maven-3.6.3-bin.tar.gz .
          RUN tar -zxf apache-maven-3.6.3-bin.tar.gz -C /usr/local && \
          rm -f apache-maven-3.6.3-bin.tar.gz && \
          ln -s /usr/local/apache-maven-3.6.3/bin/mvn /usr/local/bin/mvn && \
          ln -s /usr/local/apache-maven-3.6.3 /usr/local/apache-maven && \
          mkdir -p /usr/local/apache-maven/repo
          COPY settings.xml /usr/local/apache-maven/conf/settings.xml
          RUN mkdir -p /var/jenkins_home/jdk1.8.0_291
          COPY jdk-8u291-linux-x64.tar.gz .
          RUN tar -zxf jdk-8u291-linux-x64.tar.gz -C /var/jenkins_home && \
          rm -f jdk-8u291-linux-x64.tar.gz
          # 设置JAVA环境变量
          ENV JAVA_HOME /var/jenkins_home/jdk1.8.0_291
          ENV JRE_HOME ${JAVA_HOME}/jre
          ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
          ENV PATH ${JAVA_HOME}/bin:$PATH
          # 设置MAVEN环境变量
          ENV MAVEN_HOME /usr/local/apache-maven
          ENV PATH ${MAVEN_HOME}/bin:$PATH符
          {code}
           

          !image-2021-07-18-20-20-48-540.png|width=610,height=313!

          !image-2021-07-18-20-21-32-278.png|width=590,height=142!

          !image-2021-07-18-20-23-00-934.png|width=415,height=149!

           

          !image-2021-07-18-20-23-50-454.png|width=641,height=247!

           

          在[Jenkins 2.289.|https://jenkins.io/]2版本上 报错 如下

          kubectl logs jnlp-slave-d8sf6 -c jnlp -n jenkins

          !image-2021-07-18-19-43-28-890.png|width=612,height=264!

          我做下面处理可以,感觉这个是不是少了什么,不能请求成功?还是版本变化 做了改动?

          !image-2021-07-18-19-46-08-300.png|width=202,height=70!

           

          !image-2021-07-18-19-49-20-295.png|width=629,height=255!

           

           

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jenkins2021 jenkins2021
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: