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

PDF
Disaster Recovery Strategies Using oVirt's new Storage Connection Management ...
Allon Mureinik
 
ODP
Disaster Recovery in oVirt
Maor Lipchuk
 
PDF
Live Storage Migration in oVirt (Open Storage Meetup May 2013)
Allon Mureinik
 
ODP
Storage best practices
Maor Lipchuk
 
ODP
Introduction to highly_availablenfs_server_on_scale-out_storage_systems_based...
Gluster.org
 
ODP
Ovirt and gluster_hyperconvergence_devconf-2016
Ramesh Nachimuthu
 
PDF
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Gluster.org
 
PDF
Step by Step - Reusing old features to build new ones
Allon Mureinik
 
Disaster Recovery Strategies Using oVirt's new Storage Connection Management ...
Allon Mureinik
 
Disaster Recovery in oVirt
Maor Lipchuk
 
Live Storage Migration in oVirt (Open Storage Meetup May 2013)
Allon Mureinik
 
Storage best practices
Maor Lipchuk
 
Introduction to highly_availablenfs_server_on_scale-out_storage_systems_based...
Gluster.org
 
Ovirt and gluster_hyperconvergence_devconf-2016
Ramesh Nachimuthu
 
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Gluster.org
 
Step by Step - Reusing old features to build new ones
Allon Mureinik
 

What's hot (20)

ODP
Leases and-caching final
Gluster.org
 
ODP
Accessing gluster ufo_-_eco_willson
Gluster.org
 
PDF
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org
 
PDF
Performance optimization for all flash based on aarch64 v2.0
Ceph Community
 
ODP
Gluster technical overview
Gluster.org
 
PDF
Ceph on Windows
Ceph Community
 
ODP
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Gluster.org
 
PPTX
Improving hyperconverged performance
Denis Chapligin
 
PDF
GFProxy: Scaling the GlusterFS FUSE Client
Gluster.org
 
PDF
Integration of Glusterfs in to commvault simpana
Gluster.org
 
PDF
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
NETWAYS
 
ODP
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org
 
PDF
Boosting I/O Performance with KVM io_uring
ShapeBlue
 
PDF
Make room! Make room!
Denis Chapligin
 
PDF
Ceph RBD Update - June 2021
Ceph Community
 
PDF
Gluster as Block Store in Containers
Gluster.org
 
PDF
Qemu gluster fs
Gluster.org
 
ODP
Managing ceph through_oVirt_using_Cinder
Maor Lipchuk
 
PDF
Arbiter volumes in gluster
itisravi
 
ODP
Kkeithley ufonfs-gluster summit
Gluster.org
 
Leases and-caching final
Gluster.org
 
Accessing gluster ufo_-_eco_willson
Gluster.org
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org
 
Performance optimization for all flash based on aarch64 v2.0
Ceph Community
 
Gluster technical overview
Gluster.org
 
Ceph on Windows
Ceph Community
 
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Gluster.org
 
Improving hyperconverged performance
Denis Chapligin
 
GFProxy: Scaling the GlusterFS FUSE Client
Gluster.org
 
Integration of Glusterfs in to commvault simpana
Gluster.org
 
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
NETWAYS
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org
 
Boosting I/O Performance with KVM io_uring
ShapeBlue
 
Make room! Make room!
Denis Chapligin
 
Ceph RBD Update - June 2021
Ceph Community
 
Gluster as Block Store in Containers
Gluster.org
 
Qemu gluster fs
Gluster.org
 
Managing ceph through_oVirt_using_Cinder
Maor Lipchuk
 
Arbiter volumes in gluster
itisravi
 
Kkeithley ufonfs-gluster summit
Gluster.org
 
Ad

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

PPTX
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Lai Yoong Seng
 
PPTX
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Lai Yoong Seng
 
PPTX
Deploying Windows Containers on Windows Server 2016
Ben Hall
 
PDF
Sprint 138
ManageIQ
 
PDF
Cache hcm-topdev
Thanh Chau
 
PDF
Cache hcm-topdev
Chau Thanh
 
PDF
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
Symantec
 
PDF
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
mindhackers161
 
PDF
Sprint 131
ManageIQ
 
PPTX
Retrofitting Continuous Delivery
Alan Norton
 
PDF
Akmal Khaleeq Waheed - Challenge 3
tovmug
 
PDF
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Sharon James
 
PDF
Design a scalable site: Problem and solutions
Chau Thanh
 
PDF
Varnish Configuration Step by Step
Kim Stefan Lindholm
 
PDF
Sprint 17
ManageIQ
 
PPTX
IIS Web Ecosystem
Kenny Abdiel Maita
 
PPTX
Cinder Live Migration and Replication - OpenStack Summit Austin
Ed Balduf
 
PPTX
Exploring App fabric
Kevalsing Rajput
 
PPTX
Aegir. развертывание и управление большой сетью drupal сайтов
DrupalCamp Kyiv Рысь
 
PPTX
Aegir presentation
Aleksey Tkachenko
 
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Lai Yoong Seng
 
Planning and What's New in Windows Server 2008 R2 SP1 for Virtualization
Lai Yoong Seng
 
Deploying Windows Containers on Windows Server 2016
Ben Hall
 
Sprint 138
ManageIQ
 
Cache hcm-topdev
Thanh Chau
 
Cache hcm-topdev
Chau Thanh
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
Symantec
 
QRadar_CEddfdfdsfdfdfdfdfdfdfdfdfdfdff.pdf
mindhackers161
 
Sprint 131
ManageIQ
 
Retrofitting Continuous Delivery
Alan Norton
 
Akmal Khaleeq Waheed - Challenge 3
tovmug
 
Bp307 Practical Solutions for Connections Administrators, tips and scrips for...
Sharon James
 
Design a scalable site: Problem and solutions
Chau Thanh
 
Varnish Configuration Step by Step
Kim Stefan Lindholm
 
Sprint 17
ManageIQ
 
IIS Web Ecosystem
Kenny Abdiel Maita
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Ed Balduf
 
Exploring App fabric
Kevalsing Rajput
 
Aegir. развертывание и управление большой сетью drupal сайтов
DrupalCamp Kyiv Рысь
 
Aegir presentation
Aleksey Tkachenko
 
Ad

Recently uploaded (20)

PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Information Retrieval and Extraction - Module 7
premSankar19
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 

oVirt DR Site to-site using ansible

Editor's Notes

  • #2: 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
  • #3: I would like to start with a retorical quesiton, Can we avoid a disaster?
  • #4: 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
  • #5: So, after saying that, how does oVirt supports Disaster Recovery
  • #6: 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
  • #7: 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
  • #8: In oVirt
  • #13: Elaborate more what the admin needs to do
  • #14: Elaborate more what the admin needs to do