[ https://issues.apache.org/jira/browse/DTACLOUD-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-294. ---------------------------------- Resolution: Fixed Fixed in deltacloud 1.1.2 - using Opennebula KVM sandbox: curl -X GET --user "un:pw" "http://localhost:3008/api/instances?format=xml" <?xml version='1.0' encoding='utf-8' ?> <instances> <instance href='http://localhost:3008/api/instances/2' id='2'> <name>rlandyST</name> <owner_id>myuser</owner_id> <image href='http://localhost:3008/api/images/0' id='0'></image> <realm href='http://localhost:3008/api/realms/ONE' id='ONE'></realm> <state>RUNNING</state> <hardware_profile href='http://localhost:3008/api/hardware_profiles/small' id='small'> </hardware_profile> <actions> <link href='http://localhost:3008/api/instances/2/reboot' method='post' rel='reboot' /> <link href='http://localhost:3008/api/instances/2/stop' method='post' rel='stop' /> <link href='http://localhost:3008/api/instances/2' method='delete' rel='destroy' /> </actions> <public_addresses><address type='ipv4'>172.16.100.200</address></public_addresses> <private_addresses></private_addresses> <storage_volumes></storage_volumes> </instance> </instances> After instances were deleted: >> curl -X GET --user "myuser:mypassword" >> "http://localhost:3008/api/instances?format=xml" <?xml version='1.0' encoding='utf-8' ?> <instances> </instances> > OpenNebula driver: GET /api/instances throws 'undefined method `text' for > nil:NilClass' error > --------------------------------------------------------------------------------------------- > > Key: DTACLOUD-294 > URL: https://issues.apache.org/jira/browse/DTACLOUD-294 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Environment: Fedora 17 > Ruby 1.9.3 > Deltacloud version: f6cc95ebeba21fe8e182452b14639bf4dbbd753c > Reporter: Ronelle Landy > > Started a deltacloud server pointing at OpenNebula: > [root@nec-em6 server]# export OCCI_URL=http://occi.c12g.com; > ./bin/deltacloudd -i opennebula -r <servername> -p 3003 > Then did a GET /api/instances > curl -X GET --user "un:pw" > "ibm-x3550m4-01.rhts.eng.bos.redhat.com:4000/api/instances?format=xml" |more > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left Speed > 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- > 0<?xml version='1.0' encoding='utf-8' ?> > <error status='500' url='/api/instances?format=xml'> > <kind>backend_error</kind> > <backend driver='opennebula' provider='default'> > <code>500</code> > </backend> > <message><![CDATA[undefined method `text' for nil:NilClass]]></message> > <backtrace> > > <![CDATA[/usr/share/deltacloud-core/lib/deltacloud/drivers/opennebula/openne > bula_driver.rb:248:in `convert_instance' > > /usr/share/deltacloud-core/lib/deltacloud/drivers/opennebula/opennebula_driv > er.rb:160:in `block in instances' > /usr/share/ruby/rexml/element.rb:905:in `block in each' > /usr/share/ruby/rexml/xpath.rb:67:in `each' > /usr/share/ruby/rexml/xpath.rb:67:in `each' > /usr/share/ruby/rexml/element.rb:905:in `each' > > /usr/share/deltacloud-core/lib/deltacloud/drivers/opennebula/opennebula_driv > er.rb:159:in `map' > > /usr/share/deltacloud-core/lib/deltacloud/drivers/opennebula/opennebula_driv > er.rb:159:in `instances' > > /usr/share/deltacloud-core/lib/deltacloud/helpers/deltacloud_helper.rb:61:in > `block in filter_all' > /usr/share/ruby/benchmark.rb:280:in `measure' > 100 44623 100 44623 0 0 32308 0 0:00:01 0:00:01 --:--:-- 35726 > > /usr/share/deltacloud-core/lib/deltacloud/helpers/deltacloud_helper.rb:60:in > `filter_all' > /usr/share/deltacloud-core/lib/deltacloud/helpers/rabbit_helper.rb:22:in > `bl > ock (2 levels) in standard_index_operation' > > /usr/share/gems/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in > `instance_eval' > > /usr/share/gems/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in > `block in control' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in > com > pile!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 > leve > ls) in route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 > leve > ls) in route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in > proc > ess_route' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in > `process_route > ' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in > rout > e!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in > call > !' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in > invo > ke' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:766:in `forward' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:835:in > `route_missing > ' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:796:in `route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in > call > !' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in > invo > ke' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call' > > /usr/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb > :22:in `call' > > /usr/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/path_traversa > l.rb:16:in `call' > > /usr/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb: > 17:in `call' > > /usr/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in > `call' > > /usr/share/gems/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb > :22:in `call' > /usr/share/gems/gems/rack-1.4.0/lib/rack/nulllogger.rb:9:in `call' > /usr/share/gems/gems/rack-1.4.0/lib/rack/head.rb:9:in `call' > /usr/share/gems/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in > `call > ' > --More-- > I was not able to work create instances from images or do any other > instance-related operation. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira