[JIRA] (JENKINS-60623) Failed to count the # of live instances on Kubernetes after upgrade to 1.22.3 for slaves with multiple labes

6 views
Skip to first unread message

filipbrychta@gmail.com (JIRA)

unread,
Jan 2, 2020, 5:36:03 AM1/2/20
to jenkinsc...@googlegroups.com
Filip Brychta created an issue
 
Jenkins / Bug JENKINS-60623
Failed to count the # of live instances on Kubernetes after upgrade to 1.22.3 for slaves with multiple labes
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: jenkins_err.log
Components: kubernetes-plugin
Created: 2020-01-02 10:35
Environment: Jenkins ver. 2.204.1
kubernetes-plugin 1.22.3
OpenShift Master:
    v3.11.104
Kubernetes Master:
    v1.11.0+d4cacc0
Priority: Major Major
Reporter: Filip Brychta

After upgrade to 1.22.3 from 1.21.3 no new slave pods were created and following exception was visible in the log:

2020-01-01 09:23:16.158+0000 [id=48] WARNING o.c.j.p.k.KubernetesCloud#provision: Failed to count the # of live instances on Kubernetes
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://b22.jonqe.lab.eng.bos.redhat.com:8443/api/v1/namespaces/jenkins-slaves/pods?labelSelector=jenkins%3Dslave%2Cjenkins%2Flabel%3Dkiali-build%20golang%20nodejs%20yarn. Message: found 'golang', expected: ',' or 'end of string'. Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=found 'golang', expected: ',' or 'end of string', metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).

Looks like the new plugin version is using spaces between labels in the API call but OpenShift API expects commas.

Full exception is attached.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

srberube@gmail.com (JIRA)

unread,
Jan 8, 2020, 11:59:03 AM1/8/20
to jenkinsc...@googlegroups.com
Steve Berube commented on Bug JENKINS-60623
 
Re: Failed to count the # of live instances on Kubernetes after upgrade to 1.22.3 for slaves with multiple labes

Can confirm the same issue

2020-01-08 16:54:02.768+0000 [id=59] WARNING o.c.j.p.k.KubernetesCloud#provision: Failed to count the # of live instances on Kubernetes2020-01-08 16:54:02.768+0000 [id=59] WARNING o.c.j.p.k.KubernetesCloud#provision: Failed to count the # of live instances on Kubernetesio.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://hcm-cicd.hpeswlab.net:8443/api/v1/namespaces/cicd/pods?labelSelector=jenkins%3Dslave%2Cjenkins%2Flabel%3Ddeployment%20maven%20nodejs%20python%20aujas%20seleniumgrid. Message: found 'maven', expected: ',' or 'end of string'. Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=found 'maven', expected: ',' or 'end of string', metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).

vincent@latombe.net (JIRA)

unread,
Jan 24, 2020, 9:28:02 AM1/24/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages