incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tong Li <liton...@us.ibm.com>
Subject Re: More CIMI models
Date Mon, 14 Nov 2011 15:24:53 GMT
Tong Li
Emerging Technologies & Standards
Building 501/B205
litong01@us.ibm.com

mfojtik@redhat.com wrote on 11/14/2011 10:09:26 AM:

> From: mfojtik@redhat.com
> To: deltacloud-dev@incubator.apache.org
> Date: 11/14/2011 10:14 AM
> Subject: More CIMI models
>
> Hi,
>
> This patches should add MachineImage and MachineConfiguration to new CIMI
> object model.
>
> There are few 'todo' items:
>
> 1. The '.properties/.property' is not correctly parsed when
> importing from JSON
> 2. In CIMI specification there is no indication about how property
> value should
>    be stored. I assume that there will be a key called 'value' in JSON
hash
It should be in a format of this
	"something":"the actual value"

It won't be something like
	"something" : {"value": "the actual value", "something else like
attributes"}

> 3. The 'memory' property is reported as Array in XML and as single
> item in JSON

Yes, that is the inconsistency of the spec. wished that it was not
specified like that.

>
> Also one issue which I didn't get:
>
> class MachineImage
>   scalar :image_location
> end
>
> img.image_location[0]['href'].should ==
'nfs://cimi.example.com/images/1.img'
>
> Is 'scalar' automatically being converted to an Array?
>
> Thanks,
>
>  -- Michal
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message