Remove hack MalformedHostHeaderOverride#39076
Conversation
7aa0319 to
6685829
Compare
|
ping @lifubang @cpuguy83 @kolyshkin |
This comment has been minimized.
This comment has been minimized.
|
Same failures again; looks related to this change https://jenkins.dockerproject.org/job/Docker-PRs/53854/console @shin- @ulyssessouza I could use some help on this one; wondering why this causes docker-py to fail Failure is produced by this helper https://github.com/docker/docker-py/blob/7252086054904dfbf1ab3abe6ba494cec2db6181/tests/helpers.py#L111-L135 def assert_cat_socket_detached_with_keys(sock, inputs):
if six.PY3 and hasattr(sock, '_sock'):
sock = sock._sock
for i in inputs:
sock.sendall(i)
time.sleep(0.5)
# If we're using a Unix socket, the sock.send call will fail with a
# BrokenPipeError ; INET sockets will just stop receiving / sending data
# but will not raise an error
if getattr(sock, 'family', -9) == getattr(socket, 'AF_UNIX', -1):
with pytest.raises(socket.error):
sock.sendall(b'make sure the socket is closed\n')
elif isinstance(sock, paramiko.Channel):
with pytest.raises(OSError):
sock.sendall(b'make sure the socket is closed\n')
else:
sock.sendall(b"make sure the socket is closed\n")
data = sock.recv(128)
# New in 18.06: error message is broadcast over the socket when reading
# after detach
assert data == b'' or data.startswith(
b'exec attach failed: error on attach stdin: read escape sequence'
) |
|
Removing the first |
|
Thanks @shin- ! |
|
@thaJeztah can you try docker/docker-py#2317 (commit: a16a2051a6a30e9a44e64ad2333c1a49b4f5b580) and let me know if that fixes it? |
6685829 to
8f45459
Compare
Codecov Report
@@ Coverage Diff @@
## master #39076 +/- ##
=========================================
Coverage ? 37.28%
=========================================
Files ? 608
Lines ? 45201
Branches ? 0
=========================================
Hits ? 16855
Misses ? 26063
Partials ? 2283 |
|
Thanks! Added a temporary commit to switch to that commit 👍 |
|
Janky failed on #39243 |
c14641d to
db057c9
Compare
|
|
db057c9 to
b211094
Compare
This comment has been minimized.
This comment has been minimized.
b211094 to
43ec501
Compare
|
Wow; lots of weird failures on s390x; https://jenkins.dockerproject.org/job/Docker-PRs-s390x/14838/console |
|
I wonder what version of Docker is installed on those s390x machines |
This hack was added to fix a compatibility with clients that were built using Go 1.5 and older (added in 3d6f598) This hack causes some problems with current clients; with Go 1.5 and older no longer being supported for some time, and being several years old, it should now be ok to remove this hack altogether. People using tools that are built with those versions of Go wouldn't have updated those for years, and are probably out of date anyway; that's not something we can continue taking into account. This will affect docker clients (the docker cli) for docker 1.12 and older. Those versions have reached EOL a long time ago (and have known unpatched vulnerabilities), so should no longer be used anyway, but We should add a nebtuib in the release notes, just in case someone, somewhere, still has such old tools. For those affected, using a more recent client (and if needed, setting the DOCKER_API_VERSION environment variable to the needed API version) should provide a way out. This reverts the changes originally made in; moby#22000 and moby#22888, which were to address moby#20865. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
43ec501 to
f6b1f01
Compare
|
Rebased, to get rid of #39068 This should be ready for review |
These tests are 'docker.oldclient' and 'google.kubernetes.basic.docker.*'.
'docker.oldclient' tries to run docker cli 1.9 against daemon in the
image, and fails with:
--- FAIL: docker.oldclient (29.22s)
cluster.go:117: Error response from daemon: 400 Bad Request: malformed Host header
cluster.go:130: "/home/core/docker-1.9.1 run echo echo 'IT WORKED'" failed: output , status Process exited with status 1
This is related to moby/moby#39076, merged into
20.10 which removed some backwards compatibility.
The 'google.kubernetes.basic.docker.*' tests fails with the following
message in journal:
Jul 15 14:17:42.446942 kubelet[4663]: F0715 14:17:42.446505 4663 server.go:274] failed to run Kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
Kubernetes release 1.19 is the first one that properly supports the unified cgroup hierarchy.
We also have other tests that test that kubernetes works (kubeadm) so we
can disable the legacy ones.
The old tests should be removed once the docker 20.10 upgrade has
propagated to all channels.
See also flatcar-archive/coreos-overlay#931
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
These tests are 'docker.oldclient' and 'google.kubernetes.basic.docker.*'.
'docker.oldclient' tries to run docker cli 1.9 against daemon in the
image, and fails with:
--- FAIL: docker.oldclient (29.22s)
cluster.go:117: Error response from daemon: 400 Bad Request: malformed Host header
cluster.go:130: "/home/core/docker-1.9.1 run echo echo 'IT WORKED'" failed: output , status Process exited with status 1
This is related to moby/moby#39076, merged into
20.10 which removed some backwards compatibility.
The 'google.kubernetes.basic.docker.*' tests fails with the following
message in journal:
Jul 15 14:17:42.446942 kubelet[4663]: F0715 14:17:42.446505 4663 server.go:274] failed to run Kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
Kubernetes release 1.19 is the first one that properly supports the unified cgroup hierarchy.
We also have other tests that test that kubernetes works (kubeadm) so we
can disable the legacy ones.
The old tests should be removed once the docker 20.10 upgrade has
propagated to all channels.
See also flatcar-archive/coreos-overlay#931
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
These tests are 'docker.oldclient' and 'google.kubernetes.basic.docker.*'.
'docker.oldclient' tries to run docker cli 1.9 against daemon in the
image, and fails with:
--- FAIL: docker.oldclient (29.22s)
cluster.go:117: Error response from daemon: 400 Bad Request: malformed Host header
cluster.go:130: "/home/core/docker-1.9.1 run echo echo 'IT WORKED'" failed: output , status Process exited with status 1
This is related to moby/moby#39076, merged into
20.10 which removed some backwards compatibility.
The 'google.kubernetes.basic.docker.*' tests fails with the following
message in journal:
Jul 15 14:17:42.446942 kubelet[4663]: F0715 14:17:42.446505 4663 server.go:274] failed to run Kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
Kubernetes release 1.19 is the first one that properly supports the unified cgroup hierarchy.
We also have other tests that test that kubernetes works (kubeadm) so we
can disable the legacy ones.
The old tests should be removed once the docker 20.10 upgrade has
propagated to all channels.
See also flatcar-archive/coreos-overlay#931
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
These tests are 'docker.oldclient' and 'google.kubernetes.basic.docker.*'.
'docker.oldclient' tries to run docker cli 1.9 against daemon in the
image, and fails with:
--- FAIL: docker.oldclient (29.22s)
cluster.go:117: Error response from daemon: 400 Bad Request: malformed Host header
cluster.go:130: "/home/core/docker-1.9.1 run echo echo 'IT WORKED'" failed: output , status Process exited with status 1
This is related to moby/moby#39076, merged into
20.10 which removed some backwards compatibility.
The 'google.kubernetes.basic.docker.*' tests fails with the following
message in journal:
Jul 15 14:17:42.446942 kubelet[4663]: F0715 14:17:42.446505 4663 server.go:274] failed to run Kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
Kubernetes release 1.19 is the first one that properly supports the unified cgroup hierarchy.
We also have other tests that test that kubernetes works (kubeadm) so we
can disable the legacy ones.
The old tests should be removed once the docker 20.10 upgrade has
propagated to all channels.
See also flatcar-archive/coreos-overlay#931
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This hack was added to fix a compatibility with clients
that were built using Go 1.5 and older (added in 3d6f598)
This hack causes some problems with current clients; with Go 1.5 and older
no longer being supported for some time, and being several years old, it
should now be ok to remove this hack altogether.
People using tools that are built with those versions of Go wouldn't have
updated those for years, and are probably out of date anyway; that's not
something we can continue taking into account.
This will affect docker clients (the docker cli) for docker 1.12 and older.
Those versions have reached EOL a long time ago (and have known unpatched
vulnerabilities), so should no longer be used anyway, but We should add
a nebtuib in the release notes, just in case someone, somewhere, still
has such old tools.
For those affected, using a more recent client (and if needed, setting
the DOCKER_API_VERSION environment variable to the needed API version)
should provide a way out.
This reverts the changes originally made in; #22000 and #22888,
which were to address #20865.