The Next Step Towards Interoperability: OVF to OCCI mapping

We are glad to announce that parts of the OVF specification have been implemented by Kanchanna Ramasamy Balraj from Engineering and Florian Feldhaus of GWDG in the rOCCI framework which is now available as Ruby Gem. For detailed information check code and readme at https://github.com/gwdg/rOCCI.

To install the gem just issue the command:

gem install occi

Then start the Ruby Interpreter

irb

Import the necessary gems rubygems (only necessary for ruby < 1.9), occi and open-uri:

require 'rubygems'
require 'occi'
require 'open-uri'

Read in an OVA or OVF file. For testing purposes you can use the OVA file bundled with rOCCI which is based on the example from DMTF DSP 2021:

url='https://raw.github.com/gwdg/rOCCI/spec/occi/test.ova'
ova=open url

Now you can parse the OVA file to a collection of OCCI objects:

collection=OCCI::Parser.ova(ova.read)

The collection can now be used by other components (e.g. rOCCI-server) to interpret the data. To see the contents of the collection in JSON format use

jj JSON.parse(collection.to_json)

OCCI in OpenNebula

one_slide

“As open source, community-driven software, OpenNebula is fully committed to standards, ensuring that our users can avoid vendor lock-in. We provided the first reference implementation of the OCCI specification, and have many users and innovative projects that are building solutions around this implementation, so contributing to create an open ecosystem.” – Ignacio m. Llorente. The OCCI implementation in OpenNebula is available through the software ecosystem community web site and is based on the rOCCI framework.