occiware / OCCI-Studio

OCCI Studio
Eclipse Public License 1.0
11 stars 2 forks source link

Problems with mixins and OCCIHelper #23

Closed cgourdin closed 6 years ago

cgourdin commented 6 years ago

Hello,

We have a problem with mixins, particularly with infrastructure mixins. The occi specification give a schema for ssh_key (and some others) that point to a scheme that is not equals to infrastructure main scheme (this is a sub scheme). When calling OCCIHelper to create a concrete mixin implementation in connector via the method public static MixinBase createMixinBase(Entity entity, Mixin mixin) We have this error : EPackage http://schemas.ogf.org/occi/infrastructure/credentials/ecore not found! 2017-10-24 08:43:53.472 WARN Couldnt create mixin base for mixin : http://schemas.ogf.org/occi/infrastructure/credentials#ssh_key

So we can't use the mixin concrete implementation Ssh_Key_connector because it instantiate the mixin on MixinBaseImpl only.

Note if mixins have the same scheme as infrastructure, creation method works.