You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Christian Karnath (JIRA)" <ji...@apache.org> on 2012/07/06 12:52:33 UTC

[jira] [Created] (DTACLOUD-257) opennebula driver stop instance request

Christian Karnath created DTACLOUD-257:
------------------------------------------

             Summary: 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


When POSTing /api/instances/<inst>/stop on a running instance the following error occurs: 
Deltacloud::ExceptionHandler::ProviderError - [VirtualMachineAction] Wrong state to perform action




--
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

        

[jira] [Updated] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-257:
------------------------------------

    Attachment: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch

thanks - ok try this updated patch fixes the images issue you saw

one thing I noticed from quick testing... unless I'm mistaken there is no notion of 'restart/reboot' for a running machine anymore. Trying the 'reboot' action gave me an error... after investigation I noticed that:

for API v 3.2 (the version driver was last updated for): http://opennebula.org/documentation:archives:rel3.2:occiug#change_the_compute_state

for API v3.6 (current): http://opennebula.org/documentation:archives:rel3.0:vm_guide_2#virtual_machine_life-cycle

waiting for input from Daniel

                
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Updated] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-257:
------------------------------------

    Attachment:     (was: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch)
    
> 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

        

[jira] [Assigned] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou reassigned DTACLOUD-257:
---------------------------------------

    Assignee: Marios Andreou
    
> 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

        

[jira] [Closed] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou closed DTACLOUD-257.
-----------------------------------

    
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412631#comment-13412631 ] 

Marios Andreou commented on DTACLOUD-257:
-----------------------------------------

ok - pushed to master with commit hash: a213b54a1456fe9fcf98a42fde058f56161b6985
                
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411369#comment-13411369 ] 

Christian Karnath commented on DTACLOUD-257:
--------------------------------------------

Hi Marios,

the ON-issues are strange. The issue regarding listing all instances happened to me either until I created an instance via sunstone at http://sunstone.c12g.com. After deleting the instance via sunstone this issue was gone:

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 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 3001 (#0)
* Server auth using Basic with user 'USER'
> GET /api/instances?format=xml HTTP/1.1
> Authorization: Basic PASS
> User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
> Host: localhost:3001
> Accept: */*
> X-Deltacloud-Driver: opennebula
> X-Deltacloud-Provider: http://occi.c12g.com
>
< HTTP/1.1 200 OK
< ETag: "570ed38a6c6833d613702672e262c5ed"
< X-Frame-Options: sameorigin
< X-Backend-Runtime: 0.357523918151855
< X-XSS-Protection: 1; mode=block
< Content-Type: application/xml
< Date: Wed, 11 Jul 2012 09:46:55 GMT
< Content-Length: 65
< Server: Apache-Deltacloud/1.0.0
< Cache-Control: max-age=0, private, must-revalidate
< Connection: keep-alive
<
<?xml version='1.0' encoding='utf-8' ?>
<instances>
</instances>
* Connection #0 to host localhost left intact
* Closing connection #0


Moreover I couldn't reproduce the stop-issue. Stopping (and starting/rebooting) an ON-instance just works fine at the moment. 

Another issue I currently have with ON is that the destroy-action isn't populated:

  <instance href='http://localhost:3001/api/instances/2723' id='2723'>
    <name>one-2723</name>
    <owner_id>karnath</owner_id>
    <image href='http://localhost:3001/api/images/0' id='0'></image>
    <realm href='http://localhost:3001/api/realms/ONE' id='ONE'></realm>
    <state>STOPPED</state>
    <hardware_profile href='http://localhost:3001/api/hardware_profiles/small' id='small'>
    </hardware_profile>
    <actions>
      <link href='http://localhost:3001/api/instances/2723/start' method='post' rel='start' />
    </actions>
    <public_addresses></public_addresses>
    <private_addresses></private_addresses>
    <storage_volumes></storage_volumes>
  </instance>







                
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411540#comment-13411540 ] 

Christian Karnath commented on DTACLOUD-257:
--------------------------------------------

this updated patch works well and i think we can close this ticket. 'deleting while running' works fine and this seems to be the intended behaviour
                
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Comment Edited] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411468#comment-13411468 ] 

Christian Karnath edited comment on DTACLOUD-257 at 7/11/12 1:17 PM:
---------------------------------------------------------------------

After applying the patch /instances works fine (as it did before in my environment), but with this patch applied requesting /images deltacloud will return a 500. 

curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u USER:PASS http://localhost:3001/api/images?format=xml

<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[REXML::Element is not a valid input stream.  It must walk
  like either a String, an IO, or a Source.]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/rexml/source.rb:21:in `create_from'
    /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
[...]

                
      was (Author: karnath):
    After applying the patch /instances works fine (as it did before in my environment), but with this patch applied requesting /images delteacloud will return a 500. 

curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u USER:PASS http://localhost:3001/api/images?format=xml

<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[REXML::Element is not a valid input stream.  It must walk
  like either a String, an IO, or a Source.]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/rexml/source.rb:21:in `create_from'
    /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
[...]

                  
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Updated] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-257:
------------------------------------

    Attachment: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
    
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Karnath updated DTACLOUD-257:
---------------------------------------

    Description: 
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" "



  was:
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




    
> 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
>
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411449#comment-13411449 ] 

Marios Andreou commented on DTACLOUD-257:
-----------------------------------------

Hi Christian, I just cc'd you on an e-mail (on dev@deltacloud list also) to the ON guys about the 'destroy only whilst running' issue - I think that *might* be intended behaviour. The ON guys also gave us a patch which is attached here - it solved the 'list all instances' problem for me. I'd be grateful if you could try it out and ACK/NACK accordingly (either here or on the dev@deltacloud list).

thanks, marios

what do you think we should do with this ticket? if the attached patch is approved should we resolve+close?
                
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Resolved] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou resolved DTACLOUD-257.
-------------------------------------

    Resolution: Fixed
    
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Updated] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Karnath updated DTACLOUD-257:
---------------------------------------

    Description: 
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




  was:
When POSTing /api/instances/<inst>/stop on a running instance the following error occurs: 
Deltacloud::ExceptionHandler::ProviderError - [VirtualMachineAction] Wrong state to perform action




    
> 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
>
> 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

--
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

        

[jira] [Comment Edited] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411468#comment-13411468 ] 

Christian Karnath edited comment on DTACLOUD-257 at 7/11/12 1:16 PM:
---------------------------------------------------------------------

After applying the patch /instances works fine (as it did before in my environment), but with this patch applied requesting /images delteacloud will return a 500. 

curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u USER:PASS http://localhost:3001/api/images?format=xml

<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[REXML::Element is not a valid input stream.  It must walk
  like either a String, an IO, or a Source.]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/rexml/source.rb:21:in `create_from'
    /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
[...]

                
      was (Author: karnath):
    After applying the patch /instances works fine (as it did before in my environment), but with this patch applied requesting /images returns a 500. 

curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u USER:PASS http://localhost:3001/api/images?format=xml

<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[REXML::Element is not a valid input stream.  It must walk
  like either a String, an IO, or a Source.]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/rexml/source.rb:21:in `create_from'
    /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
[...]

                  
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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

        

[jira] [Commented] (DTACLOUD-257) opennebula driver stop instance request

Posted by "Christian Karnath (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411468#comment-13411468 ] 

Christian Karnath commented on DTACLOUD-257:
--------------------------------------------

After applying the patch /instances works fine (as it did before in my environment), but with this patch applied requesting /images returns a 500. 

curl -H "X-Deltacloud-Driver: opennebula" -H "X-Deltacloud-Provider: http://occi.c12g.com" -v -u USER:PASS http://localhost:3001/api/images?format=xml

<?xml version='1.0' encoding='utf-8' ?>
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='opennebula' provider='http://occi.c12g.com'>
    <code>500</code>
  </backend>
  <message><![CDATA[REXML::Element is not a valid input stream.  It must walk
  like either a String, an IO, or a Source.]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/rexml/source.rb:21:in `create_from'
    /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:133:in `stream='
[...]

                
> 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
>         Attachments: 0001-Updates-for-Opennebula-driver-brings-compatibility-f.patch
>
>
> 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