Great and if it again works on older CentOS then please try to update your
alpine to latest version.

I am sure then it will start working on latest CentOS too.

We recently faced similar issue with elasticsearch 7 and then it got fixed
after we updated Alpin.

On Sat, 5 Dec 2020, 19:06 Mohan, <[email protected]> wrote:

> Acutally have tried with Ubuntu-16.04-LTS image aswell even in that also
> same issue.
>
> Sure next will try with K8s host's native OS CentOS- 7.8(It was working
> earlier).
>
> On Sat, 5 Dec 2020, 6:45 pm Ujjawal Khare, <[email protected]>
> wrote:
>
> The issue may be because of kernel version. Old alpine seems to be having
>> issue with it.
>>
>> Can you try same on an older version of CentOS..?
>>
>> Or try to use latest version of alpine.
>>
>> Regards,
>> Ujjawal
>>
>> On Sat, 5 Dec 2020, 09:19 Mk, <[email protected]> wrote:
>>
>>> *Environment: *
>>> Jenkins - Version 2.235.5 <https://jenkins.io/> (LTS)
>>> Kubernetes Jenkins Plugin - 1.27.7
>>> <http://dpi-jenkins/jenkins/pluginManager/plugin/kubernetes/thirdPartyLicenses>
>>>
>>> *K8s-Master & Worker Server Details:- *
>>> OS - CentOS Linux release 7.9.2009 (Core) & Kernal -
>>> 3.10.0-1160.6.1.el7.x86_64
>>> Docker Version - 19.03.12
>>> Client Version: v1.19.0
>>> Server Version: v1.19.0
>>>
>>> I am trying to mount a *hostPathVolume *through Jenkins
>>> Kubernetes-plugin *podTemplate *and when the pod gets kicked off via
>>> Jenkins master the path of my K8s worker not getting mounted on K8s
>>> pods(Jenkins Agent).
>>>
>>> I have the below podTemplate
>>>
>>> podTemplate(containers: [
>>> containerTemplate(name: 'build', image: 'alpine/git', ttyEnabled: true,
>>> command: 'cat'),
>>> containerTemplate(name: 'test', image: 'maven:3.3.9-jdk-8-alpine',
>>> command: 'cat', ttyEnabled: true),
>>> ],
>>> volumes: [
>>> hostPathVolume(mountPath: '/home/jenkins', hostPath:
>>> '/test-vol/abc/workspace'),
>>> ]
>>> ) {
>>> node ("jenkins-node") {
>>> stage('Code Checkout') {
>>> checkout([$class: 'GitSCM', branches: [[name: '*/master']],
>>> doGenerateSubmoduleConfigurations: false, extensions: [[$class:
>>> 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false,
>>> timeout: 120]], submoduleCfg: [], userRemoteConfigs: [[url:
>>> 'ssh://userid@gerrit-server:29418/abc/repository']]])
>>> }
>>> }
>>> node(POD_LABEL) {
>>> stage('Build') {
>>> container('build') {
>>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>>> mvn clean install'''
>>> }
>>> stage('Test') {
>>> container('test') {
>>> sh label: '', script: '''cd /home/jenkins/Jenkins_Job/project/src/
>>> mvn test'''
>>> }
>>> }
>>> }
>>> }
>>> }
>>> I expect the volume to be mounted in my pod, I have tried with *K8s
>>> v1.19.4* and *Kubernetes Jenkins Plugin - 1.27.0* but same result. Not
>>> sure what is causing the problem on *CentOS-7.9* K8s. Whereas the same
>>> is working perfectly on *CentOS - 8.2.2004 (Core) &
>>> 4.18.0-193.14.2.el8_2.x86_64 kernal. *
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/73c67b12-bea5-4e9b-b51a-0acf83f1bd76n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/73c67b12-bea5-4e9b-b51a-0acf83f1bd76n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjK%2BSgtKV28mko9YOCY4dFZoytmwxdKPorRTWMcQ7oRuw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmjK%2BSgtKV28mko9YOCY4dFZoytmwxdKPorRTWMcQ7oRuw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CA%2B4Hw5bTn%2BUmgenD%3DRJ3YFf0GP1WY78unWKXii4y8kFQPi75Tw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2B4Hw5bTn%2BUmgenD%3DRJ3YFf0GP1WY78unWKXii4y8kFQPi75Tw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAEVfYmhLeEg_yT_dyEGEiSQkAAG43ZAUY0RzjAaC%2BgKE_4nDbw%40mail.gmail.com.

Reply via email to