[ 
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

        

Reply via email to