deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dies Koper (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DTACLOUD-383) cimi: can't list volumes anymore with fgcp
Date Thu, 29 Nov 2012 07:01:04 GMT
Dies Koper created DTACLOUD-383:
-----------------------------------

             Summary: cimi: can't list volumes anymore with fgcp
                 Key: DTACLOUD-383
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-383
             Project: DeltaCloud
          Issue Type: Bug
          Components: Native/Frontend
            Reporter: Dies Koper


curl --user "user:pwd" http://localhost:3001/cimi/volumes?format=xml
E, [2012-11-29T15:45:31.419863 #5528] ERROR -- 500: [TypeError] can't dup NilClass

D:/programs/Ruby187/lib/ruby/1.8/date/format.rb:1055:in `dup'
D:/programs/Ruby187/lib/ruby/1.8/date/format.rb:1055:in `_parse'
D:/programs/Ruby187/lib/ruby/1.8/time.rb:240:in `parse'
d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/volume.rb:83:in `from_storage_volume'
d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/volume.rb:44:in `find'

This line:
                :created => Time.parse(volume.created).xmlschema,

Fgcp driver doesn't set :created on volume because the backend doesn't return it.
I suppose the same error would occur on RHEVM.

created attribute is not mandatory in Cimi so it should just omit it when the driver doesn't
return it.

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

Mime
View raw message