Deploy Mediawiki using Fiware Lab facilities

Similar documents
Quick Start Guide to Compute Canada Cloud Service

OpenStack Tutorial. Shihabur R. Chowdhury CS Winter 2017 University of Waterloo

Minimal OpenStack Starting Your OpenStack Journey

Part2: Let s pick one cloud IaaS middleware: OpenStack. Sergio Maffioletti

OpenStack Admin User Guide

VMware Integrated OpenStack User Guide. VMware Integrated OpenStack 4.1

VMware Integrated OpenStack User Guide

BRKDCT-1253: Introduction to OpenStack Daneyon Hansen, Software Engineer

OpenStack End User Guide. SUSE OpenStack Cloud 8

getting started guide

Deployment Guide for Nuage Networks VSP

Deployment Guide for Nuage Networks VSP

Upcoming Services in OpenStack Rohit Agarwalla, Technical DEVNET-1102

Security Gateway for OpenStack

Deploying a distributed application with OpenStack

Introduction to OpenStack

Contrail Sandbox Tutorial Script

User Workspace Management

CS-580K/480K Advanced Topics in Cloud Computing. OpenStack

NephOS. A Single Turn-key Solution for Public, Private, and Hybrid Clouds

VSEC FOR OPENSTACK R80.10

GETTING STARTED WITH OPENSTACK. Kenneth Hui, Rackspace Dan Radez, Red Hat April 27, 2016

The Total Newbie s Introduction to Heat Orchestration in OpenStack

OpenStack Havana All-in-One lab on VMware Workstation

Oracle Cloud IaaS: Compute and Storage Fundamentals

Inception Cloud User s Guide

DEEP DIVE: OPENSTACK COMPUTE

Build Cloud like Rackspace with OpenStack Ansible

NephOS. A Single Turn-key Solution for Public, Private, and Hybrid Clouds

INSTALLATION RUNBOOK FOR Triliodata + TrilioVault

INSTALLATION RUNBOOK FOR Iron.io + IronWorker

Architecture and terminology

Installation Runbook for Apcera on Mirantis OpenStack

"Charting the Course... H8Q14S HPE Helion OpenStack. Course Summary

OpenStack Summit Half-Day Track

Amazon Web Services Hands on EC2 December, 2012

CloudMan cloud clusters for everyone

Kubernetes on Openstack

INSTALLATION RUNBOOK FOR. VNF (virtual firewall) 15.1X49-D30.3. Liberty. Application Type: vsrx Version: MOS Version: 8.0. OpenStack Version:

Openstack Installation Guide

CISE Research Infrastructure: Mid-Scale Infrastructure - NSFCloud (CRI: NSFCloud)

OpenStack Command-Line Interface Reference

Transparent Service Migration to the Cloud Clone existing VMs to CloudStack/OpenStack templates without user downtime. CloudOpen Seattle 2015

Fuel VMware DVS plugin testing documentation

OPENSTACK: THE OPEN CLOUD

OpenStack Lab on VMware Workstation Setting up the All-In-One VM

Red Hat OpenStack Platform 14

Introduction to OpenStack Trove

HPE Digital Learner OpenStack Content Pack

VMware + OpenStack. Dan Wendlandt Director of Product Management VMware VMware Inc. All rights reserved.

Analyzing Performance of OpenStack with Grafana Dashboards

Simplified CICD with Jenkins and Git on the ZeroStack Platform

CloudOpen Europe 2013 SYNNEFO: A COMPLETE CLOUD STACK OVER TECHNICAL LEAD, SYNNEFO

Introduction to Neutron. Network as a Service

OpenStack Magnum Hands-on. By Saulius Alisauskas and Bryan Havenstein

At Course Completion Prepares you as per certification requirements for AWS Developer Associate.

CIT 668: System Architecture

1. INTRODUCTION to AURO Cloud Computing

Comparison of OpenStack Installers

THE CEPH POWER SHOW. Episode 2 : The Jewel Story. Daniel Messer Technical Marketing Red Hat Storage. Karan Singh Sr. Storage Architect Red Hat Storage

Delivering IaaS for the Greek Academic and Research Community

Isn't it Ironic? Managing a bare metal cloud. devananda.github.io/talks/isnt-it-ironic.html. Devananda van der Veen

Using the vrealize Orchestrator OpenStack Plug-In 2.0. Modified on 19 SEP 2017 vrealize Orchestrator 7.0

Resizing your AWS VPC NAT Instance to a Lower Cost Instance Type

TECHNICAL REPORT. Design Considerations for Using Nimble Storage with OpenStack

High Availability for Enterprise Clouds: Oracle Solaris Cluster and OpenStack

cpouta exercises

Metadata Tagging in Cinder

Juniper JN0-410 Exam. Volume: 65 Questions. Question No: 1 What are two valid service VMs in a service chain? (Choose two.) A.

Scyld Cloud Manager Documentation

Deploying a Production Gateway with Airavata

OpenStack Enabling DevOps Shannon McFarland CCIE #5245 Distinguished DEVNET-1104

Alternatives for Improving OpenStack Networking to Address NFV Needs

Best Practice Deployment of F5 App Services in Private Clouds. Henry Tam, Senior Product Marketing Manager John Gruber, Sr. PM Solutions Architect

Jumpstart your Production OpenStack Deployment with

This video is part of the Microsoft Virtual Academy.

OpenStack Technology Review & Demo

HPE HELION CLOUDSYSTEM 9.0. Copyright 2015 Hewlett Packard Enterprise Development LP

What s New in Newton. Emily Hugenbruch, Advisory Software

Quantum, network services for Openstack. Salvatore Orlando Openstack Quantum core developer

Red Hat OpenStack Platform 10 Product Guide

HPE Helion OpenStack Carrier Grade 1.1 Release Notes HPE Helion

BCS EXIN Foundation Certificate in OpenStack Software Syllabus

1. What is Cloud Computing (CC)? What are the Pros and Cons of CC? Technologies of CC 27

5 Things You Need for a True VMware Private Cloud

Openstack Networking Design

Docker in Appsoma PaaS. Containers FTW

DEPLOYING NFV: BEST PRACTICES

Cloud Integration with OpenStack (OVSDB/NetVirt)

FUJITSU Software ServerView Cloud Monitoring Manager V1.0. Overview

Huawei FusionSphere 6.0 Technical White Paper on OpenStack Integrating FusionCompute HUAWEI TECHNOLOGIES CO., LTD. Issue 01.

Building Service Platforms using OpenStack and CEPH. Malte Dreyer

Multiattach, Image Caching, and Other New Block Storage Features

Alarm Counter. A Ceilometer OpenStack Application

OTC API Technical White Paper. Issue 2.0. Date

Installation runbook for Hedvig + Cinder Driver

CSC- Bioweek 2018 Using cpouta for cloud computing Kimmo Mattila, Shubham Kapoor, Ari-Matti Saren (Jukka Nousiainen)

SaaSaMe Transport Workload Snapshot Export for. Alibaba Cloud

OpenStack Mitaka Release Overview

Overview. SUSE OpenStack Cloud Monitoring

Transcription:

Deploy Mediawiki using Fiware Lab facilities José Ignacio Carretero Guarde R&D Engineer at Telefonica I+D. In charge of Spain FIWARE Lab Node joseignacio.carreteroguarde@telefonica.com

Mediawiki and FIWARE Lab APIs (Openstack) 2

What Mediawiki has to do with FIWARE Lab (I) Nothing? 3

What Mediawiki has to do with FIWARE Lab (II)...But it could be good vehicle to show some things about FIWARE Lab IaaS reference Implementation GE. 4

Installing an Applicacion: Mediawiki Why Wikimedia? If it has nothing to do with FIWARE. It has a backend Database (Mysql) It has a Frontend Web Server (Apache) I Allows me to show some tools: IaaS GE. I Know how it Works, So I can automate it. Images and files are stored in Apache ( /wiki/images) Data in the database is stored in /var/lib/mysql 5

IaaS GE FIWARE Reference Implementation https://catalogue.fiware.org/enablers/iaas-ge-fiware-reference-imp lementation/documentation We are using OpenStack Vanilla release for the IaaS GE. Openstack APIs work: Compute APIs Block Storage APIs Image Service Object Storage There are CLIs writen in Python...6

How to locally install the CLIs # Assuming Python 2.7, pip and virtualenv installed virtualenv osdemo source osdemo/bin/activate pip install python openstackclient pip install python swiftclient 7

A First Approach to the Installation Process 8

Installing an Applicacion: Mediawiki (I) 9

Create a first VM Virtual Machines Instances Instances are managed by Nova. We need a few things before deploying an instance A Keypair In order to be Able to SSH our instances Security Groups/Rules Because OpenStack acts like a closed Firewall for every instance. 10

Nova: Key Pairs and Security Groups # Creating the keypair nova keypair add summitkp tee summitkp && chmod 400 summitkp # Creating the security group and rules nova secgroup create openthings opens_some_ports nova secgroup add rule openthings tcp 22 22 0/0 nova secgroup add rule openthings tcp 80 80 0/0 nova secgroup add rule openthings icmp 1 1 0/0 # Creating the security group and rules (What I did!): nova secgroup create allopen open_everything nova secgroup add rule allopen tcp 1 65535 0/0 nova secgroup add rule allopen ucp 1 65535 0/0 nova secgroup add rule allopen icmp 1 1 0/0 11

Create a first VM (ii) Boot our first instance with some parameters (At least) One network ID to allow networking Flavor The size of the Instance Our Security Group our firewall configuration. A Keypair To SSH our instance The base image I ll use an Ubuntu in the demos. Assign a floating IP to some of our instances A Floating IP is needed to SSH our instances. We might not be able to SSH private IPs 1 Floating IP is allowed per User. 12

Nova: Boot and add a floating IP # Find the network ID NETUUID=$(openstack network list awk '/ node int net 01 / {print $2}') # Boot Virtual Machine nova boot nic net id=$netuuid image base_ubuntu_14.04 \ key name summitkp \ security groups allopen \ flavor m1.small mydatabase # Creating a floating IP: PUBLIC_EXT_NET=public ext net 01 openstack floating ip create $PUBLIC_EXT_NET # Associate the IP to our instance: nova list floating ip create $PUBLIC_EXT_NET openstack floating list nova floating ip associate mydatabase 130.206.112.0 13

Nova: Consoles # Get console URL nova get vnc console mydatabase novnc # Creating the security group and rules nova console log mydatabase 14

Cinder: Ephemeral Vs Persistent disks Compute is thought to Compute When Instances die, Ephemeral disks die Persistent Disk Block Storage Cinder manages Persistent Disks The disks, once created can be attached to instances Instances must format (once) and mount the disks before use Persistent disk will survive Instances. A way to Keep data apart from computation. 15

Cinder: Persistent Disk Creation # Create a Persistent disk openstack volume create size 1 myvolume openstack volume list VOLUMEID=$(openstack volume list awk '/ myvolume / {print $2}') # Attaching the volume to the instance nova volume attach mydatabase $VOLUMEID # Or attaching at boot time nova boot nic net id=$netuuid image base_ubuntu_14.04 \ key name summitkp \ security groups allopen \ block device mapping vdb=$volumeid flavor m1.small mydatabase 16

Automate!!! 17

Automate: Why? Increase Productivity Automated processes reduce defects Reduce Human Errors Processes are run effortlessly Processes are more flexible => Changes are easier Increase satisfaction You can write many other things here And here. 18

Automate: Using GUI (Cloud Portal) Easy to use (maybe... ) Too many clicks (maybe)... Too error prone (almost)... Impossible automation 19

Automate: How? Tools to automate Puppet/Chef An Agent is required in the instance Ansible Many features, even some for OpenStack Some OpenStack Tools Heat / Murano Ad Hoc Scripts This time it was my option, so I can show some CLI commands 20

Installing an Applicacion: Mediawiki (II) kmysql-vol apache-vol /var/lib/mysql /var/www/html/wiki/images 21

One Installation Process: Database Create the Persistent Disk (if it doesn t exists) Boot the VM attaching the Persistent Disk and injecting a Script The Script Formats the Persistent Disk and mounts it (using /etc/fstab) /var/lib/mysql Installs MySQL-Server software Creates Database and user for the Wiki. 22

One Installation Process: Apache Create the Persistent Disk (if it doesn t exists) Boot the VM attaching the Persistent Disk and injecting a Script The Script Formats the Persistent Disk Installs Apache, php5, libs, etc Downloads Wikimedia and untars it /var/www/html Downloads SyntaxHighlight_plugin and untars it. Mounts the disk (/var/www/html/wiki/images) Creates a FloatingIP and associates it to the instance 23

The new boot command for Nova # Or attaching at boot time nova boot nic net id=$netuuid image base_ubuntu_14.04 \ key name summitkp \ security groups allopen \ block device mapping vdb=$volumeid user data onescript flavor m1.small mydatabase 24

The Mediawiki Wizard 25

Can t automate everything... but almost Mediawiki installation can t be automated but I can automate LocalSettings.php configuration The Script Gets the Public IP of our apache Sets the Logo, Extensions of Documents which can be uploaded Configures SyntaxHighlight extension Uploads LocalSettings.php and logo.jpg 26

Some other tools: Images and Object Storage 27

Snapshots from instances I can take Snapshots of my instances So I can boot a preconfigured Instance Glance - The image service is used to create Snapshots I ve taken an Snapshot of my Database Instance The process takes some time... It is a complicated process that involves many subprocesses 28

Image Commands # Create an Snapshot from an Instance nova image create krtmysql krtmysql snp # List images openstack image list # Delete images openstack image delete $IMAGE_ID 29

Object Storage It stores static Objects We can retrieve the objects in the future Swift is the reference implementation of FIWARE s Object Storage GE https://catalogue.fiware.org/enablers/object-storage-ge-fiware -implementation Objects are Stored in containers I ve uploaded my Preconfigured Mediawiki in a.tgz file to Object Store Let s use this in next Mediawiki30installations (as a demo)

Swift Commands # Create a new Container swift post summit # Upload an object to the Container swift upload summit wiki.tgz # List Containers, list objects from a container swift list swift list summit # Retrieve an object from a container swift download summit wiki.tgz 31

Swift Commands (to automate) # Retrieve an object from a container In some scripts. token=($(openstack token issue \ awk '/ id / / project_id / {print $4}')) TOKEN=${token[0]} TENANT_ID=${token[1]} URL=http://130.206.112.3:8080/v1 # Use the token, and the tenant. swift os auth token $TOKEN os storage url=$url/auth_$tenant_id download summit wiki.tgz 32

https://github.com/jicarretero/summitmalaga2016 33

Thank you! http://fiware.org Follow @FIWARE on Twitter