From issues-return-49188-archive-asf-public=cust-asf.ponee.io@mesos.apache.org Tue Oct 16 15:01:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A06DB180679 for ; Tue, 16 Oct 2018 15:01:05 +0200 (CEST) Received: (qmail 26176 invoked by uid 500); 16 Oct 2018 13:01:04 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 26167 invoked by uid 99); 16 Oct 2018 13:01:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2018 13:01:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 00E9CC1E02 for ; Tue, 16 Oct 2018 13:01:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.8 X-Spam-Level: X-Spam-Status: No, score=-109.8 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_NUMSUBJECT=0.5, KAM_SHORT=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pOS_OVMVaoHH for ; Tue, 16 Oct 2018 13:01:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 25C895F3BE for ; Tue, 16 Oct 2018 13:01:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A882E0D27 for ; Tue, 16 Oct 2018 13:01:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 46FCC24DEA for ; Tue, 16 Oct 2018 13:01:00 +0000 (UTC) Date: Tue, 16 Oct 2018 13:01:00 +0000 (UTC) From: "Kirill Plyashkevich (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-8907) curl fetcher fails with HTTP/2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-8907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651636#comment-16651636 ] Kirill Plyashkevich commented on MESOS-8907: -------------------------------------------- [~alexr], apologies for jumping in, but we waiting support for 18.04 as it's becoming a show-stopper. minimal version in bionic is [7.55.1|https://launchpad.net/ubuntu/bionic/+source/curl] http/2 is default for https in curl starting from [7.47.0|https://curl.haxx.se/docs/http2.html] and also CURL_HTTP_VERSION_2TLS is the default value since [7.62.0|https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html] > curl fetcher fails with HTTP/2 > ------------------------------ > > Key: MESOS-8907 > URL: https://issues.apache.org/jira/browse/MESOS-8907 > Project: Mesos > Issue Type: Task > Components: fetcher > Reporter: James Peach > Priority: Major > Labels: integration > > {noformat} > [ RUN ] ImageAlpine/ProvisionerDockerTest.ROOT_INTERNET_CURL_SimpleCommand/2 > ... > I0510 20:52:00.209815 25010 registry_puller.cpp:287] Pulling image 'quay.io/coreos/alpine-sh' from 'docker-manifest://quay.iocoreos/alpine-sh?latest#https' to '/tmp/ImageAlpine_ProvisionerDockerTest_ROOT_INTERNET_CURL_SimpleCommand_2_wF7EfM/store/docker/staging/qit1Jn' > E0510 20:52:00.756072 25003 slave.cpp:6176] Container '5eb869c5-555c-4dc9-a6ce-ddc2e7dbd01a' for executor 'ad9aa898-026e-47d8-bac6-0ff993ec5904' of framework 7dbe7cd6-8ffe-4bcf-986a-17ba677b5a69-0000 failed to start: Failed to decode HTTP responses: Decoding failed > HTTP/2 200 > server: nginx/1.13.12 > date: Fri, 11 May 2018 03:52:00 GMT > content-type: application/vnd.docker.distribution.manifest.v1+prettyjws > content-length: 4486 > docker-content-digest: sha256:61bd5317a92c3213cfe70e2b629098c51c50728ef48ff984ce929983889ed663 > x-frame-options: DENY > strict-transport-security: max-age=63072000; preload > ... > {noformat} > Note that curl is saying the HTTP version is "HTTP/2". This happens on modern curl that automatically negotiates HTTP/2, but the docker fetcher isn't prepared to parse that. > {noformat} > $ curl -i --raw -L -s -S -o - 'http://quay.io/coreos/alpine-sh?latest#https' > HTTP/1.1 301 Moved Permanently > Content-Type: text/html > Date: Fri, 11 May 2018 04:07:44 GMT > Location: https://quay.io/coreos/alpine-sh?latest > Server: nginx/1.13.12 > Content-Length: 186 > Connection: keep-alive > HTTP/2 301 > server: nginx/1.13.12 > date: Fri, 11 May 2018 04:07:45 GMT > content-type: text/html; charset=utf-8 > content-length: 287 > location: https://quay.io/coreos/alpine-sh/?latest > x-frame-options: DENY > strict-transport-security: max-age=63072000; preload > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)