deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DTACLOUD-145) Cannot delete a stopped instance from rhevm (rbovirt-0.0.5)
Date Wed, 15 Feb 2012 00:26:05 GMT
Cannot delete a stopped instance from rhevm (rbovirt-0.0.5)
-----------------------------------------------------------

                 Key: DTACLOUD-145
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-145
             Project: DeltaCloud
          Issue Type: Bug
          Components: Server
         Environment: Fedora 16
rbovirt-0.0.5

            Reporter: Ronelle Landy
            Assignee: David Lutterkort


Deltacloud throws an 'Unhandled exception or status code (404 Resource Not Found)' error when
attempting to delete a stopped instance from rhevm. The instance does exist as show by the
output of GET /api/instances/:id copied after the error trace.

[rlandy@localhost ~]$ curl -X DELETE --user "uname:password" "http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3?format=xml"
<error status='500' url='/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3?format=xml'>
  <kind>backend_error</kind>
  <backend driver='rhevm' provider='https://qeblade26.rhq.lab.eng.bos.redhat.com:8443/api;4051216f-a778-488f-8ae4-5a2541b009ff'>
    <code>500</code>
  </backend>
  <message><![CDATA[Unhandled exception or status code (404 Resource Not Found)]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.5/lib/rbovirt.rb:259:in `handle_fault'
    /usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.5/lib/rbovirt.rb:213:in `http_post'
    /usr/lib/ruby/gems/1.8/gems/rbovirt-0.0.5/lib/rbovirt.rb:70:in `vm_action'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:161:in
`destroy_instance'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:151:in
`call'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:151:in
`safely'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:160:in
`destroy_instance'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:128:in
`send'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:128:in
`instance_action'
    /home/dcloud/workspace/deltacloud/server/lib/deltacloud/server.rb:537
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rabbit.rb:125:in `DELETE /api/instances/:id'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `process_route'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_date.rb:31:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_accept.rb:149:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/nulllogger.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/head.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_driver_select.rb:45:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_matrix_params.rb:106:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_runtime.rb:36:in `call'
    /home/dcloud/workspace/deltacloud/server/lib/sinatra/rack_etag.rb:41:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.4/lib/rack/accept/context.rb:22:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
`call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/logger.rb:15:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/head.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.4.0/lib/rack/methodoverride.rb:21:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:80:in `pre_process'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `spawn_threadpool'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `initialize'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `new'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `spawn_threadpool'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in `defer'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:50:in `process'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
    /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
    ./bin/deltacloudd:239]]>
  </backtrace>
  <request>
    <param name='splat'></param>
    <param name='captures'>Deltacloud::ExceptionHandler::BackendError</param>
    <param name='format'>xml</param>
  </request>
</error>


[rlandy@localhost ~]$ curl -X GET --user "uname:password" "http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3'
id='e0f466b2-3795-418e-b935-d5491a5febf3'>
  <name>rlandyConf</name>
  <owner_id>admin@internal</owner_id>
  <image href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/images/8d6ceccb-baf2-4053-894d-e4532a34ccac'
id='8d6ceccb-baf2-4053-894d-e4532a34ccac'></image>
  <realm href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/realms/ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'
id='ba2b3a52-4303-11e1-b6c2-5cf3fc1c861c'></realm>
  <state>STOPPED</state>
  <hardware_profile href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/hardware_profiles/SERVER'
id='SERVER'>
    <property kind='fixed' name='storage' unit='GB' value='1'></property>
    <property kind='fixed' name='cpu' unit='count' value='1'></property>
    <property kind='fixed' name='memory' unit='MB' value='512'></property>
  </hardware_profile>
  <actions>
    <link href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3/start'
method='post' rel='start' />
    <link href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/instances/e0f466b2-3795-418e-b935-d5491a5febf3'
method='delete' rel='destroy' />
    <link href='http://nec-em6.rhts.eng.bos.redhat.com:3001/api/images;instance_id=e0f466b2-3795-418e-b935-d5491a5febf3'
method='post' rel='create_image' />
  </actions>
  <launch_time>2012-02-14T19:06:20.680-05:00</launch_time>
  <public_addresses><address type='mac'>00:1a:4a:10:78:36</address>
<address port='5909' type='vnc'>qeblade27.rhq.lab.eng.bos.redhat.com</address></public_addresses>
  <private_addresses></private_addresses>
</instance>
[rlandy@localhost ~]$ 


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