Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD901E311 for ; Tue, 5 Feb 2013 09:44:22 +0000 (UTC) Received: (qmail 45064 invoked by uid 500); 5 Feb 2013 09:44:22 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 44784 invoked by uid 500); 5 Feb 2013 09:44:16 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 44272 invoked by uid 99); 5 Feb 2013 09:44:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 09:44:13 +0000 Date: Tue, 5 Feb 2013 09:44:12 +0000 (UTC) From: "Marios Andreou (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (DTACLOUD-454) JSON error - GET /api/storage_volumes, ec2 provider 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/DTACLOUD-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou reassigned DTACLOUD-454: --------------------------------------- Assignee: Marios Andreou > JSON error - GET /api/storage_volumes, ec2 provider > --------------------------------------------------- > > Key: DTACLOUD-454 > URL: https://issues.apache.org/jira/browse/DTACLOUD-454 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: Deltacloud commit version: 152247911e61041e35202ffdd22b2c160a390008 > ec2 provider > JSON > Reporter: Ronelle Landy > Assignee: Marios Andreou > > Executing GET /api/storage_volumes for ec2 and returning XML works fine. Requesting JSON for the same, errors out. Output from both formats is copied below: > XML seems happy enough ... > >> curl -X GET --user "un:pw" "localhost:3001/api/storage_volumes?format=xml" > > > > 2013-02-04 23:48:28 UTC > 100 > vol-12d27763 > > us-east-1a > AVAILABLE > > > > > > > > Now let's try that with JSON output returned: > [root@cloud-qe-5 deltacloud]# curl -X GET --user "un:pw" "localhost:3001/api/storage_volumes?format=json" > {"code":500,"message":"undefined method `attach_storage_volume' for #","error":"NoMethodError"} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira