Creating Vms DCRM Short

download Creating Vms DCRM Short

of 22

Transcript of Creating Vms DCRM Short

  • 8/12/2019 Creating Vms DCRM Short

    1/22

  • 8/12/2019 Creating Vms DCRM Short

    2/22

    Workshop Agenda

    FI-WARE Intro - J. Hierro (TID) FI-LAB Portal + Deploy your VMs - G. Toffetti (I

    Cloud blueprints - F. Lopez and S. Garcia (TID) Open APIs - J. Kennedy (Intel) Authorization using IdM - J. Cervioand A. Tapiad

    (UPM)

    FI-WARE Business Framework - Markus Heller anThorsten Sandfuchs (SAP) Connecting sensors to FI-WARE platform - Carlos

    (TID)

  • 8/12/2019 Creating Vms DCRM Short

    3/22

    FI-WARE Core Platform Overview

    Developer

    tools

    Service delivery Cloud Hosting Internetof Things

    SupportServices

    I2ND = Interface to the Network and devices

  • 8/12/2019 Creating Vms DCRM Short

    4/22

    FI-WARE Cloud Generic Enablers & Partners

    IdentityManagement &

    Access Control GE[Security WP]

    UI

    IaaS ServiceManagement (SM) GE

    PaaS Management GE

    Software Deploymentand Configuration

    (SDC) GE

    IaaResou

    (

    MonitoringGE

    ObjectStorage GE

    EdgeletManagement GE

    Cloud Proxy GE[joint with I2ND WP]

    R R

    R

    RR

    R

    R

    R

    RR

    R

  • 8/12/2019 Creating Vms DCRM Short

    5/22

    Infrastructure-as-a-Service (IaaS) Data Center

    Resource Management (DCRM) GEOffers cloud-based hosting of virtual machines, provpre-configured images, as well as storage volumes aconnectivity

    Provided by IBM (with contributions by Intel)Based on OpenStackleading open source IaaS APwidely adopted by the industryUsed to host all the FI-WARE GEs in the Testbed, a

    IdentityManagement &Access Control

    GE[Security WP]

    UI

    IaaS Service Management

    (SM) GEPaaS Management GE

    Software Deployment andConfiguration (SDC) GE

    IaaS Da

    Manag

    MonitoringGE

    ObjectStorage GE

    EdgeletManagement GE

    Cloud Proxy GE[joint with I2ND WP]

    R R

    R

    RR

    R

    R

    R

    RR

    R

  • 8/12/2019 Creating Vms DCRM Short

    6/22

    OpenStack is a global collaboration of developers & cloud computing technoloproduce an ubiquitous Infrastructure as a Service (IaaS) open source cloud co

    for public & private clouds.

    Platinum Sponsors

    http://openstack.org

    OpenStack Compute (Nova)Provision and manage large networks of virtual machines

    OpenStack Storage (Cinder, Swift)Object and Block storage for use with servers and applications

    OpenStack Networking (Quantum/Neutron)Pluggable, scalable, API-driven network and IP management

    OpenStack Image ServiceCatalog and manage massive librari

    OpenStack Identity ServiceUnified authentication across all Opewith existing authentication systems

    47 UGs5600+ Individuals

    61

    OpenStack Foundation:

    Code available under Apache 2.0 license. Deelasticity, share nothing & distribute everythin

    OpenStack in a Nutshell

  • 8/12/2019 Creating Vms DCRM Short

    7/22

    DCRM GE Basic Concepts

    Virtual server:

    a virtualized container that can host an arbitrary Operating System and an arbitrastack on top, installed within the virtual server

    Virtual disk:

    represents a persistent virtual disk that can be potentially attached to an arbitrary

    Virtual network:

    represents a logical network abstraction that would typically represent an L2 seg Virtual image:

    a pre-packaged virtual server image.

  • 8/12/2019 Creating Vms DCRM Short

    8/22

    DCRM-specific features

    With respect to the OpenStack baseline, DCRM provides in addition the following set advanced features:

    Shared storage configuration enabling live VM migration and related scenarios VM High Availability Adaptive scheduling for optimized resource utilization Support for QoS guarantees for workloads Support for placement policies

    Support of concurrent management and deployment workflows in a scalable cons

    Unified management of heterogeneous environments Support for policy-based virtual network connectivity

  • 8/12/2019 Creating Vms DCRM Short

    9/22

    DCRM References

    DCRM Specification

    http://bit.ly/18LU5ED

    DCRM APIs:

    OpenStack: http://bit.ly/11QyJTR OCCI: http://bit.ly/11gtHei

    http://bit.ly/18LU5EDhttp://bit.ly/11QyJTRhttp://bit.ly/11gtHeihttp://bit.ly/11gtHeihttp://bit.ly/11gtHeihttp://bit.ly/11gtHeihttp://bit.ly/11gtHeihttp://bit.ly/11QyJTRhttp://bit.ly/11QyJTRhttp://bit.ly/11QyJTRhttp://bit.ly/11QyJTRhttp://bit.ly/18LU5EDhttp://bit.ly/18LU5EDhttp://bit.ly/18LU5EDhttp://bit.ly/18LU5EDhttp://bit.ly/18LU5EDhttp://bit.ly/18LU5ED
  • 8/12/2019 Creating Vms DCRM Short

    10/22

    DCRM Architecture (2nd Release)

    Virtual ServerMgmt Service

    Virtual ImageMgmt Service

    PlacementService

    PolicyService

    Virtual DiskMgmt Service

    Virtual NetworkMgmt Service

    API

    Configuration Repository

    Image Repositoryimages

    IdentityManagement

    Service

    Message Fabric

    R

    R

    R

    OpenStack / OCCI

    OpenStackComputing In

    Op

  • 8/12/2019 Creating Vms DCRM Short

    11/22

    Creating an account on FI-LAB

    Register at:

    http://account.lab.fi-ware.eu

    Steps:

    Insert name and email Choose password

    Submit

    Receive confirmation email Click on account activation link

    Login

  • 8/12/2019 Creating Vms DCRM Short

    12/22

    NOTE: before creating a VM

    [Important] Set-up steps:

    Allocate public IPs to project

    Update firewall rules of security groups to be able to access VMs

    Generate private/public key pair

    Remember you have limits (quotas):

    3 instances 3 floating IPs 6 cores 10 GB storage 15 GB RAM

  • 8/12/2019 Creating Vms DCRM Short

    13/22

    Thank you!

  • 8/12/2019 Creating Vms DCRM Short

    14/22

    OpenStack API Walk-through

    http://docs.openstack.org/api/quick-start/content/index.html

  • 8/12/2019 Creating Vms DCRM Short

    15/22

    Authentication

    REQ:

    curl -d '{"auth":{"passwordCredentials":{"username": "giovanni", "password":"secr"Content-type: application/json" http://130.206.80.100:5000/v2.0/tokens

    RES:

    {"access": {"token": {"expires": "2013-06-05T09:50:28Z", "id":"fb4a4642f4b848f48d78052c98782ba3"}, "serviceCatalog": {}, "user": {"username

    "roles_links": [], "id": "dcdef6b4d8644d209d066ce1ebcf7994", "roles": [], "name":

  • 8/12/2019 Creating Vms DCRM Short

    16/22

    Get TenantId

    REQ:

    curl -k -D - -H "X-Auth-Token: fb4a4642f4b848f052c98782ba3" -X 'GET' -v

    http://130.206.80.100:5000/v2.0/tenants -H 'Content-type: application/json'

    RES:

    {"tenants_links": [],

    "tenants": [{

    "enabled": true, "description": "FI-WARE Project", "name":"FIWARE",

    "id": "3bb69a4204334bfc98e0199cb33000ea

    }]

    }

  • 8/12/2019 Creating Vms DCRM Short

    17/22

    Discover endpoints

    REQ:

    curl -d '{"auth":{"passwordCredentials":{"username: "giovanni", "password":"secre"3bb69a4204334bfc98e0199cb33000ea"}}' -H "Content-type: application/json"http://130.206.80.100:5000/v2.0/tokens

    RES:

    "serviceCatalog": [{

    "endpoints": [{

    "adminURL": "http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000e

    "region": "RegionOne",

    "internalURL": "http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000

    "publicURL": "http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea

    "endpoints_links": [],

    "type": "compute",

    "name": "nova"

    },

  • 8/12/2019 Creating Vms DCRM Short

    18/22

    List images

    REQ:

    curl -k -D -H "X-Auth-Token: $token" -X 'GET' http://130.206.80.11:8774/v2/$tenant

    'Content-type: application/json

    RES:

    {

    "images": [

    {

    "id": "a5848d58-f907-457a-9bf0-e8f1cf63256b",

    "links": [{ "href": http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/images/91eb65c-f1542175f6e6",

    "rel": "self"}, { "href": ", "rel": "bookmark" }, {

  • 8/12/2019 Creating Vms DCRM Short

    19/22

    List flavors

    REQ:

    curl -k -D - -H "X-Auth-Token: $token" -X 'GET' http://130.206.80.11:8774/v2/$ten'Content-type: application/json

    RES:

    {

    "flavors": [{

    "id": "3",

    "links": [{ "href": http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/flavors/3",

    "rel": "self" }, { "href": ", "rel": "bookmark"

    }

  • 8/12/2019 Creating Vms DCRM Short

    20/22

    Create instance

    REQ:

    curl -k -H "X-Auth-Token: d889a8fdf8fb4d52b6e1b8771d0f59b8" -X 'POST'

    http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/servers -H 'Coapplication/json' -d '{"server": {"flavorRef":"http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/flavors/3", "im"http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/images/91eb4623-b65c-f1542175f6e6", "metadata": {"My Server Name": "Demo_server" }, "nametest"}}'

    RES:{"server": {"OS-DCF:diskConfig": "MANUAL", "id": "32e36513-dfc7-4dd6-bc31-206cbda8[{"href": "http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/servers/34dd6-bc31-206cbda85297", "rel": "self"}, {"href":"http://130.206.80.11:8774/3bb69a4204334bfc98e0199cb33000ea/servers/32e36513-d206cbda85297", "rel": "bookmark"}], "adminPass": "SBr5wXMqbqLj"}}

  • 8/12/2019 Creating Vms DCRM Short

    21/22

    List instances

    REQ:

    curl -k -D - -H "X-Auth-Token: d889a8fdf8fb4b8771d0f59b8" -X 'GET'http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/servers -H 'Contenapplication/json'

    RES:

    { "servers": [{ "id": "32e36513-dfc7-4dd6-bc31-206cbda85297", "links": [{"http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/servers/32e36513

    bc31-206cbda85297", "rel": "self" }, { "href": ..", "rel": "bookmark" } ],

    "name": "api-server-test"

    },.

  • 8/12/2019 Creating Vms DCRM Short

    22/22

    Stop instance

    REQ:

    curl -k -H "X-Auth-Token: $token" -X 'DELETE'http://130.206.80.11:8774/v2/3bb69a4204334bfc98e0199cb33000ea/servers/32e36513bc31-206cbda85297 -H 'Content-type: application/json'

    RES: HTTP code 200