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
GET /containers/(id)/stats broken in 1.7? #13421
Comments
I'm not aware of anything changed in this, apart from adding an optional parameter to disable streaming. /cc @cpuguy83 think you made the last changes to the stats? |
Nothing other than a new param to disable streaming. |
That's what I thought, thanks @ejholmes if you could add the requested information and a way to reproduce this, that would be very welcome! |
@thaJeztah cool! I'll try to get a repro case for this. Thanks! |
@thaJeztah @cpuguy83 updated the description with info and steps to reproduce. Seems to be 100% reproducible with docker 1.7-dev; I get one set of stats sent to me, then it just stops streaming. |
Ah! Browsing the source for the container stats endpoint on master and noticed the new Sorry for the trouble! |
@ejholmes thanks for researching this! Actually, I am going to re-open; the
@cpuguy83 This looks like a bug/regression to me, I haven't tested yet, but this doesn't sound right |
Yeah, I bet that happened with engine removal. |
so problem is |
@runcom yup |
Should probably have "boolValue" accept a default value. |
@cpuguy83 yes I did a branch but without a default value for now because I talked with @tiborvass on IRC and I'll come up with another PR changing how the stats endpoind behave (like having it no stream by default and adding stream=1 will stream or having nofollow query param that do the opposite because stats is the only endpoint to have a query param that is default'ed to true) |
@runcom It does make sense, but I'm hesitant on changing that so short before code/feature freeze. There might be quite some projects relying on the current behavior. |
Description of problem:
Has the spec for this endpoint been changed in docker 1.7? Using the latest version of https://github.com/fsouza/go-dockerclient against https://master.dockerproject.com/ results in
Unrecognized input header
being returned when callingclient.Stats()
. Works correctly in 1.6. I can dig deeper if this isn't already a known issue.Environment details (AWS, VirtualBox, physical, etc.):
Able to reproduce in boot2docker and also on AWS EC2 instances.
How reproducible:
100%
Steps to Reproduce:
docker run -d alpine:3.1 /bin/sh -c "while true; do echo hello; sleep 1; done"
Actual Results:
One stat message is streamed, then a 0 is sent and no more stats are sent after that:
Expected Results:
I expect a continuous stream of stats to be sent, like below, which was captured against docker 1.6.
Additional info:
The text was updated successfully, but these errors were encountered: