Difference between revisions of "EGI Opendata platform"
Jump to navigation
Jump to search
Line 83: | Line 83: | ||
* Describe your instance to get i | * Describe your instance to get i | ||
<pre> | <pre> | ||
occi --endpoint http://cloud.recas.ba.infn.it:8787/occi/ --auth x509 --voms --user-cred /home/dscardaci/x509up_u504 --action describe --resource http://cloud.recas.ba.infn.it:8787/occi/compute/dc5db804-0d08-4604-b873-827322682956 | |||
############################################################################################################################################################################################## | |||
[[ http://schemas.ogf.org/occi/infrastructure#compute ]] | |||
>> location: /occi/compute/dc5db804-0d08-4604-b873-827322682956 | |||
occi.core.id = dc5db804-0d08-4604-b873-827322682956 | |||
occi.core.title = onedata-client100 | |||
occi.compute.cores = 2 | |||
occi.compute.hostname = onedata-client100 | |||
occi.compute.memory = 4096 | |||
occi.compute.state = active | |||
Links: | |||
[[ http://schemas.ogf.org/occi/core#link ]] | |||
>> location: /occi/networklink/dc5db804-0d08-4604-b873-827322682956_fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333_90.147.102.29 | |||
occi.networkinterface.mac = fa:16:3e:4f:8d:f3 | |||
occi.networkinterface.interface = eth0 | |||
occi.networkinterface.state = active | |||
occi.networkinterface.allocation = dynamic | |||
occi.networkinterface.address = 90.147.102.29 | |||
occi.core.source = http://cloud.recas.ba.infn.it:8787/occi/compute/dc5db804-0d08-4604-b873-827322682956 | |||
occi.core.target = http://cloud.recas.ba.infn.it:8787/occi/network/fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333 | |||
occi.core.id = dc5db804-0d08-4604-b873-827322682956_fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333_90.147.102.29 | |||
Mixins: | |||
[[ http://schemas.openstack.org/template/os#b7765c28-6bc6-438a-8b7c-b6873103c5f5 ]] | |||
title: Image for Docker Ubuntu 14.04 [Ubuntu/14.04/VirtualBox]_EGI_fedcloud | |||
term: b7765c28-6bc6-438a-8b7c-b6873103c5f5 | |||
location: /occi/os_tpl/b7765c28-6bc6-438a-8b7c-b6873103c5f5 | |||
[[ http://schemas.openstack.org/template/resource#8 ]] | |||
title: Flavor: medium | |||
term: 8 | |||
location: /occi/resource_tpl/8 | |||
Actions: | |||
[[ http://schemas.ogf.org/occi/infrastructure/compute/action#start ]] | |||
[[ http://schemas.ogf.org/occi/infrastructure/compute/action#stop ]] | |||
[[ http://schemas.ogf.org/occi/infrastructure/compute/action#restart ]] | |||
[[ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend ]] | |||
############################################################################################################################################################################################## | |||
</pre> | </pre> |
Revision as of 16:33, 20 September 2016
Overview | For users | For resource providers | Infrastructure status | Site-specific configuration | Architecture |
The EGI Open Data platform
Setup your ONEDATA deployment into the EGI Federated Cloud
This is a setep-by-step guide to setup a ONEDATA deployment into the EGI Federated Cloud. For further information about ONEDATA, please refer to its online documentation.
OneZone
- Create an instance using the EGI Docker (Ubuntu 14.04) image. Please, refer to the cli guide.
- Login into the new instance with your private key.
ssh -i [path-to-your-private-key] ubuntu@[ip-address-of-your-instance]
- Install docker-compose in the machine as root.
sudo -i curl -L https://github.com/docker/compose/releases/download/1.8.0-rc1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
and verify its setup:
~# docker-compose -v docker-compose version 1.8.0-rc1, build 9bf6bc6
don't forget to exit from the root shell.
- In the home of the ubuntu user download the OneData software:
git clone https://github.com/onedata/getting-started
- Go to the scenario 3.0 folder.
cd getting-started/scenarios/3_0_oneprovider_onezone_multihost/
- Install OneZone using the run_onedata.sh script:
sudo ./run_onedata.sh --zone &
Wait for the message "Congratulations! onezone has been successfully started."
Now your OneZone instance is ready. You can access it with your browser:
https://[ip-address-of-your-instance]
Please, login with
login:admin password:password
OneProvider
- Create an instance using the EGI Docker (Ubuntu 14.04) image. Please, refer to the cli guide.
- Create your storage in the cloud and store its ID in an environment variable.
occi --endpoint $ENDPOINT --auth x509 --voms --user-cred $X509_USER_PROXY --action create --resource storage --attribute occi.storage.size="num([number-og-GB])" --attribute occi.core.title="[storage_name]" [ID] export STORAGE_ID=[ID]
- Link the block storage to your instance.
occi --endpoint $ENDPOINT --auth x509 --voms --user-cred $X509_USER_PROXY --action link --resource $COMPUTE_ID --link $STORAGE_ID
- Describe your instance to get i
occi --endpoint http://cloud.recas.ba.infn.it:8787/occi/ --auth x509 --voms --user-cred /home/dscardaci/x509up_u504 --action describe --resource http://cloud.recas.ba.infn.it:8787/occi/compute/dc5db804-0d08-4604-b873-827322682956 ############################################################################################################################################################################################## [[ http://schemas.ogf.org/occi/infrastructure#compute ]] >> location: /occi/compute/dc5db804-0d08-4604-b873-827322682956 occi.core.id = dc5db804-0d08-4604-b873-827322682956 occi.core.title = onedata-client100 occi.compute.cores = 2 occi.compute.hostname = onedata-client100 occi.compute.memory = 4096 occi.compute.state = active Links: [[ http://schemas.ogf.org/occi/core#link ]] >> location: /occi/networklink/dc5db804-0d08-4604-b873-827322682956_fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333_90.147.102.29 occi.networkinterface.mac = fa:16:3e:4f:8d:f3 occi.networkinterface.interface = eth0 occi.networkinterface.state = active occi.networkinterface.allocation = dynamic occi.networkinterface.address = 90.147.102.29 occi.core.source = http://cloud.recas.ba.infn.it:8787/occi/compute/dc5db804-0d08-4604-b873-827322682956 occi.core.target = http://cloud.recas.ba.infn.it:8787/occi/network/fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333 occi.core.id = dc5db804-0d08-4604-b873-827322682956_fe82ef7b-4bb7-4c1e-b4ec-ec5c1b0c7333_90.147.102.29 Mixins: [[ http://schemas.openstack.org/template/os#b7765c28-6bc6-438a-8b7c-b6873103c5f5 ]] title: Image for Docker Ubuntu 14.04 [Ubuntu/14.04/VirtualBox]_EGI_fedcloud term: b7765c28-6bc6-438a-8b7c-b6873103c5f5 location: /occi/os_tpl/b7765c28-6bc6-438a-8b7c-b6873103c5f5 [[ http://schemas.openstack.org/template/resource#8 ]] title: Flavor: medium term: 8 location: /occi/resource_tpl/8 Actions: [[ http://schemas.ogf.org/occi/infrastructure/compute/action#start ]] [[ http://schemas.ogf.org/occi/infrastructure/compute/action#stop ]] [[ http://schemas.ogf.org/occi/infrastructure/compute/action#restart ]] [[ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend ]] ##############################################################################################################################################################################################
- Login into the new instance with your private key.
ssh -i [path-to-your-private-key] ubuntu@[ip-address-of-your-instance]
- Format and mount the block storage attached to the instance
sudo mkfs.ext3 /dev/vdb sudo mount /dev/vdb /mnt/
- Install docker-compose in the machine as root.
sudo -i curl -L https://github.com/docker/compose/releases/download/1.8.0-rc1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
and verify its setup:
~# docker-compose -v docker-compose version 1.8.0-rc1, build 9bf6bc6
don't forget to exit from the root shell.
- In the home of the ubuntu user download the OneData software:
git clone https://github.com/onedata/getting-started
- go to the scenario 3.0 folder.
cd getting-started/scenarios/3_0_oneprovider_onezone_multihost/
- Install OneZone using the run_onedata.sh script: