[
https://issues.apache.org/jira/browse/DTACLOUD-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marios Andreou updated DTACLOUD-245:
------------------------------------
Attachment: 0001-CIMI-Adds-guards-in-conversion-of-hardware_profile-t.patch
Attached patch should resolve the issue for you - please test and ack/nack.
WRT where the fix should go - I looked at the CIMI WIP [1] and it seems 'Disks'
and 'CPU' are both consumer/provider optional - i.e. don't *have* to be
supported by the cloud provider. Meaning it's perfectly valid (as far as CIMI
compliance goes) for FGCP to not set storage on a machineConfiguration. Thus,
the change was made in the model itself, in particular in conversion from
(deltacloud) hardware_profile to (cimi) machineConfig. I put in a guard to
prevent the nil pointer.
marios
[1] http://dmtf.org/sites/default/files/standards/documents/DSP0263_1.0.0d.pdf
> FGCP/DMTF: undefined method `value' for hardware profile as storage is not
> specified
> ------------------------------------------------------------------------------------
>
> Key: DTACLOUD-245
> URL: https://issues.apache.org/jira/browse/DTACLOUD-245
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: fgcp driver and cimi interface
> Reporter: Dies Koper
> Attachments:
> 0001-CIMI-Adds-guards-in-conversion-of-hardware_profile-t.patch
>
>
> cimi/machine_configurations gives error page with fgcp driver.
> In fgcp, hardware profiles do not define the storage size, that depends on
> the image you launch.
> So the storage field is not set, which leads to a nice(?) 'empty' symbol in
> the DC UI.
> machine_configuration.rb:56 is expecting a value for storage.
> Where should this be fixed? Nil check in dmtf server or set a value (what?)
> in fgcp driver?
--
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