deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marios Andreou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request
Date Tue, 10 Jul 2012 14:05:35 GMT

    [ 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


<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/instances?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[#<REXML::ParseException: malformed XML: missing tag start
Line: 


this seems to be related to the xml sent back by http://occi.c12g.com. The current opennebula
driver was written for ON 3.2... looking at this thread http://mail-archives.apache.org/mod_mbox/deltacloud-dev/201206.mbox/%3C4FE7DB26.4040600@twgrid.org%3E
- it seems there are some compatibility issues (following the thread it seems that http://occi.c12g.com
may now be running v 3.6). 

So in general it seems some work is needed on the ON driver - I'll try and ping the ON guys
who maintain the driver (and point them at this issue) to see if they have the time - otherwise
I'll be looking at it asap. For now I'll leave the ticket open and unresolved.

many thanks for reporting this issue,

all the best, marios
                
> 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/<inst>/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

        

Mime
View raw message