Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Containers being spawned #53

Closed
djl197 opened this issue Jul 4, 2014 · 6 comments
Closed

No Containers being spawned #53

djl197 opened this issue Jul 4, 2014 · 6 comments

Comments

@djl197
Copy link

djl197 commented Jul 4, 2014

All,

Just started to play with this.
I have a Jenkins Master with the plugin installed.
I set it up to point at another machine as a docker host.
I run Test Connection and it reports version 1.0.1.

I setup a cloud with the ID set to:
localhost:5000/jenkins_slave

On the remote machine - This can be seen (docker images)
I setup the access, home dir etc and limit it to 8 instances.

I have a single slave setup, and I was expecting that any subsequent jobs would trigger the creation of a docker container.
However this is not happening.

Under the 'System Configuration->Docker' it shows the image is available with no running containers.

I have enabled debug (System Logs)
com.nirima.jenkins.plugins.docker Set to ALL

But this just confirms connections are made:
Jul 04, 2014 11:32:45 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud connect
Building connection to docker host Grass URL http://grass.DOMAIN:4243
Jul 04, 2014 11:32:46 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud connect
Building connection to docker host Grass URL http://grass.DOMAIN:4243
Jul 04, 2014 11:32:46 AM INFO com.nirima.jenkins.plugins.docker.DockerCloud connect
Building connection to docker host Grass URL http://grass.DOMAIN:4243

Any ideas on why nothing much seems to be happening - and why the debug is not very verbose?

@thomassuckow
Copy link
Contributor

Sounds a lot like #50

@thomassuckow
Copy link
Contributor

Are you still having problems with this? I believe this is actually Jenkins "NodeProvisioner" deciding there is not enough work to be done to justify spinning up a cloud slave. Make sure the build has completely succeeded/failed once and see if the next time it will spin up Docker slaves.

@djl197
Copy link
Author

djl197 commented Jul 16, 2014

Yes - if I specify a specific label then Jenkins spins up my container.
If I use the same labels as everything else it seems that Jenkins is very reluctant to spin up a container.
Even sometimes appearing to refuse to spin one up even when all 'physical' slaves are busy.

@thomassuckow
Copy link
Contributor

I am curious what the queue length looks like in the Load Statistics screen. Based on what I have read, Jenkins should try to spin up a slave if it is greater than 1, but it is also dampened to prevent spinning up slaves for a single job if it can avoid it.

If Jenkins does want to spin one up and the docker plugin says it has a compatible container, it will be logged as "Excess workload" just before attempting to start a container (which may fail if it is at the limit).

@KostyaSha
Copy link
Member

Is it still actual?

@KostyaSha
Copy link
Member

Closed by mistake 😃 but feel free to reopen if issue is still valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants