Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B6C76200BB6 for ; Thu, 20 Oct 2016 15:28:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B4113160ADB; Thu, 20 Oct 2016 13:28:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 10F27160AF2 for ; Thu, 20 Oct 2016 15:27:59 +0200 (CEST) Received: (qmail 15017 invoked by uid 500); 20 Oct 2016 13:27:59 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 14999 invoked by uid 99); 20 Oct 2016 13:27:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 13:27:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1BF362C0D53 for ; Thu, 20 Oct 2016 13:27:59 +0000 (UTC) Date: Thu, 20 Oct 2016 13:27:59 +0000 (UTC) From: "Pavlos Tzianos (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LIBCLOUD-864) Docker Driver install_image fails when parsing response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Oct 2016 13:28:00 -0000 [ https://issues.apache.org/jira/browse/LIBCLOUD-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15591815#comment-15591815 ] Pavlos Tzianos commented on LIBCLOUD-864: ----------------------------------------- Sample of response that is returned now: ...... {"status":"Pull complete","progressDetail":{},"id":"44710c456ffc"} {"status":"Extracting","progressDetail":{"current":162,"total":162},"progress":"[==================================================\u003e] 162 B/162 B","id":"56e70ac3b314"} {"status":"Extracting","progressDetail":{"current":162,"total":162},"progress":"[==================================================\u003e] 162 B/162 B","id":"56e70ac3b314"} {"status":"Pull complete","progressDetail":{},"id":"56e70ac3b314"} {"status":"Digest: sha256:992069aee4016783df6345315302fa59681aae51a8eeb2f889dea59290f21787"} {"status":"Status: Downloaded newer image for ubuntu:12.04"} Same behavior on both linux and mac with docker v1.12.2 and api version 1.24 > Docker Driver install_image fails when parsing response > ------------------------------------------------------- > > Key: LIBCLOUD-864 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-864 > Project: Libcloud > Issue Type: Bug > Reporter: Pavlos Tzianos > Priority: Minor > Labels: easyfix, newbie > > In previous version of the docker api when the install_image() method was called, the response would be one json doc with a success or fail and the id of the pulled image of the id. Now, in docker api 1.24 the entire sequence of logs produced while pulling the image is returned in a chunked response. When the DockerResponse.parse_body() is called it fails to parse this response and an exception is thrown. Also, previously the id was returned in a field called, now the image id is returned in a field marked sha256. -- This message was sent by Atlassian JIRA (v6.3.4#6332)