Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "HOWTO19"

From EGIWiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Template:Op menubar}} {{Template:Doc_menubar}} {{TOC_right}}  
{{Template:Op menubar}} {{Template:Doc_menubar}} {{TOC_right}}  


[[Category:Operations_Manuals]]
= SLA validation for a VO configuration at a specific Resource Centre<br>  =


= SLA validation for a VO configuration at a specific Resource Centre<br> =
== Testing OCCI server at a specific site with a specific VO<br> ==


== Testing OCCI server at a specific site with a specific VO<br> ==
<br>Create a VOMS proxy for the VO to be tested:&nbsp; <br>  
 
<pre>[spinoso@&lt;span style="background-color: navy; color: white;" /&gt;ui test_cloud]$ voms-proxy-init -voms vo.nbis.se  --rfc
<br>Create a VOMS proxy for the VO to be tested:&nbsp; <br>
<pre>[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ voms-proxy-init -voms vo.nbis.se  --rfc
Enter GRID pass phrase for this identity:
Enter GRID pass phrase for this identity:
Contacting voms2.grid.cesnet.cz:15033 [/DC=org/DC=terena/DC=tcs/C=CZ/ST=Hlavni mesto Praha/L=Praha 6/O=CESNET/CN=voms2.grid.cesnet.cz] "vo.nbis.se"...
Contacting voms2.grid.cesnet.cz:15033 [/DC=org/DC=terena/DC=tcs/C=CZ/ST=Hlavni mesto Praha/L=Praha 6/O=CESNET/CN=voms2.grid.cesnet.cz] "vo.nbis.se"...
Line 14: Line 12:
Created proxy in /tmp/x509up_u500.
Created proxy in /tmp/x509up_u500.
Your proxy is valid until Thu Sep 01 23:10:35 CEST 2016
Your proxy is valid until Thu Sep 01 23:10:35 CEST 2016
</pre>
</pre>  
<br>Get site OCCI endpoint from GOCDB: <br><br>
<br>Get site OCCI endpoint from GOCDB: <br><br>  


*TR-FC1-ULAKBIM -&gt; <br>
#site is TR-FC1-ULAKBIM<span style="background-color: navy; color: white;" /> <br>  
*https://goc.egi.eu/portal/index.php?Page_Type=Site&amp;id=982 -&gt;&nbsp; <br>
#on GOCDB: https://goc.egi.eu/portal/index.php?Page_Type=Site&amp;id=982<span style="background-color: navy; color: white;" />&nbsp; <br>  
*check service "eu.egi.cloud.vm-management.occi" -&gt; <br>
#check for service ''eu.egi.cloud.vm-management.occi''<span style="background-color: navy; color: white;" /> <br>  
*value is "http://fcctrl.ulakbim.gov.tr:8787/occi1.1?image=439e3478-df3f-4249-ac1b-28ae3933c09b&amp;platform=openstack&amp;resource=bc5ed503-c066-4d00-b99e-6bef76bcb732" -&gt; <br>
#value is ''http://fcctrl.ulakbim.gov.tr:8787/occi1.1?image=439e3478-df3f-4249-ac1b-28ae3933c09b&amp;platform=openstack&amp;resource=bc5ed503-c066-4d00-b99e-6bef76bcb732''<span style="background-color: navy; color: white;" /> <br>  
*trim the part before "?" -&gt; <br>
#trim the part before "?"<span style="background-color: navy; color: white;" /> <br>  
*'''"http://fcctrl.ulakbim.gov.tr:8787/occi1.1"'''
#'''"http://fcctrl.ulakbim.gov.tr:8787/occi1.1"'''


<br>Export it in the BASH env: <br>
<br>Export it in the BASH env: <br>  
<pre>[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ export ENDPOINT="http://fcctrl.ulakbim.gov.tr:8787/occi1.1"
<pre>[spinoso@&lt;span style="background-color: navy; color: white;" /&gt;ui test_cloud]$ export ENDPOINT="http://fcctrl.ulakbim.gov.tr:8787/occi1.1"
</pre>
</pre>  
<br>Perform OCCI access to the endpoint using a simple OCCI command, like: <br>
<br>Perform OCCI access to the endpoint using a simple OCCI command, like: <br>  
<pre>[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ /opt/occi-cli/bin/occi --endpoint $ENDPOINT --auth x509 --user-cred /tmp/x509up_u500 --voms --action describe --resource os_tpl
<pre>[spinoso@&lt;span style="background-color: navy; color: white;" /&gt;ui test_cloud]$ /opt/occi-cli/bin/occi --endpoint $ENDPOINT --auth x509 --user-cred /tmp/x509up_u500 --voms --action describe --resource os_tpl
########################################################################################################################################################################################################################################
########################################################################################################################################################################################################################################
[[ http://schemas.openstack.org/template/os#661a2b1e-8a10-4ed2-ae6b-5a56c50e62bc ]]
[[ http://schemas.openstack.org/template/os#661a2b1e-8a10-4ed2-ae6b-5a56c50e62bc ]]
Line 37: Line 35:




</pre>
</pre>  
[[Category:Operations_Manuals]]

Revision as of 12:01, 1 September 2016

Main EGI.eu operations services Support Documentation Tools Activities Performance Technology Catch-all Services Resource Allocation Security


Documentation menu: Home Manuals Procedures Training Other Contact For: VO managers Administrators



SLA validation for a VO configuration at a specific Resource Centre

Testing OCCI server at a specific site with a specific VO


Create a VOMS proxy for the VO to be tested: 

[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ voms-proxy-init -voms vo.nbis.se  --rfc
Enter GRID pass phrase for this identity:
Contacting voms2.grid.cesnet.cz:15033 [/DC=org/DC=terena/DC=tcs/C=CZ/ST=Hlavni mesto Praha/L=Praha 6/O=CESNET/CN=voms2.grid.cesnet.cz] "vo.nbis.se"...
Remote VOMS server contacted succesfully.
Created proxy in /tmp/x509up_u500.
Your proxy is valid until Thu Sep 01 23:10:35 CEST 2016


Get site OCCI endpoint from GOCDB:

  1. site is TR-FC1-ULAKBIM
  2. on GOCDB: https://goc.egi.eu/portal/index.php?Page_Type=Site&id=982 
  3. check for service eu.egi.cloud.vm-management.occi
  4. value is http://fcctrl.ulakbim.gov.tr:8787/occi1.1?image=439e3478-df3f-4249-ac1b-28ae3933c09b&platform=openstack&resource=bc5ed503-c066-4d00-b99e-6bef76bcb732
  5. trim the part before "?"
  6. "http://fcctrl.ulakbim.gov.tr:8787/occi1.1"


Export it in the BASH env:

[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ export ENDPOINT="http://fcctrl.ulakbim.gov.tr:8787/occi1.1"


Perform OCCI access to the endpoint using a simple OCCI command, like:

[spinoso@<span style="background-color: navy; color: white;" />ui test_cloud]$ /opt/occi-cli/bin/occi --endpoint $ENDPOINT --auth x509 --user-cred /tmp/x509up_u500 --voms --action describe --resource os_tpl
########################################################################################################################################################################################################################################
[[ http://schemas.openstack.org/template/os#661a2b1e-8a10-4ed2-ae6b-5a56c50e62bc ]]
title:        Ubuntu-TrustyServer
term:         661a2b1e-8a10-4ed2-ae6b-5a56c50e62bc
location:     /occi1.1/os_tpl/661a2b1e-8a10-4ed2-ae6b-5a56c50e62bc
[cut]