SlideShare a Scribd company logo
This presentation is licensed under a Creative Commons Attribution 4.0 International License
Ansible Makes oVirt DR
a Piece of Cake
Maor Lipchuk
Senior Software Engineer
Red Hat Israel
January 2018
Can a Disaster be Avoided?
2
Disasters In Our Day To Day
3
● Amazon explains big AWS outage, says employee
error took servers offline, promises changes
● Microsoft: Overheating caused Outlook and Hotmail
shutdown
● Google goes down for 5 minutes, Internet traffic drops
40%
● WhatsApp panic hits after messaging app suffers
worldwide outage
Disasters In Our Day To Day
What About oVirt?
4
5
oVirt Disaster Recovery Evolution
Pros
●
Simple file storage domain
●
Provides a backup solution for VMs and Templates
Cons
●
Not suitable for backing up the entire setup
●
Long copy operations
6
Export Storage Domain
●
OVF_STORE Disk
●
Import Storage Domain
7
oVirt 3.5 - Import Storage Domain
Metadata
OVF_STORE
OVF
OVF
OVF
OVF
OVF
Improvements
●
Recover process is faster
●
No copy operations are needed
●
All VMs and templates In the setup are recoverable
8
oVirt 3.5 - Import Storage Domain
Known Issues
●
Not a fully fledged, end to end solution for the entire oVirt
setup
●
The recovery process is done manually
●
Entities’ properties are not fully covered in OVF
9
oVirt 3.5 - Import Storage Domain
What Is New With oVirt 4.2
10
Adding missing attributes to the OVF
11
oVirt 4.2 - Fill In The Gaps
Cluster Name
External LUN Disk
Affinity Group
Affinity Label
Permissions
Vnic Profile
●
OVF_STORE disk includes “extra data” file
●
VM Statuses supported
12
oVirt 4.2 - Fill In The Gaps
DOW
N
UP
●
Define a way to support a recovery process for oVirt
setup to a separate site
13
oVirt 4.2 – DR site to site
Site To Site: Pre Requirements
14
Storage replication should be configured for the
storage domains to be recovered
15
Step 1 - Storage Replication
A pre configured secondary setup that
contains hardware properties such as
networks, clusters and hosts
16
Step 2 - Prepare “Just In Case” Setup
Secondary Site
PrimarySite
On recovery, the secondary setup will be used for recovery.
The recovery process includes
1. Import the replicated storage domains
2. Register all the VMs and Templates
3. Run all the VMs which were running in the original site
17
Step 2 - Prepare “Just In Case” Setup
18
How To Mix And Match?
Define a mapping file to map between primary site and
secondary site attributes.
Will be used on register entities
19
Step 3 - Mapping File
20
Step 3 - Mapping File
http://1.bp.blogspot.com/-
yPK9sZFw7qU/TqBDueEHcJI/AAAAAAAAB6I/34HinboIM
ao/s1600/Exhaustion.jpg
Warning!
Writing mapping files might be exhausting
oVirt Ansible Disaster Recovery
22
●
Part of ansible galaxy
https://galaxy.ansible.com/oVirt/disaster-recovery/
●
A role which is part of the ovirt-ansible repository
●
oVirt-ansible maintains multiple Ansible roles that can be
deployed to easily configure and manage various parts of
the oVirt infrastructure.
●
oVirt ansible is maintained by Ondra Machacek
23
oVirt Ansible Disaster Recovery
●
Generate Mapping
●
Failover
●
Failback
24
oVirt Ansible Disaster Recovery
●
Go over the entire primary setup and creates a mapping
template automatically
●
Admin needs to fill in the missing parts of the secondary site
25
Mapping Generator
---
- name: Generate mapping
hosts: localhost
connection: local
vars:
site: http://localhost:8080/ovirt-engine/api
username: admin@internal
password: my_password
ca: /pki/ovirt-engine/ca.pem
var_file: my_var_file.yml
vars_files:
- passwords.yml
roles:
- ovirt-ansible-disaster-recovery
26
Mapping Generator – Define a Play
27
Mapping Generator – Simple as it gets
28
Mapping Generator – Output Example
---
dr_sites_primary_url:
http://localhost:8080/ovirt-engi-ne/api
dr_sites_primary_username:
admin@internal
dr_sites_primary_ca_file:
/home/mlipchuk/ovirt-
share/etc/pki/ovirt-engine/ca.pem
# Please fill in the following properties for the secondary site:
dr_sites_secondary_url:
dr_sites_secondary_username:
dr_sites_secondary_ca_file:
dr_import_storages:
my_var_file.yml
29
DOOMSDAY
https://data.whicdn.com/images/46740424/large.png
●
Recover the secondary setup automatically using the a
mappings var file
30
Ansible Failover
●
Automation process
- Import master storage domains
- Import all other storage domains
- Register Templates (with mapping)
- Register VMs (with mapping)
- Run HA VMs
- Run other VMs
31
Ansible Failover - Automation
---
- name: Failover oVirt setup
hosts: localhost
connection: local
vars:
dr_target_host: secondary
dr_source_map: primary
vars_files:
- passwords.yml
roles:
- ovirt-ansible-disaster-recovery
32
Ansible Failover – Define a Play
33
Failover – Simple as it gets
Automation Process (Failback)
●
Restoring the primary site back again after it has been
shifted to a secondary site
34
Ansible Failback
Automation Process (Failback)
- Get the primary setup ready for import
- Clean the secondary site from its storage domains
- Notice the admin to switch the replication process
- Import replicated storage domains to the primary
- Register all Templates and VMs
- Run all VMs which ran before (HA first and then all other
VMs)
35
Ansible Failback
Summary
36
●
Filled in the gaps in the VM’s and template’s OVF
●
VMs statuses were added in the OVF_STORE disk
●
Recovery process is now automatically thanks to Ansible
●
User is able to failover and failback the environment
37
Summary
- Ansible galaxy
https://galaxy.ansible.com/oVirt/disaster-recovery/
- oVirt ansible repo
https://github.com/oVirt/ovirt-ansible.git
- oVirt ansible disaster recovery repo:
https://github.com/oVirt/ovirt-ansible-disaster-recovery
38
Links
This presentation is licensed under a Creative Commons Attribution 4.0 International License
THANK YOU
http://www.ovirt.org
users@ovirt.org
mlipchuk@redhat.com

More Related Content

What's hot

Leases and-caching final
Leases and-caching finalLeases and-caching final
Leases and-caching finalGluster.org
 
Accessing gluster ufo_-_eco_willson
Accessing gluster ufo_-_eco_willsonAccessing gluster ufo_-_eco_willson
Accessing gluster ufo_-_eco_willsonGluster.org
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Gluster.org
 
Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Ceph Community
 
Gluster technical overview
Gluster technical overviewGluster technical overview
Gluster technical overviewGluster.org
 
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapiDeveloping apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapiGluster.org
 
Improving hyperconverged performance
Improving hyperconverged performanceImproving hyperconverged performance
Improving hyperconverged performanceDenis Chapligin
 
GFProxy: Scaling the GlusterFS FUSE Client
GFProxy: Scaling the GlusterFS FUSE Client	GFProxy: Scaling the GlusterFS FUSE Client
GFProxy: Scaling the GlusterFS FUSE Client Gluster.org
 
Integration of Glusterfs in to commvault simpana
Integration of Glusterfs in to commvault simpanaIntegration of Glusterfs in to commvault simpana
Integration of Glusterfs in to commvault simpanaGluster.org
 
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vosOSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vosNETWAYS
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Gluster.org
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringShapeBlue
 
Ceph RBD Update - June 2021
Ceph RBD Update - June 2021Ceph RBD Update - June 2021
Ceph RBD Update - June 2021Ceph Community
 
Gluster as Block Store in Containers
Gluster as Block Store in ContainersGluster as Block Store in Containers
Gluster as Block Store in ContainersGluster.org
 
Managing ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderManaging ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderMaor Lipchuk
 
Arbiter volumes in gluster
Arbiter volumes in glusterArbiter volumes in gluster
Arbiter volumes in glusteritisravi
 
Kkeithley ufonfs-gluster summit
Kkeithley ufonfs-gluster summitKkeithley ufonfs-gluster summit
Kkeithley ufonfs-gluster summitGluster.org
 

What's hot (20)

Leases and-caching final
Leases and-caching finalLeases and-caching final
Leases and-caching final
 
Accessing gluster ufo_-_eco_willson
Accessing gluster ufo_-_eco_willsonAccessing gluster ufo_-_eco_willson
Accessing gluster ufo_-_eco_willson
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
 
Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0Performance optimization for all flash based on aarch64 v2.0
Performance optimization for all flash based on aarch64 v2.0
 
Gluster technical overview
Gluster technical overviewGluster technical overview
Gluster technical overview
 
Ceph on Windows
Ceph on WindowsCeph on Windows
Ceph on Windows
 
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapiDeveloping apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapi
 
Improving hyperconverged performance
Improving hyperconverged performanceImproving hyperconverged performance
Improving hyperconverged performance
 
GFProxy: Scaling the GlusterFS FUSE Client
GFProxy: Scaling the GlusterFS FUSE Client	GFProxy: Scaling the GlusterFS FUSE Client
GFProxy: Scaling the GlusterFS FUSE Client
 
Integration of Glusterfs in to commvault simpana
Integration of Glusterfs in to commvault simpanaIntegration of Glusterfs in to commvault simpana
Integration of Glusterfs in to commvault simpana
 
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vosOSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uring
 
Make room! Make room!
Make room! Make room!Make room! Make room!
Make room! Make room!
 
Ceph RBD Update - June 2021
Ceph RBD Update - June 2021Ceph RBD Update - June 2021
Ceph RBD Update - June 2021
 
Gluster as Block Store in Containers
Gluster as Block Store in ContainersGluster as Block Store in Containers
Gluster as Block Store in Containers
 
Qemu gluster fs
Qemu gluster fsQemu gluster fs
Qemu gluster fs
 
Managing ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderManaging ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_Cinder
 
Arbiter volumes in gluster
Arbiter volumes in glusterArbiter volumes in gluster
Arbiter volumes in gluster
 
Kkeithley ufonfs-gluster summit
Kkeithley ufonfs-gluster summitKkeithley ufonfs-gluster summit
Kkeithley ufonfs-gluster summit
 

Similar to oVirt DR Site to-site using ansible

Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationPlanning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationLai Yoong Seng
 
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationPlanning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationLai Yoong Seng
 
Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016Ben Hall
 
Sprint 138
Sprint 138Sprint 138
Sprint 138ManageIQ
 
Cache hcm-topdev
Cache hcm-topdevCache hcm-topdev
Cache hcm-topdevThanh Chau
 
Cache hcm-topdev
Cache hcm-topdevCache hcm-topdev
Cache hcm-topdevChau Thanh
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...Symantec
 
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdfQRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdfmindhackers161
 
Sprint 131
Sprint 131Sprint 131
Sprint 131ManageIQ
 
Retrofitting Continuous Delivery
Retrofitting Continuous Delivery Retrofitting Continuous Delivery
Retrofitting Continuous Delivery Alan Norton
 
Akmal Khaleeq Waheed - Challenge 3
Akmal Khaleeq Waheed - Challenge 3Akmal Khaleeq Waheed - Challenge 3
Akmal Khaleeq Waheed - Challenge 3tovmug
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Sharon James
 
Design a scalable site: Problem and solutions
Design a scalable site: Problem and solutionsDesign a scalable site: Problem and solutions
Design a scalable site: Problem and solutionsChau Thanh
 
Varnish Configuration Step by Step
Varnish Configuration Step by StepVarnish Configuration Step by Step
Varnish Configuration Step by StepKim Stefan Lindholm
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinCinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinEd Balduf
 
Aegir. развертывание и управление большой сетью drupal сайтов
Aegir. развертывание и управление большой сетью drupal сайтовAegir. развертывание и управление большой сетью drupal сайтов
Aegir. развертывание и управление большой сетью drupal сайтовDrupalCamp Kyiv Рысь
 

Similar to oVirt DR Site to-site using ansible (20)

Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationPlanning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
 
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for VirtualizationPlanning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
 
Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016
 
Sprint 138
Sprint 138Sprint 138
Sprint 138
 
Cache hcm-topdev
Cache hcm-topdevCache hcm-topdev
Cache hcm-topdev
 
Cache hcm-topdev
Cache hcm-topdevCache hcm-topdev
Cache hcm-topdev
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
 
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdfQRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
 
Sprint 131
Sprint 131Sprint 131
Sprint 131
 
Retrofitting Continuous Delivery
Retrofitting Continuous Delivery Retrofitting Continuous Delivery
Retrofitting Continuous Delivery
 
Akmal Khaleeq Waheed - Challenge 3
Akmal Khaleeq Waheed - Challenge 3Akmal Khaleeq Waheed - Challenge 3
Akmal Khaleeq Waheed - Challenge 3
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
 
Design a scalable site: Problem and solutions
Design a scalable site: Problem and solutionsDesign a scalable site: Problem and solutions
Design a scalable site: Problem and solutions
 
Varnish Configuration Step by Step
Varnish Configuration Step by StepVarnish Configuration Step by Step
Varnish Configuration Step by Step
 
Sprint 17
Sprint 17Sprint 17
Sprint 17
 
IIS Web Ecosystem
IIS Web EcosystemIIS Web Ecosystem
IIS Web Ecosystem
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinCinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit Austin
 
Exploring App fabric
Exploring App fabricExploring App fabric
Exploring App fabric
 
Aegir. развертывание и управление большой сетью drupal сайтов
Aegir. развертывание и управление большой сетью drupal сайтовAegir. развертывание и управление большой сетью drupal сайтов
Aegir. развертывание и управление большой сетью drupal сайтов
 
Aegir presentation
Aegir presentation Aegir presentation
Aegir presentation
 

Recently uploaded

İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfPipe Restoration Solutions
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfKamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDrGurudutt
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdfKamal Acharya
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdfKamal Acharya
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientistgettygaming1
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineJulioCesarSalazarHer1
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdfKamal Acharya
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdfKamal Acharya
 
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdfONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdfKamal Acharya
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGKOUSTAV SARKAR
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf884710SadaqatAli
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Prakhyath Rai
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Aimil Ltd
 

Recently uploaded (20)

İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdfONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
ONLINE CAR SERVICING SYSTEM PROJECT REPORT.pdf
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
 

oVirt DR Site to-site using ansible

  • 1. This presentation is licensed under a Creative Commons Attribution 4.0 International License Ansible Makes oVirt DR a Piece of Cake Maor Lipchuk Senior Software Engineer Red Hat Israel January 2018
  • 2. Can a Disaster be Avoided? 2 Disasters In Our Day To Day
  • 3. 3 ● Amazon explains big AWS outage, says employee error took servers offline, promises changes ● Microsoft: Overheating caused Outlook and Hotmail shutdown ● Google goes down for 5 minutes, Internet traffic drops 40% ● WhatsApp panic hits after messaging app suffers worldwide outage Disasters In Our Day To Day
  • 6. Pros ● Simple file storage domain ● Provides a backup solution for VMs and Templates Cons ● Not suitable for backing up the entire setup ● Long copy operations 6 Export Storage Domain
  • 7. ● OVF_STORE Disk ● Import Storage Domain 7 oVirt 3.5 - Import Storage Domain Metadata OVF_STORE OVF OVF OVF OVF OVF
  • 8. Improvements ● Recover process is faster ● No copy operations are needed ● All VMs and templates In the setup are recoverable 8 oVirt 3.5 - Import Storage Domain
  • 9. Known Issues ● Not a fully fledged, end to end solution for the entire oVirt setup ● The recovery process is done manually ● Entities’ properties are not fully covered in OVF 9 oVirt 3.5 - Import Storage Domain
  • 10. What Is New With oVirt 4.2 10
  • 11. Adding missing attributes to the OVF 11 oVirt 4.2 - Fill In The Gaps Cluster Name External LUN Disk Affinity Group Affinity Label Permissions Vnic Profile
  • 12. ● OVF_STORE disk includes “extra data” file ● VM Statuses supported 12 oVirt 4.2 - Fill In The Gaps DOW N UP
  • 13. ● Define a way to support a recovery process for oVirt setup to a separate site 13 oVirt 4.2 – DR site to site
  • 14. Site To Site: Pre Requirements 14
  • 15. Storage replication should be configured for the storage domains to be recovered 15 Step 1 - Storage Replication
  • 16. A pre configured secondary setup that contains hardware properties such as networks, clusters and hosts 16 Step 2 - Prepare “Just In Case” Setup Secondary Site PrimarySite
  • 17. On recovery, the secondary setup will be used for recovery. The recovery process includes 1. Import the replicated storage domains 2. Register all the VMs and Templates 3. Run all the VMs which were running in the original site 17 Step 2 - Prepare “Just In Case” Setup
  • 18. 18 How To Mix And Match?
  • 19. Define a mapping file to map between primary site and secondary site attributes. Will be used on register entities 19 Step 3 - Mapping File
  • 20. 20 Step 3 - Mapping File
  • 22. oVirt Ansible Disaster Recovery 22
  • 23. ● Part of ansible galaxy https://galaxy.ansible.com/oVirt/disaster-recovery/ ● A role which is part of the ovirt-ansible repository ● oVirt-ansible maintains multiple Ansible roles that can be deployed to easily configure and manage various parts of the oVirt infrastructure. ● oVirt ansible is maintained by Ondra Machacek 23 oVirt Ansible Disaster Recovery
  • 25. ● Go over the entire primary setup and creates a mapping template automatically ● Admin needs to fill in the missing parts of the secondary site 25 Mapping Generator
  • 26. --- - name: Generate mapping hosts: localhost connection: local vars: site: http://localhost:8080/ovirt-engine/api username: admin@internal password: my_password ca: /pki/ovirt-engine/ca.pem var_file: my_var_file.yml vars_files: - passwords.yml roles: - ovirt-ansible-disaster-recovery 26 Mapping Generator – Define a Play
  • 27. 27 Mapping Generator – Simple as it gets
  • 28. 28 Mapping Generator – Output Example --- dr_sites_primary_url: http://localhost:8080/ovirt-engi-ne/api dr_sites_primary_username: admin@internal dr_sites_primary_ca_file: /home/mlipchuk/ovirt- share/etc/pki/ovirt-engine/ca.pem # Please fill in the following properties for the secondary site: dr_sites_secondary_url: dr_sites_secondary_username: dr_sites_secondary_ca_file: dr_import_storages: my_var_file.yml
  • 30. ● Recover the secondary setup automatically using the a mappings var file 30 Ansible Failover
  • 31. ● Automation process - Import master storage domains - Import all other storage domains - Register Templates (with mapping) - Register VMs (with mapping) - Run HA VMs - Run other VMs 31 Ansible Failover - Automation
  • 32. --- - name: Failover oVirt setup hosts: localhost connection: local vars: dr_target_host: secondary dr_source_map: primary vars_files: - passwords.yml roles: - ovirt-ansible-disaster-recovery 32 Ansible Failover – Define a Play
  • 34. Automation Process (Failback) ● Restoring the primary site back again after it has been shifted to a secondary site 34 Ansible Failback
  • 35. Automation Process (Failback) - Get the primary setup ready for import - Clean the secondary site from its storage domains - Notice the admin to switch the replication process - Import replicated storage domains to the primary - Register all Templates and VMs - Run all VMs which ran before (HA first and then all other VMs) 35 Ansible Failback
  • 37. ● Filled in the gaps in the VM’s and template’s OVF ● VMs statuses were added in the OVF_STORE disk ● Recovery process is now automatically thanks to Ansible ● User is able to failover and failback the environment 37 Summary
  • 38. - Ansible galaxy https://galaxy.ansible.com/oVirt/disaster-recovery/ - oVirt ansible repo https://github.com/oVirt/ovirt-ansible.git - oVirt ansible disaster recovery repo: https://github.com/oVirt/ovirt-ansible-disaster-recovery 38 Links
  • 39. This presentation is licensed under a Creative Commons Attribution 4.0 International License THANK YOU http://www.ovirt.org users@ovirt.org mlipchuk@redhat.com

Editor's Notes

  1. Hello, My name is Maor Lipchuk I’m a senior Software Engineer in the oVirt storage team I work in Red Hat Israel and Today I would like to talk with you about oVirt solution for Disaster Recovery and what we introduced in oVirt 4.2
  2. I would like to start with a retorical quesiton, Can we avoid a disaster?
  3. So, as you can see even the most known and biggest companies encountered one way or another a disaster. The truth is no matter how much money and resources a company will invest to avoid a disaster, no one can guarantee a disaster will be avoided. Which basically has some positive relief , because that means that a disaster is something that in some terms can be understandable by customers. But what is crucial for the costumer, and what really makes a company reliable is that the customer’s data will recovered with minimum data lost in the most fastest and efficient way. Which brings me to the Disaster Recovery Solution
  4. So, after saying that, how does oVirt supports Disaster Recovery
  5. Through the course of time, oVirt introduced several ways for backup and recovery solutions, I would like to go on some of them to get the concept of the invention which was introduced in oVirt 4.2
  6. Export Storage Domain is one solution which was part of oVirt all along. It gave the ability for the admin to backup its VMs and Templates into a file storage domain which was attached to the Data Center. The backup process basically copied the disks and the VM’s or Template’s OVF and once the user desired to recover that VM one only needed to import that entity and uwalla, it has his VM back The problem wuth
  7. In oVirt
  8. Elaborate more what the admin needs to do
  9. Elaborate more what the admin needs to do