[
https://issues.apache.org/jira/browse/DTACLOUD-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy closed DTACLOUD-370.
----------------------------------
Fixed in deltacloud commit version: b5680d8cdb45a38168da3bbdcb0dd71dc55b984a
[rlandy@localhost workspace]$ curl -X GET --user 'un:pw'
"cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines?format=xml"
<Collection xmlns="http://schemas.dmtf.org/cimi/1"
resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
<id>http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines</id>
<count>27</count>
<Machine>
<id>http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/configserver-x-configserver-DoNotDelete</id>
<name>configserver-x-configserver-DoNotDelete</name>
<description>Instance configserver-x-configserver-DoNotDelete</description>
<created>2012-11-15T04:43:32Z</created>
<property
name="machine_image">http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machine_images/factory-image-7c120518-eabe-4fee-868b-60ce3a02cb14</property>
<property
name="credential">http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/credentials</property>
<state>STARTED</state>
<cpu>1</cpu>
<memory>524288</memory>
<disks
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/configserver-x-configserver-DoNotDelete/disks"
/>
<volumes
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/configserver-x-configserver-DoNotDelete/volumes"
/>
<operation rel="http://schemas.dmtf.org/cimi/1/action/restart"
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/configserver-x-configserver-DoNotDelete/restart"
/>
<operation rel="http://schemas.dmtf.org/cimi/1/action/stop"
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/configserver-x-configserver-DoNotDelete/stop"
/>
<operation rel="http://schemas.dmtf.org/cimi/1/action/capture"
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machine_images" />
</Machine>
.....
<operation rel="add"
href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines" />
</Collection>
> GET /cimi/resource_metadata (Vsphere provider) causes "ERROR -- 500:
> [TypeError] can't convert Time into String"
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DTACLOUD-370
> URL: https://issues.apache.org/jira/browse/DTACLOUD-370
> Project: DeltaCloud
> Issue Type: Bug
> Components: CIMI/Frontend
> Environment: Deltacloud git commit
> 34b34f221c4f0b6a1b219dbfc6d4902b7ae9b8ff
> Vsphere 5
> CIMI
> Reporter: Ronelle Landy
> Assignee: Ronelle Landy
>
> Start a Deltacloud server with all three frontends:
> >> API_PROVIDER=<ip of provider install> ./bin/deltacloudd -i vsphere -f
> >> cimi,deltacloud,ec2 -r <hostname>
> Using the CIMI frontend, get the CEP and query supported collections.
> GET'ting the resource_metadata collection errors out...
> 10.11.8.9 - - [13/Nov/2012 19:39:16] "GET /cimi/resource_metadata HTTP/1.1"
> 200 808 0.0056
> E, [2012-11-13T19:39:21.162483 #16390] ERROR -- 500: [TypeError] can't
> convert Time into String
> /usr/share/ruby/time.rb:265:in `_parse'
> /usr/share/ruby/time.rb:265:in `parse'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/models/machine.rb:128:in
> `from_instance'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/models/machine.rb:40:in
> `block in find'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/models/machine.rb:40:in
> `map'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/models/machine.rb:40:in
> `find'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/models/collection.rb:117:in
> `list'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/machines.rb:27:in
> `block (3 levels) in <class:Machines>'
> /usr/local/share/gems/gems/sinatra-rabbit-1.1.2/lib/sinatra/rabbit/base.rb:394:in
> `instance_eval'
> /usr/local/share/gems/gems/sinatra-rabbit-1.1.2/lib/sinatra/rabbit/base.rb:394:in
> `block in control'
> /usr/local/share/gems/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `call'
> This works for the mock driver.
--
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