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 7F6049D9E for ; Tue, 10 Jul 2012 14:05:38 +0000 (UTC) Received: (qmail 19461 invoked by uid 500); 10 Jul 2012 14:05:38 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 18809 invoked by uid 500); 10 Jul 2012 14:05:37 -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 18317 invoked by uid 99); 10 Jul 2012 14:05:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2012 14:05:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2F8E614052D for ; Tue, 10 Jul 2012 14:05:35 +0000 (UTC) Date: Tue, 10 Jul 2012 14:05:35 +0000 (UTC) From: "Marios Andreou (JIRA)" To: dev@deltacloud.apache.org Message-ID: <1849349690.28323.1341929135197.JavaMail.jiratomcat@issues-vm> In-Reply-To: <210303150.13535.1341571954763.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request 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-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410357#comment-13410357 ] Marios Andreou commented on DTACLOUD-257: ----------------------------------------- Hi Christian: I still couldn't reproduce the issue: [marios@name deltacloud]$ curl -X POST -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u "USER:PASS" http://localhost:3001/api/instances/2715/stop?format=xml * About to connect() to localhost port 3001 (#0) * Trying ::1... Connection refused * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 3001 (#0) * Server auth using Basic with user 'marios' > POST /api/instances/2715/stop?format=xml HTTP/1.1 > Authorization: Basic herpyderpy= > User-Agent: curl/7.21.3 (i386-redhat-linux-gnu) libcurl/7.21.3 NSS/3.13.1.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7 > Host: localhost:3001 > Accept: */* > X-Deltacloud-Driver: opennebula > X-Deltacloud-Provider: http://occi.c12g.com > < HTTP/1.1 202 Accepted < Server: Apache-Deltacloud/1.0.0 < X-Backend-Runtime: 1.54147291183472 < X-XSS-Protection: 1; mode=block < Content-Length: 865 < Date: Tue, 10 Jul 2012 13:54:16 GMT < Content-Type: application/xml < X-Frame-Options: sameorigin < Connection: keep-alive Having said that - I ran into another issue just trying to list instances: [marios@name deltacloud]$ curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u "USER:PASS" http://localhost:3001/api/instances?format=xml * About to connect() to localhost port 3001 (#0) * Trying ::1... Connection refused * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 3001 (#0) * Server auth using Basic with user 'marios' > GET /api/instances?format=xml HTTP/1.1 > Authorization: Basic herpyderpy= > User-Agent: curl/7.21.3 (i386-redhat-linux-gnu) libcurl/7.21.3 NSS/3.13.1.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7 > Host: localhost:3001 > Accept: */* > X-Deltacloud-Driver: opennebula > X-Deltacloud-Provider: http://occi.c12g.com > < HTTP/1.1 500 Internal Server Error backend_error 500 opennebula driver stop instance request > --------------------------------------- > > Key: DTACLOUD-257 > URL: https://issues.apache.org/jira/browse/DTACLOUD-257 > Project: DeltaCloud > Issue Type: Bug > Components: Server > Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head > Reporter: Christian Karnath > Assignee: Marios Andreou > > When POSTing /api/instances//stop on a running instance against the opennebula-driver the following error occurs: > Deltacloud::ExceptionHandler::ProviderError - [VirtualMachineAction] Wrong state to perform action > I am running ruby 1.8.7 and requesting with cURL: > curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u xxx:yyy http://localhost:3001/api/instances/2660/stop -d" " -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira