question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.1.1 Docker containers are spawend too late

See original GitHub issue
  • [1.1.1] docker-plugin version you use
  • [ 2.98.1] jenkins version you use
  • [ 17.05.0-ce] docker engine version you use

When new slave/docker container is spawned I see: Dec 13, 2017 5:16:38 PM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Asked to provision 1 slave(s) for: label_name Dec 13, 2017 5:16:38 PM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Will provision 'image_name', for label: 'label_name', in cloud: 'cloud_name' Dec 13, 2017 5:16:38 PM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave

And as results I see successfully provisioned slave. But sometimes I see some new jobs waiting in queue, which should be executed on labels releated with dockers, but new slaves are not provisioned. Jobs waiting in that shape even about 10minutes. I dont see in logs(at this time) any new entrys from com.nirima.jenkins.plugins.docker

Edit: I enabled some more logs and i see: Dec 13, 2017 6:08:16 PM FINEST io.jenkins.docker.FastNodeProvisionerStrategy applyFoCloud Available executors=0, connecting=0, planned=10 Dec 13, 2017 6:08:16 PM FINE io.jenkins.docker.FastNodeProvisionerStrategy applyFoCloud Available capacity=10, currentDemand=7 Dec 13, 2017 6:08:16 PM FINE io.jenkins.docker.FastNodeProvisionerStrategy applyFoCloud Provisioning completed

My question is why planned value is so high and what does it mean? Looks like capacity is sum of (executors, connecting and planned) and new slaves are spawned only when capacity< currentDemand

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sporkisfastercommented, Jan 10, 2018

Still having this issue. Getting Jenkins doesn’t have label testslave in any job configuration in jenkins. Tried pipeline, freestyle, etc. Tried SSH injection, manually pasting the key, JNLP, etc. Made sure there were no leading spaces in the label name. Not sure what’s going on.

Jenkins: v 2.100 Docker plugin 1.1.2 Version = 17.07.0-ce, API Version = 1.31

1reaction
pjdartoncommented, May 30, 2018

@missedone FYI the provisioning failure mentioned there is also logged in the logs. …and the next release has better help text for this feature, plus the ability to configure how long Jenkins remembers these errors for.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Engine release notes
This feature was marked deprecated in (#21666) Docker 1.9, but was decided to be too much of a backward-incompatible change, so it was...
Read more >
How to force Docker for a clean build of an image
The cache shows that aerospike is installed. However, I don't find it inside containers spawn from this image, so I want to rebuild...
Read more >
The Docker Handbook – Learn Docker for Beginners
Upload custom Docker Images to online registries; Work with multiple containers using Docker Compose. Prerequisites. Familiarity with the Linux ...
Read more >
kubespawner 1.1.2 documentation
Each server spawned by a user will have its own KubeSpawner instance. allow_privilege_escalation c. ... Docker image to use for spawning user's containers....
Read more >
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
A complete introduction to Docker. Learn how to Dockerize a Node.js and run manage multiple containers with Docker Compose.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found