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 85091200BA3 for ; Thu, 20 Oct 2016 21:57:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83D19160AE0; Thu, 20 Oct 2016 19:57:02 +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 CB65D160AF5 for ; Thu, 20 Oct 2016 21:57:01 +0200 (CEST) Received: (qmail 6634 invoked by uid 500); 20 Oct 2016 19:57:00 -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 6468 invoked by uid 99); 20 Oct 2016 19:57:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 19:57:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3034D2C2A6A for ; Thu, 20 Oct 2016 19:57:00 +0000 (UTC) Date: Thu, 20 Oct 2016 19:57:00 +0000 (UTC) From: "Pavlos Tzianos (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (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 19:57:02 -0000 [ https://issues.apache.org/jira/browse/LIBCLOUD-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15591815#comment-15591815 ] Pavlos Tzianos edited comment on LIBCLOUD-864 at 10/20/16 7:56 PM: ------------------------------------------------------------------- Sample of isntall_image 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 was (Author: ptzianos): 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)