You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working on a very large pipeline (order hundreds of resources and jobs). To try and make this smooth, we have setup three workers on AWS and usually don't see more than 600 containers. However, we are fairly often seeing the error "insufficient subnets remaining in the pool".
This is not a great error message as it is unclear what the solution is. Would it be possible to improve the error or at least add a note to the man pages explaining a solution? After some searching, #235 might provide the solution for most people suffering this
Reacted by Alex, James Gillard, Andrew Thorburn, Johannes Rudolph, Shannon Conneilly and Md Tahsin Rahman
At the moment the error coming from Garden is just a string to us. We don't know if it's "insufficient subnets remaining in the pool" or "panic: everything is on fire". In order to provide a better message we'd need to know more about the error or even better we'd be able to use descriptive help text from the Garden error itself.
/cc @julz @willpragnell Could we get some rich Garden errors, pretty please? 😊
We are using the concourse standalone binary and running our concourse setup in docker containers with docker-compose. We frequently run into 'insufficient subnets in pool' error and have to restart concourse to resolve the issue.
Is there a way to increase the subnets limit for concourse standalone binary? Is there a way to tell concourse to not keep that many containers? We do not really have a lot of jobs and resources so running into a limit of 256 containers seems a bit strange.
Previously, everything was working fine, however, after going through some testing, the error message insufficient subnets remaining in the pool
has been popping up relentlessly. Running fly -t tag workers
shows me my containers are at 256 and this seems to be the max. I wonder why concourse isn't cleaning up after itself in this instance? My pipeline is fairly small (2 resources and a job) so I can't imagine these are all actually active containers. Any experience / insight?
Edit: Seems totally deleting the container fixed things, found it hanging around with docker ps -a , but I'm still confused as to how to prevent this from happening again. Is this just an issue with how concourse runs inside of containers themselves?
@vito seems like it, could you give me instructions / a link on how to check those? It seems the fly CLI only allows me to list the workers and their containers
We're also running into the issue on a near-constant basis.
Our setup at the moment is all on AWS with a m4.large running the web instance and an auto-scaling group of m4.larges running our workers. Unfortunately, this bug causes our jobs to fail well before our instances would ever trigger auto-scaling.
Attached is the log output from a worker, I've truncated it to a single occurrence but it does come up quite frequently. If you'd like more of the logs let me know. concourse-worker-293-truncated.log.zip
Worker logs are what is most useful when debugging this. Preferably large timespans of them, leading up to the issue, not just after. May want to eyeball them to make sure they don't contain sensitive info first.
Is there an easy way to clean up contains? After monitor restart or system reboot, I saw it rebuilt these containers in /var/vcap/data/garden/depot. Thanks.
I'm going to just close this issue as there's not a lot of actionable information and it's become kind of a dumping ground. Many issues have been fixed in the timespan that his issue has been open.
"Insufficient subnets" is akin to "out of memory" or "out of disk" - it's an error explaining the current state, not how it got there. It's something you could see even if everything is operating normally: you may just need more containers than your workers support. The resolution is the same as with any other resource limit - either scale up or look for evidence of a leak, e.g. failed container deletions, more containers existing than they should (fly containers vs. fly workers discrepancy). If it looks like there's a leak, those kinds of details will be critical in allowing us to fix it or delegate to the correct team (possibly Guardian).
Thanks everyone for trying to help out, I just think this issue's run its course.
@mattcui I'm not sure there's an easy way to clean that stuff up. Given that you're using BOSH I would just recreate the VM. You don't wanna be messing around on instances and manually fixing them much.
Activity
concourse-bot commentedon Feb 18, 2016
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
xoebus commentedon Mar 3, 2016
At the moment the error coming from Garden is just a string to us. We don't know if it's "insufficient subnets remaining in the pool" or "panic: everything is on fire". In order to provide a better message we'd need to know more about the error or even better we'd be able to use descriptive help text from the Garden error itself.
/cc @julz @willpragnell Could we get some rich Garden errors, pretty please? 😊
piyush0101 commentedon May 16, 2016
We are using the concourse standalone binary and running our concourse setup in docker containers with docker-compose. We frequently run into 'insufficient subnets in pool' error and have to restart concourse to resolve the issue.
Is there a way to increase the subnets limit for concourse standalone binary? Is there a way to tell concourse to not keep that many containers? We do not really have a lot of jobs and resources so running into a limit of 256 containers seems a bit strange.
kalverra commentedon Jun 13, 2016
I'm running into a similar issue as @piyush0101, only not even restarting concourse will clean up all these seemingly old and dead containers.
I'm running the concourse docker container setup found here: https://hub.docker.com/r/meteogroup/concourse-ci/
Previously, everything was working fine, however, after going through some testing, the error message
insufficient subnets remaining in the poolhas been popping up relentlessly. Running
fly -t tag workersshows me my containers are at 256 and this seems to be the max. I wonder why concourse isn't cleaning up after itself in this instance? My pipeline is fairly small (2 resources and a job) so I can't imagine these are all actually active containers. Any experience / insight?
Edit: Seems totally deleting the container fixed things, found it hanging around with
docker ps -a, but I'm still confused as to how to prevent this from happening again. Is this just an issue with how concourse runs inside of containers themselves?vito commentedon Jun 14, 2016
@kalverra Next time it happens could you check the worker logs? Maybe it's failing to delete containers?
kalverra commentedon Jun 14, 2016
@vito seems like it, could you give me instructions / a link on how to check those? It seems the fly CLI only allows me to list the workers and their containers
vito commentedon Jun 15, 2016
@kalverra it goes to stdout of the worker process
brendan-munro commentedon Jun 15, 2016
We're also running into the issue on a near-constant basis.
Our setup at the moment is all on AWS with a m4.large running the web instance and an auto-scaling group of m4.larges running our workers. Unfortunately, this bug causes our jobs to fail well before our instances would ever trigger auto-scaling.
Attached is the log output from a worker, I've truncated it to a single occurrence but it does come up quite frequently. If you'd like more of the logs let me know.
concourse-worker-293-truncated.log.zip
vito commentedon Jun 15, 2016
@EcofitBrendan The more interesting logs would probably come earlier than that if it's from containers failing to destroy.
You may also want to try 1.3 if you haven't already, which improves the balancing of containers across workers.
20 remaining items
piyush0101 commentedon Jul 13, 2016
Still seeing this issue on
1.4.1. Containers don't seem to be cleaning up. Is there any more information I can provide here? logs etc?vito commentedon Jul 13, 2016
Worker logs are what is most useful when debugging this. Preferably large timespans of them, leading up to the issue, not just after. May want to eyeball them to make sure they don't contain sensitive info first.
colstrom commentedon Jul 14, 2016
Not seeing subnet issues on
1.4.1so far.zhanggbj commentedon Aug 8, 2016
We are still seeing this issue on 1.5.1. FYI.
mattcui commentedon Aug 8, 2016
Is there an easy way to clean up contains? After monitor restart or system reboot, I saw it rebuilt these containers in /var/vcap/data/garden/depot. Thanks.
vito commentedon Aug 8, 2016
I'm going to just close this issue as there's not a lot of actionable information and it's become kind of a dumping ground. Many issues have been fixed in the timespan that his issue has been open.
"Insufficient subnets" is akin to "out of memory" or "out of disk" - it's an error explaining the current state, not how it got there. It's something you could see even if everything is operating normally: you may just need more containers than your workers support. The resolution is the same as with any other resource limit - either scale up or look for evidence of a leak, e.g. failed container deletions, more containers existing than they should (
fly containersvs.fly workersdiscrepancy). If it looks like there's a leak, those kinds of details will be critical in allowing us to fix it or delegate to the correct team (possibly Guardian).Thanks everyone for trying to help out, I just think this issue's run its course.
@mattcui I'm not sure there's an easy way to clean that stuff up. Given that you're using BOSH I would just recreate the VM. You don't wanna be messing around on instances and manually fixing them much.
bump ginkgo
bump ginkgo
bump atc
bump etree tsa handlers mux clockwork goxmldsig genproto grpc