-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Fix issue in docker stats
with NetworkDisabled=true
#25905
Fix issue in docker stats
with NetworkDisabled=true
#25905
Conversation
LGTM |
1 similar comment
LGTM |
659bca0
to
e3457b4
Compare
Thanks @cpuguy83 @tonistiigi for the review. The failing test on Windows is because Windows does not support stats (as is seen on other tests of the same |
The win2lin test is a Linux daemon with a windows client, not sure why this new test didn't work though. |
e3457b4
to
3dc9b11
Compare
This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
3dc9b11
to
7bb9c53
Compare
Thanks @mlaventure. I removed |
LGTM |
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
resolves rhbz#1374265 backport of upstream PR: moby#25905
resolves rhbz#1374265 backport of upstream PR: moby#25905
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: moby#25905 This fix tries to address the issue in 25000 where `docker stats` will not show network stats with `NetworkDisabled=true`. The `NetworkDisabled=true` could be either invoked through remote API, or through `docker daemon -b none`. The issue was that when `NetworkDisabled=true` either by API or by daemon config, there is no SandboxKey for container so an error will be returned. This fix fixes this issue by skipping obtaining SandboxKey if `NetworkDisabled=true`. Additional test has bee added to cover the changes. This fix fixes 25000. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
- What I did
This fix tries to address the issue in #25000 where
docker stats
will not show network stats withNetworkDisabled=true
.The
NetworkDisabled=true
could be either invoked through remote API, or throughdocker daemon -b none
.The issue was that when
NetworkDisabled=true
either by API or by daemon config, there is no SandboxKey for container so an error will be returned.- How I did it
This fix fixes this issue by skipping obtaining SandboxKey if
NetworkDisabled=true
.- How to verify it
Additional test has bee added to cover the changes.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
This fix fixes #25000.
Signed-off-by: Yong Tang yong.tang.github@outlook.com