Difference between revisions of "Federated Cloud OCCI to IM Migration"
(Created page with "{{Fedcloud_Menu}} {{TOC_right}} Category:Federated_Cloud This page gives instructions on how to migrate from OCCI to IM for using EGI FedCloud resources") |
|||
Line 3: | Line 3: | ||
This page gives instructions on how to migrate from OCCI to IM for using EGI FedCloud resources | This page gives instructions on how to migrate from OCCI to IM for using EGI FedCloud resources | ||
= Setup of IM = | |||
= Getting information about available images/flavors = | |||
While OCCI had the possibility to query the [[HOWTO11#How_to_list_the_OS_templates_.28aka_VM_Images.29_in_a_site|mixins at the site], the returned information is limited and does not include the needed details to determine which mixing is relevant for a given application. IM does not provide a way to query the images or flavors at the site, instead you should use AppDB, either via the browser or using [https://docs.google.com/presentation/u/1/d/19Yh3kNxl01DfcrDgQf12w-KQW5Zrd_QnYP2iGp9Kg2Y/edit?ts=5a2ab515#slide=id.p AppDB IS APIs], to discover site capabilities. | |||
= Creating a VM = | |||
Creation of a VM using OCCI requires a <code>PUT</code> request to the <code>/compute</code> URL of the service with the right templates as mixins and a title. With IM you need to define a RADL description of the VM that includes similar information. See the comparison below: | |||
{| style="border:1px solid black; text-align:left;" class="wikitable" cellspacing="0" cellpadding="5" | |||
|- style="background:lightgray;" | |||
! OCCI | |||
! IM | |||
|- | |||
| | |||
occi --endpoint <ENDPOINT> --auth x509 --user-cred $X509_USER_PROXY | |||
--voms \ --action create --resource compute | |||
--attribute occi.core.title="<TITLE>" \ | |||
--mixin <OS_TPL> --mixin <RES_TPL> | |||
| | |||
network public (outbound = 'yes' ) | |||
system vm ( | |||
instance_type = '<RES_TPL>' and | |||
net_interface.0.connection = 'public' and | |||
net_interface.0.dns_name = '<TITLE>' and | |||
disk.0.os.name = 'linux' and | |||
disk.0.image.url= ['<ENDPOINT>/<OS_TPL>'] and | |||
disk.0.os.credentials.username = 'cloudadm' | |||
) | |||
deploy vm 1; | |||
|} | |||
IM uses RADL language to describe resources. Gi | |||
= Command Line Interface = |
Revision as of 16:43, 20 June 2018
Overview | For users | For resource providers | Infrastructure status | Site-specific configuration | Architecture |
This page gives instructions on how to migrate from OCCI to IM for using EGI FedCloud resources
Setup of IM
Getting information about available images/flavors
While OCCI had the possibility to query the [[HOWTO11#How_to_list_the_OS_templates_.28aka_VM_Images.29_in_a_site|mixins at the site], the returned information is limited and does not include the needed details to determine which mixing is relevant for a given application. IM does not provide a way to query the images or flavors at the site, instead you should use AppDB, either via the browser or using AppDB IS APIs, to discover site capabilities.
Creating a VM
Creation of a VM using OCCI requires a PUT
request to the /compute
URL of the service with the right templates as mixins and a title. With IM you need to define a RADL description of the VM that includes similar information. See the comparison below:
OCCI | IM |
---|---|
occi --endpoint <ENDPOINT> --auth x509 --user-cred $X509_USER_PROXY --voms \ --action create --resource compute --attribute occi.core.title="<TITLE>" \ --mixin <OS_TPL> --mixin <RES_TPL> |
network public (outbound = 'yes' ) system vm ( instance_type = '<RES_TPL>' and net_interface.0.connection = 'public' and net_interface.0.dns_name = '<TITLE>' and disk.0.os.name = 'linux' and disk.0.image.url= ['<ENDPOINT>/<OS_TPL>'] and disk.0.os.credentials.username = 'cloudadm' ) deploy vm 1; |
IM uses RADL language to describe resources. Gi