Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform



Similar documents
Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing

Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL

Red Hat OpenStack Platform 8 DNS-as-a-Service Guide

Red Hat Enterprise Linux 7 High Availability Add-On Administration. Configuring and Managing the High Availability Add-On

Red Hat Cloud Infrastructure 5 Release Notes

Red Hat Ceph Storage Hardware Guide

JBoss Developer Studio 6.0

How To Install Openstack On Ubuntu (Amd64)

Red Hat CloudForms 3.2 NetApp Storage Integration Guide

Red Hat Enterprise Linux OpenStack Platform 7 Users and Identity Management Guide

ZCP 7.0 (build 41322) Zarafa Collaboration Platform. Zarafa Archiver Deployment Guide

Red Hat Customer Portal 1 Managing User Access to the Red Hat Customer Portal and the Red Hat Network Application

Red Hat Customer Portal Current Customer Portal Subscription Management

Red Hat Cloud Infrastructure 5 Introduction to Red Hat Cloud Infrastructure Architecture

Red Hat Enterprise Linux OpenStack Platform 8 Partner Integration

Sales Slide Midokura Enterprise MidoNet V1. July 2015 Fujitsu Limited

RED HAT ENTEPRISE LINUX OPENSTACK PLATFORM PRODUCT OVERVIEW & UPDATE. Jeff Jameson Sr. Principal Product Marketing Manager Virtualization BU, RED HAT

Backing up the Embedded Oracle database of a Red Hat Network Satellite

Develop a process for applying updates to systems, including verifying properties of the update. Create File Systems

cloud functionality: advantages and Disadvantages

Datasheet FUJITSU Software ServerView Cloud Monitoring Manager V1.0

Release Notes for Fuel and Fuel Web Version 3.0.1

IBM Cloud Manager with OpenStack

Red Hat Enterprise Virtualization 3.6- Beta Java SDK Guide

Fedora 19. Fedora Documentation Project

Change the Game with HP Helion

Red Hat CloudForms 3.1 Management Engine 5.3 OpenShift Enterprise Deployment Guide

Red Hat Network Satellite Client Configuration Guide

Red Hat Directory Server 8.2 Using the Directory Server Console

RED HAT INFRASTRUCTURE AS A SERVICE OVERVIEW AND ROADMAP. Andrew Cathrow Red Hat, Inc. Wednesday, June 12, 2013

Running an OpenStack Cloud for several years and living to tell the tale. Alexandre Maumené Gaëtan Trellu Tokyo Summit, November 2015

JBoss Operations Network 3.1 Deploying Applications and Content

Red Hat Developer Toolset 1.1

Acronis Storage Gateway

Fedora 17. Burning ISO images to disc. How to download ISO images and create CD and DVD media. Fedora Documentation Project

Configuring Keystone in OpenStack (Essex)

Fuse ESB Enterprise 7.0 Installation Guide

JAMF Software Server Installation Guide for Linux. Version 8.6

Centralised Backup of the Talis Application Environments

Cisco and Red Hat: Application Centric Infrastructure Integration with OpenStack

Red Hat Enterprise Linux 7 Virtualization Security Guide

RED HAT ENTERPRISE LINUX OPENSTACK PLATFORM

Configuration Manager Error Messages

LAMP Quickstart for Red Hat Enterprise Linux 4

Using The Hortonworks Virtual Sandbox

HPC ON WALL ST OPENSTACK AND BIG DATA. Brent Holden Chief Field Architect, Eastern US April 2014

Ubuntu OpenStack Fundamentals Training

Red Hat Network Satellite 5.4 Installation Guide. Red Hat Network Satellite

1 Keystone OpenStack Identity Service

Red Hat Subscription Asset Manager 1.2 Installation Guide. Installing and Using Red Hat Subscription Asset Manager Edition 3

OpenGeo Suite for Linux Release 3.0

MONITORING RED HAT GLUSTER SERVER DEPLOYMENTS With the Nagios IT infrastructure monitoring tool

OnCommand Performance Manager 1.1

Implementing Failover Capabilities in Red Hat Network Satellite

CS312 Solutions #6. March 13, 2015

MySQL and Virtualization Guide

Partek Flow Installation Guide

Red Hat Enterprise Virtualization 3.0 User Portal Guide. Accessing and Using Virtual Machines from the User Portal Edition 1

Lenovo ThinkServer Solution For Apache Hadoop: Cloudera Installation Guide

Red Hat Enterprise Linux OpenStack Platform Update February 17, 2016

JAMF Software Server Installation and Configuration Guide for Linux. Version 9.2

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

insync Installation Guide

Guide to Red Hat Enterprise Linux 6 Software Collections

Red Hat JBoss Developer Studio 4.1 Smooks Developer Tools Reference Guide

DOCUMENTATION MySQL BACKUP & RESTORE OPERATIONS

OpenShift Dedicated 3.1 Architecture

Using Symantec NetBackup with Symantec Security Information Manager 4.5

OpenShift on you own cloud. Troy Dawson OpenShift Engineer, Red Hat November 1, 2013

WebApp S/MIME Manual. Release Zarafa BV

RED HAT CLOUD SUITE FOR APPLICATIONS

The path to the cloud training

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Access to easy-to-use tools that reduce management time with Arcserve Backup

Connection Broker Managing User Connections to Workstations, Blades, VDI, and more. Security Review

Support for Multiple Organizations

Tk20 Backup Procedure

Release Notes for McAfee(R) VirusScan(R) Enterprise for Linux Version Copyright (C) 2014 McAfee, Inc. All Rights Reserved.

Requirements for Rosetta Installation. Version 4.2

Qualcomm Achieves Significant Cost Savings and Improved Performance with Red Hat Enterprise Virtualization

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE PRICING GUIDE

Best Practices for OpenStack and FUJITSU Storage ETERNUS DX S3 series

Fuse ESB Enterprise Installation Guide

FUJITSU Software ServerView Cloud Monitoring Manager V1 Introduction

How to Build an RPM OVERVIEW UNDERSTANDING THE PROCESS OF BUILDING RPMS. Author: Chris Negus Editor: Allison Pranger 09/16/2011

OpenStack Deployment Manual

Installation & Upgrade Guide

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

OPENSTACK IN THE ENTERPRISE Best practices for deploying enterprise-grade OpenStack implementations

Cloud-init. Marc Skinner - Principal Solutions Architect Michael Heldebrant - Solutions Architect Red Hat

Software Collections

JAMF Software Server Installation and Configuration Guide for Windows. Version 9.3

Getting Started with Database As a Service on OpenStack

Surviving the Worst: Disaster Recovery for OpenStack

Transcription:

Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform Backup and Restore the Director undercloud OpenStack Team

Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform Backup and Restore the Director undercloud OpenStack Team rhos-docs@redhat.com

Legal Notice Copyright 2016 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract A guide to backing up and restoring the undercloud in RHEL OpenStack Platform director.

Table of Contents Table of Contents. CHAPTER......... 1... BACK..... UP... AND..... RESTORE......... THE.... UNDERCLOUD....................................................... 3.......... 1.1. BACKUP CONSIDERATIONS 3 1.2. HIGH AVAILABILITY OF THE UNDERCLOUD NODE 3 1.3. BACK UP THE UNDERCLOUD 3 1.4. VALIDATE THE COMPLETED BACKUP 4. CHAPTER......... 2... RESTORE................................................................................. 5.......... 2.1. RESTORE THE UNDERCLOUD 5 2.2. RECONNECT THE RESTORED UNDERCLOUD TO THE OVERCLOUD 6 2.3. VALIDATE THE COMPLETED RESTORE 6 1

Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform 2

CHAPTER 1. BACK UP AND RESTORE THE UNDERCLOUD CHAPTER 1. BACK UP AND RESTORE THE UNDERCLOUD This guide describes how to back up the undercloud used in the Red Hat Enterprise Linux OpenStack Platform director. The undercloud is usually a single physical node (although high availability options exist using a two-node pacemaker cluster that runs director in a VM) that is used to deploy and manage your OpenStack environment. 1.1. BACKUP CONSIDERATIONS Formulate a robust back up and recovery policy in order to minimize data loss and system downtime. When determining your back up strategy, you will need to answer the following questions: How quickly will you need to recover from data loss? If you cannot have data loss at all, you should include high availability in your deployment strategy, in addition to using backups. You ll need to consider how long it will take to obtain the physical backup media (including from an offsite location, if used), and how many tape drives are available for restore operations. How many backups should you keep? You will need to consider legal and regulatory requirements that affect how long you are expected to store data. Should your backups be kept off-site? Storing your backup media offsite will help mitigate the risk of catastrophe befalling your physical location. How often should backups be tested? A robust back up strategy will include regular restoration tests of backed up data. This can help validate that the correct data is still being backed up, and that no corruption is being introduced during the back up or restoration processes. These drills should assume that they are being performed under actual disaster recovery conditions. What will be backed up? The following sections describe database and file-system backups for components, as well as information on recovering backups. 1.2. HIGH AVAILABILITY OF THE UNDERCLOUD NODE You are free to consider your preferred high availability (HA) options for the Undercloud node; Red Hat does not prescribe any particular requirements for this. For example, you might consider running your Undercloud node as a highly available virtual machine within Red Hat Enterprise Virtualization (RHEV). You might also consider using physical nodes with Pacemaker providing HA for the required services. When approaching high availability for your Undercloud node, you should consult the documentation and good practices of the solution you decide works best for your environment. 1.3. BACK UP THE UNDERCLOUD A full undercloud backup includes the following databases and files: All MariaDB databases on the undercloud node MariaDB configuration file on the undercloud (so that you can accurately restore databases) All glance image data in /var/lib/glance/images All swift data in /srv/node All data in the stack user home directory: /home/stack 3

Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform All data in /opt/stack Run the following commands as the root user to dump the data from the undercloud node to a file named undercloud-backup-[timestamp].tar.gz. Note Confirm that you have sufficient disk space available before performing the backup process. The tarball can be expected to be at least 3.5 GB, but this is likely to be larger. # mysqldump --opt --all-databases > /root/undercloud-all-databases.sql # tar -czf undercloud-backup-`date +%F`.tar.gz /root/undercloud-alldatabases.sql /etc/my.cnf.d/server.cnf /var/lib/glance/images /srv/node /home/stack /etc/keystone/ssl /opt/stack 1.4. VALIDATE THE COMPLETED BACKUP You can validate the success of the completed back up process by running and validating the restore process. See the next section for further details on restoring from backup. 4

CHAPTER 2. RESTORE CHAPTER 2. RESTORE This section describes how to restore the undercloud used in the Red Hat Enterprise Linux OpenStack Platform Director. 2.1. RESTORE THE UNDERCLOUD The following restore process assumes you are recovering a failed undercloud node, and you need to reinstall it from scratch. It assumes that the hardware layout is identical, and the hostname and undercloud settings of the machine will also be identical. Once the machine is installed and is in a clean state, re-enable all the subscriptions/repositories needed to install and run director. Run the following commands as the root user: 1. Install the mariadb server: # yum install -y mariadb-server 2. Restore the MariaDB configuration file and database backup, then start the MariaDB server and load the backup data: a. As the root user, restore the MariaDB files: # tar -xzc / -f undercloud-backup-$date.tar.gz etc/my.cnf.d/server.cnf # tar -xzc / -f undercloud-backup-$date.tar.gz root/undercloud-alldatabases.sql b. Edit /etc/my.cnf.d/server.cnf and comment out the bind-address entry. c. Start the mariadb service: # systemctl start mariadb # cat /root/undercloud-all-databases.sql mysql d. Clean up certain permissions (to be recreated later): # for i in ceilometer glance heat ironic keystone neutron nova tuskar;do mysql -e "drop user $i";done # mysql -e 'flush privileges' 3. Create the stack user account: # sudo useradd stack # sudo passwd stack # specify a password # echo "stack ALL=(root) NOPASSWD:ALL" sudo tee -a /etc/sudoers.d/stack # sudo chmod 0440 /etc/sudoers.d/stack 4. Restore the stack user home directory: # tar -xzc / -f undercloud-backup-$date.tar.gz home/stack 5. Install the swift and glance base packages, and then restore their data: 5

Red Hat Enterprise Linux OpenStack Platform 7 Back Up and Restore Red Hat Enterprise Linux OpenStack Platform # yum install -y openstack-glance openstack-swift # tar -xzc / -f undercloud-backup-$date.tar.gz srv/node var/lib/glance/images 6. Confirm the data is owned by the correct user: # chown -R swift: /srv/node # chown -R glance: /var/lib/glance/images 7. Restore your HAproxy SSL certificates: # tar -xzc / -f undercloud-backup-$date.tar.gz etc/keystone/ssl # semanage fcontext -a -t etc_t "/etc/keystone/ssl(/.*)?" # restorecon -R /etc/keystone/ssl 8. Re-run the undercloud installation as the stack user, making sure to run it in the stack user home directory: # su - stack $ sudo yum install -y python-rdomanager-oscplugin 9. Confirm that the hostname is correctly set in /etc/hosts. 10. Reinstall the undercloud: $ openstack undercloud install 2.2. RECONNECT THE RESTORED UNDERCLOUD TO THE OVERCLOUD Having completed the steps above, the undercloud can be expected to automatically restore its connection to the overcloud. The nodes will continue to poll Orchestration (heat) for pending tasks, using a simple HTTP request issued every few seconds. 2.3. VALIDATE THE COMPLETED RESTORE Use the following commands to perform a healthcheck of your newly restored environment: 2.3.1. Check Identity Service (Keystone) Operation This step validates Identity Service operations by querying for a list of users. # source overcloudrc # keystone user-list When run from the controller, the output of this command should include a list of users created in your environment. This action demonstrates that keystone is running and successfully authenticating user requests. For example: # keystone user-list +----------------------------------+------------+---------+-------- 6

CHAPTER 2. RESTORE --------------+ id name enabled email +----------------------------------+------------+---------+-------- --------------+ 9e47bb53bb40453094e32eccce996828 admin True root@localhost 9fe2466f88cc4fa0ba69e59b47898829 ceilometer True ceilometer@localhost 7a40d944e55d422fa4e85daf47e47c42 cinder True cinder@localhost 3d2ed97538064f258f67c98d1912132e demo True 756e73a5115d4e9a947d8aadc6f5ac22 glance True glance@localhost f0d1fcee8f9b4da39556b78b72fdafb1 neutron True neutron@localhost e9025f3faeee4d6bb7a057523576ea19 nova True nova@localhost 65c60b1278a0498980b2dc46c7dcf4b7 swift True swift@localhost +----------------------------------+------------+---------+-------- --------------+ 2.3.2. Check the OpenStack Services Run the openstack-status command to view the status of OpenStack services: # openstack-status 7