[occi-wg] Link specification

Csom Gyula csom at interface.hu
Wed Sep 1 11:32:18 CDT 2010


Hi,
some notes:


[1] action on resource delete
The working draft specifies the behaviour of deleting links (ie. "An OCCI server MUST NOT 
delete the associated Resources upon receiving a client DELETE request for a Link."). 

It's counter part should be also defined, ie. the behaviour of deletion of associated resources.
Should the server automatically delete links, as well (CASCADE DELETE behaviour)? Or
should it prevent from deleting a resource, if there's a link pointing to it? Or should it be
configurable either per link instance or link type?


[2] reverse links
It might be useful to provide a so called 'reverse link' service, too. Ie. one should be able to 
query the links that points to a specific resource. Or formally: 

  reverse_links(r) := {link | link.target = r}. 

In order to? Well, querying reverse links is a common task. For instance: to see what computes
belong to a given network...

Why... since someone can list all links then filter out the unwanted ones? Within a large system
this could be a slow and resource-intensive operation. Meanwhile the cloud system could work 
from its internal index to filter the necessarry links which is much more faster.

This might be modeled as either a new attribute (ie. adding reverse_links to Resource or kinda) 
or as a special query service (GET /reverse_links/$resource_id HTTP/1.0 or such).


[3] built in link types
The working draft enables subtyping links: "An OCCI server MAY enforce additional 
attributes at creation time if the link has been subtyped using additional categories."
Sample from the wiki:

  Category: link; scheme="http://schemas.ogf.org/occi/core#",
      disk_drive; scheme="http://example.com/occi/link#"
  Attribute: occi.link.source="/compute/vm01",
             occi.link.target="/storage/disk03",
	     com.example.drive.interface="ide"

I guess built in link categories should be defined for the Infrastructure model (ie. disk, 
nic and maybe console):) This topic relates to the following one as well:


[4] link extensions?
It is not clear whether someone could use her own, specific links. The category spec states:

"Categories schemes can be extended by providers and users by defining there own (with 
different mutability) scheme. Those MUST be in a different namespace then those described 
in the OCCI specification."

Hence someone can introduce new Categories within new schemes. But can she introduce
new categories within the builtin OCCI namespaces? In order to use user defined links this is 
mandatory since domain specific links are specified by categories of Link type: "A set of 
associated attributes defined by the categories of the Link type."

Cheers,
Gyula
________________________________________
Feladó: Csom Gyula
Küldve: 2010. szeptember 1. 17:35
Címzett: Edmonds, AndrewX; occi-wg at ogf.org
Tárgy: RE: Link specification

Have just ran through the wiki page, though need more time to understand the details:) one
basic question came into my mind.

In most use cases 'bilateral' links are enough

________________________________________
Feladó: occi-wg-bounces at ogf.org [occi-wg-bounces at ogf.org] ; meghatalmazó: Edmonds, AndrewX [andrewx.edmonds at intel.com]
Küldve: 2010. szeptember 1. 17:01
Címzett: occi-wg at ogf.org
Tárgy: [occi-wg] Link specification

Just a reminder - from our confcall today, the deadline for any further
changes that will impact significantly the link specification [1] is next
Wednesday August 8th. Get reading! :-)

Andy

[1] http://forge.ogf.org/sf/wiki/do/viewPage/projects.occi-wg/wiki/Link



More information about the occi-wg mailing list