You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by David Madner <e0...@student.tuwien.ac.at> on 2013/08/13 11:57:30 UTC

OVF support in deltacloud

Hi all,

I am currently writing on my master's thesis and I try to use deltacloud 
in combination with OVF (Open Virtualization Format) through the CIMI 
interface.
Unfortunately I can not find any examples how to use an OVF virtual 
system description in combination with deltacloud.
Do you have any working examples?

Thanks in advance,
Best regards
David

RE: OVF support in deltacloud

Posted by "Koper, Dies" <di...@fast.au.fujitsu.com>.
Hi David,

Yes, it's not in the master branch because it's not complete and
properly tested.
Also, it only works for drivers that support CIMI systems, which does
not include EC2 yet.

With the code in my branch, I've hardcoded a system and implemented the
system import operation in the vsphere driver so it works for vsphere.

If you need it to run on ec2, you'll need to at least implement the
systems and system_import methods on the ec2 driver.

Regards,
Dies Koper


-----Original Message-----
From: David Madner [mailto:e0926741@student.tuwien.ac.at] 
Sent: Tuesday, August 27, 2013 3:17 AM
To: dev@deltacloud.apache.org
Subject: Re: OVF support in deltacloud

Sorry for the late response!
It seems to be that the the git commit you have previously mentioned
(https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73)
is not in the master branch.
Although I patched the file manually, Sinatra gives me an 404 "Sinatra
doesn't know this ditty" when using "POST
http://localhost:3001/cimi/systems/import".
I started my deltacloud server via "deltacloudd -i ec2 -f cimi,
deltacloud".
Am I missing something?

Best regards
David


On 18.08.2013 14:13, Koper, Dies wrote:
> Hi David,
>
> curl --user user:pwd http://localhost:3001/cimi/systems/import -X POST

> -d @import.xml -H "Content-Type: application/xml" -H "Accept:
> application/xml"
>
> where import.xml is in your current directory with content:
>
> <Action xmlns="http://schemas.dmtf.org/cimi/1">
>    <action>http://schemas.dmtf.org/cimi/1/action/import</action>
>    <source>D:\ubuntu\ubuntu.ovf</source>
> </Action>
>
> There may be a requirement for vsphere (I'm not sure) to have the ovf 
> files in a subdirectory with the same name as the descriptor.
>
> The format default to "application/ovf" so no need to specify it.
>
> For export, query the CEP to find the url to list the system 
> collection (that's where you'll also find the import url I use above),

> then query the system you want to export to find the export url to 
> POST to. You'd post an XML body similar to the above one with the 
> right action value and other elements.
>
> Regards,
> Dies Koper
>



Re: OVF support in deltacloud

Posted by David Madner <e0...@student.tuwien.ac.at>.
Sorry for the late response!
It seems to be that the the git commit you have previously mentioned 
(https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73) 
is not in the master branch.
Although I patched the file manually, Sinatra gives me an 404 "Sinatra 
doesn’t know this ditty" when using "POST 
http://localhost:3001/cimi/systems/import".
I started my deltacloud server via "deltacloudd -i ec2 -f cimi, deltacloud".
Am I missing something?

Best regards
David


On 18.08.2013 14:13, Koper, Dies wrote:
> Hi David,
>
> curl --user user:pwd http://localhost:3001/cimi/systems/import -X POST
> -d @import.xml -H "Content-Type: application/xml" -H "Accept:
> application/xml"
>
> where import.xml is in your current directory with content:
>
> <Action xmlns="http://schemas.dmtf.org/cimi/1">
>    <action>http://schemas.dmtf.org/cimi/1/action/import</action>
>    <source>D:\ubuntu\ubuntu.ovf</source>
> </Action>
>
> There may be a requirement for vsphere (I'm not sure) to have the ovf
> files in a subdirectory with the same name as the descriptor.
>
> The format default to "application/ovf" so no need to specify it.
>
> For export, query the CEP to find the url to list the system collection
> (that's where you'll also find the import url I use above), then query
> the system you want to export to find the export url to POST to. You'd
> post an XML body similar to the above one with the right action value
> and other elements.
>
> Regards,
> Dies Koper
>

RE: OVF support in deltacloud

Posted by "Koper, Dies" <di...@fast.au.fujitsu.com>.
Hi David,

curl --user user:pwd http://localhost:3001/cimi/systems/import -X POST
-d @import.xml -H "Content-Type: application/xml" -H "Accept:
application/xml"

where import.xml is in your current directory with content:

<Action xmlns="http://schemas.dmtf.org/cimi/1">
  <action>http://schemas.dmtf.org/cimi/1/action/import</action>
  <source>D:\ubuntu\ubuntu.ovf</source>
</Action>

There may be a requirement for vsphere (I'm not sure) to have the ovf
files in a subdirectory with the same name as the descriptor.

The format default to "application/ovf" so no need to specify it.

For export, query the CEP to find the url to list the system collection
(that's where you'll also find the import url I use above), then query
the system you want to export to find the export url to POST to. You'd
post an XML body similar to the above one with the right action value
and other elements.

Regards,
Dies Koper


-----Original Message-----
From: David Madner [mailto:e0926741@student.tuwien.ac.at] 
Sent: Saturday, August 17, 2013 8:57 PM
To: dev@deltacloud.apache.org
Subject: Re: OVF support in deltacloud

Thank you for this information, could you provide a small example?
Which URL should be used to import the OVF specs (e.g. 
http://localhost:3001/cimi/system_import)?
Do I need some special HTTP Header value, like "Content-Type: 
application/ovf" ?

Cheers,
David

On 13.08.2013 21:17, Koper, Dies wrote:
> Hi David,
>
> It's a work in progress, but have a look at this commit:
>
> https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73
> a1
> 66560abe41b24a35d
>
> A lot of values are still hard-coded (including the entry in the 
> systems collections), but if you change them according to your 
> environment you be able to import and export OVF packages using the 
> CIMI interface with a vCenter backend.
>
> Regards,
> Dies Koper
>
> -----Original Message-----
> From: David Madner [mailto:e0926741@student.tuwien.ac.at]
> Sent: Tuesday, August 13, 2013 7:58 PM
> To: dev@deltacloud.apache.org
> Subject: OVF support in deltacloud
>
> Hi all,
>
> I am currently writing on my master's thesis and I try to use 
> deltacloud in combination with OVF (Open Virtualization Format) 
> through the CIMI interface.
> Unfortunately I can not find any examples how to use an OVF virtual 
> system description in combination with deltacloud.
> Do you have any working examples?
>
> Thanks in advance,
> Best regards
> David
>
>
>




Re: OVF support in deltacloud

Posted by David Madner <e0...@student.tuwien.ac.at>.
Thank you for this information, could you provide a small example?
Which URL should be used to import the OVF specs (e.g. 
http://localhost:3001/cimi/system_import)?
Do I need some special HTTP Header value, like "Content-Type: 
application/ovf" ?

Cheers,
David

On 13.08.2013 21:17, Koper, Dies wrote:
> Hi David,
>
> It's a work in progress, but have a look at this commit:
>
> https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73a1
> 66560abe41b24a35d
>
> A lot of values are still hard-coded (including the entry in the systems
> collections), but if you change them according to your environment you
> be able to import and export OVF packages using the CIMI interface with
> a vCenter backend.
>
> Regards,
> Dies Koper
>
> -----Original Message-----
> From: David Madner [mailto:e0926741@student.tuwien.ac.at]
> Sent: Tuesday, August 13, 2013 7:58 PM
> To: dev@deltacloud.apache.org
> Subject: OVF support in deltacloud
>
> Hi all,
>
> I am currently writing on my master's thesis and I try to use deltacloud
> in combination with OVF (Open Virtualization Format) through the CIMI
> interface.
> Unfortunately I can not find any examples how to use an OVF virtual
> system description in combination with deltacloud.
> Do you have any working examples?
>
> Thanks in advance,
> Best regards
> David
>
>
>


RE: OVF support in deltacloud

Posted by "Koper, Dies" <di...@fast.au.fujitsu.com>.
Hi David,

It's a work in progress, but have a look at this commit:

https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73a1
66560abe41b24a35d

A lot of values are still hard-coded (including the entry in the systems
collections), but if you change them according to your environment you
be able to import and export OVF packages using the CIMI interface with
a vCenter backend.

Regards,
Dies Koper

-----Original Message-----
From: David Madner [mailto:e0926741@student.tuwien.ac.at] 
Sent: Tuesday, August 13, 2013 7:58 PM
To: dev@deltacloud.apache.org
Subject: OVF support in deltacloud

Hi all,

I am currently writing on my master's thesis and I try to use deltacloud
in combination with OVF (Open Virtualization Format) through the CIMI
interface.
Unfortunately I can not find any examples how to use an OVF virtual
system description in combination with deltacloud.
Do you have any working examples?

Thanks in advance,
Best regards
David